You are not logged in.

#1 2008-12-27 09:05:33

Plutonian
Member
Registered: 2008-12-05
Posts: 9

Wireless LED/Touchpad

Is there a way to re-enable my wireless card after it has been disabled using a touch pad without rebooting? I have an HP laptop and the wireless card has this light/touch button which turns orange when the card is down and blue when it's up. Under the windows vista that the laptop came installed with, touching the LED toggles the wireless card on and off. Under arch, touching it when it's on toggles it off, and I can't figure out how to turn it back on without rebooting the system. The interface continues to show up in ifconfig, but anything I try to do with it has no effect. Touching the button again doesn't do anything.

If it's not possible to get the card back up without rebooting, would it be possible to disable the button so that I don't have to reboot the system every time it's touched?


Appreciate any help.

Offline

#2 2008-12-27 10:15:29

BKJ
Member
Registered: 2008-09-19
Posts: 71

Re: Wireless LED/Touchpad

does this command work for you?

sudo /etc/rc.d/network restart

Or you could try this script:

#!/bin/bash
sudo netcfg2 -a # tell netcfg to take down every profile
sudo netcfg2 clean # tell netcfg to clear all its state info
for i in /sys/class/net/*; do
  i="${i##*/}"
  case "$i" in
    lo|wmaster0) ;;
    *) sudo ifconfig "$i" down;; # take down every hardware interface
  esac
done
sudo modprobe -r iwl4965 # unload your wifi driver
sleep 5
sudo modprobe iwl4965  # reload wifi driver

Just replace the iwl4965 with the driver your actually using.  I don't use netcfg to configure my wireless as I use wicd but the script still works and will completely reset your wireless. Hops this helps!

Offline

#3 2008-12-27 20:32:00

Plutonian
Member
Registered: 2008-12-05
Posts: 9

Re: Wireless LED/Touchpad

Both methods return no errors, but neither works.

dmesg has a line "iwlagn: Radio disabled by HW RF Kill switch"

Also, sometimes rebooting doesn't repair the wireless.

Last edited by Plutonian (2008-12-27 20:33:37)

Offline

#4 2008-12-27 20:50:11

BKJ
Member
Registered: 2008-09-19
Posts: 71

Re: Wireless LED/Touchpad

How is your wireless being handled?  Netcfg, rc.conf, wicd, etc...  Also what wireless card is it?

Offline

#5 2008-12-27 23:40:33

Plutonian
Member
Registered: 2008-12-05
Posts: 9

Re: Wireless LED/Touchpad

It's an Intel 5100 AGN
I'm handling it with netcfg and using iwlwifi-5000-ucode firmware.

Once the wireless card is down, it seems I have to tap it again and then reboot.

Last edited by Plutonian (2008-12-28 07:18:17)

Offline

#6 2008-12-28 14:12:55

BKJ
Member
Registered: 2008-09-19
Posts: 71

Re: Wireless LED/Touchpad

Hrmm...  I just tested two of my laptops that have a wireless switch to turn the wireless on/off.  If I turn it off and boot/login wicd sees no wireless networks even when turned back on.  However, the above script I provided earlier does reset my wireless so that wicd sees the wireless networks.

What version of netcfg are you using?  Did you actually change the script  to unload/load the iwl5000 driver?  In addition, are you sure the wireless is actually turned on?  Your message above (post 3) it looks as though your wireless is still turned off.

Offline

#7 2008-12-30 23:35:30

Plutonian
Member
Registered: 2008-12-05
Posts: 9

Re: Wireless LED/Touchpad

Oddly enough, this problem seems to have fixed itself. Now the card will turn on and off with the touchpad, just as designed.

Offline

Board footer

Powered by FluxBB