Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > How to set the wifi-button enabled by default?

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-18-2009   #1 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 2
How to set the wifi-button enabled by default?

Hi,

I have an Acer Travelmate 4000 with a software RF kill switch (the wi-fi button) and I am using Linux Mint 5. Wifi and the wifi button worked out-of-the-box, but there is a problem I can't solve.
After the boot up the wifi button is inactive, so I have to press it to enable the wifi. After that I have to open the network manager and make it connect to my preferred network manually.

If I press the wifi button during the boot up then it connects automaticaly.

The question: how to set the wifi button active, that I do not have to press it during boot up?

Thanks
Peter
molnarp is offline  


Reply With Quote
Old 01-18-2009   #2 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
This may be something that you can change by entering the system BIOS at boot.
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline   Reply With Quote
Old 01-18-2009   #3 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 2
Thank you, Paul, but I think this is not BIOS-related. If I start Win XP instead of Linux the wifi button is active and the computer connects to the network without any further action. So I think this is not the BIOS but some configuration issue.

Any other idea?
molnarp is offline   Reply With Quote
Old 01-18-2009   #4 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
If this were a different distribution, like Fedora, I could tell you exactly where to go to configure to start at boot. I have yet to find a similar configuration page on Ubuntu/Mint.

There is another problem with doing this. If you have a WPA encrypted connection, it will hang if it tries to connect at boot. It needs a password to connect, and it can't give it because of security. You could just consider this a security feature, and leave it at that. it is a minor irritation, no worse than having to constantly enter "sudo"

There may be one way. First we must find where it is keeping the file that reports the wireless state. On my Mint install, I could find the wireless on/off state with this command.
Code:
cat /sys/class/rfkill/rfkill0/state
The output should be either 0 or 1:
0 = off
1 = on

You should be able to change the state with this command:
Code:
echo 0 > /sys/class/rfkill/rfkill0/state
This command would tun it off. I believe that you then have to reload the module after changing the state.

If this works, you should be able to put the command into a shell script, and have it run at login.

Seems like a lot of trouble when you can just do it with a couple of key presses. But that is why we use Linux, so that we can tinker.
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:49 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2