[Debian-eeepc-devel] Problem with wireless hotkey
uncurbed at swipnet.se
Tue Aug 12 22:18:48 UTC 2008
Gilles Mocellin skrev:
> Hello EeePC users,
> I've never seen my wireless key working.
> So, I investigate.
> Here's what I found:
> 1) There's only one key
> So, one code to handle by /etc/acpi/actions/hotkey.sh.
> /etc/acpi/actions/wireless.sh must be a toggle script.
> 2) The wifi hardware and led are enabled by hardware (like the brightness)
> With the "echo 1 > /proc/acpi/asus/wlan", I saw my wifi led disabled one or
> two seconds after having been light up.
> I simply remove them.
> In case there's an interaction,
> I use a 701 4G Linux model
> My BIOS is 1101
> The interesting packages:
> I will have to test with the 2.6.26 kernel…
> Finaly, there's my scripts:
> gilles at eeepc:/etc/acpi/actions$ cat wireless-toggle.sh
> [ -e $wlan_control ] || wlan_control=/proc/acpi/asus/wlan # pre-2.6.26
> if [ $(cat $wlan_control) = 1 ]; then
> modprobe -r pciehp
> modprobe pciehp pciehp_force=1
> modprobe ath_pci
> # adding a sleep here, due to some bug the driver loading is not atomic
> # and could cause ifconfig to fail
> sleep 1
> ifconfig ath0 up
> ifdown --force ath0
> modprobe -r ath_pci
> gilles at eeepc:/etc/acpi/actions$ diff hotkey.sh.ori hotkey.sh
> < echo "$@" >> /tmp/hotkeys.log
> < 00000010)
> < /etc/acpi/actions/wireless.sh on
> < show_wireless
> < ;;
>> # 00000010)
>> # /etc/acpi/actions/wireless.sh on
>> # show_wireless
>> # ;;
> < /etc/acpi/actions/wireless.sh off
You may take a look here, you may need the eee-kernel also I think, but
give it a try.
More information about the Debian-eeepc-devel