Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 05-29-2006, 02:37 AM   #1
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Switching WLAN ON/OFF from the switch?

So, could anyone aid me fixing my laptop so that it seeks wireless LANs and connects to them when I turn on the "Wireless switch" on my Acer TM4202WLMi laptop?

I got it to connect to my wireless router with WPA encryption already. Now I want to automate this process.

If I understood correctly I can add etries to wpa_supplicant.conf so it will search networks presented in there starting from the one with highest priority? So I just add few specific networks and one general in there and it would be ready for that part.

So all I need is daemon which catches the signal from the button and issues the following scripts when switch is ON:

modprobe ipw3945
ifconfig eth1 up
wpa_supplicant -ieth1 -c/etc/wpa_supplicant -Dwext -B
dhcpcd eth1

and then when it's OFF.

ifconfig eth1 down
rmmod ipw3945
Main concern is how can I find out what signal the switch gives? And is the above codes correct or should there be any more?
Old 05-29-2006, 03:47 AM   #2
Samhain Slackbuild Maintainer
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 42
I maybe shouldn't even respond to this because I'm not an expert but I've been using wireless on Linux since 2001. On mine, a fujitsu, I can switch it off and the signal quality goes down to zero. There is no effect communicated to any of the hardware when the switch is thrown. As soon as I throw the switch again, the signal quality comes back up again. What you're descibing would be really cool but I don't think it's possible. At least at this stage of hardware evolution. I think you're stuck running the scripts manually. That's what I've always had to do. Maybe I'm wrong and Acer is doing something a little more sophisticated. I don't know any system that handles what you're describing better than the Macs. I'm watching this thread. I want desperately to be wrong.

FYI. You can list your interupts like this:
cat /proc/interrupts
Old 05-30-2006, 02:45 AM   #3
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Ok, I found out I can get the signal with acer_hk but I'm stuck with it... also if I switch the switch too often whole system freezes

Shall see if I get this thing done before moving...

Currently doing a reinstall on whole system... removed my windows from my laptop
Feeling like a child taking his first steps in the big world


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk-theme-switch not switching on fluxbox 9.12 c_olin3404 Linux - Software 1 05-28-2005 05:51 PM
Mandrake is switching the eth1 and eth0 interfaces... how can I switch them back? LaptopLinux Mandriva 3 03-28-2005 09:23 PM
Automatic switching between LAN and WLAN chrismic Linux - Wireless Networking 0 12-19-2004 07:38 PM
HP NX5000 activate WLAN switch leiv Linux - Laptop and Netbook 1 12-04-2004 06:21 AM
Switching the Wlan Driver arkus Linux - Wireless Networking 0 12-01-2003 03:32 AM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration