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: > linux-image-2.6.25-2-686 > eeepc-acpi-modules-2.6.25-2-686 > eeepc-acpi-scripts_1.0.4 > acpi-support-base_0.109-5 > > I will have to test with the 2.6.26 kernel… > > Finaly, there's my scripts: > [EMAIL PROTECTED]:/etc/acpi/actions$ cat wireless-toggle.sh > =========================================================================== > #!/bin/sh > > wlan_control=/sys/devices/platform/eeepc/wlan > [ -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 > here > # and could cause ifconfig to fail > sleep 1 > ifconfig ath0 up > else > ifdown --force ath0 > modprobe -r ath_pci > fi > =========================================================================== > > [EMAIL PROTECTED]:/etc/acpi/actions$ diff hotkey.sh.ori hotkey.sh > =========================================================================== > 2d1 > < echo "$@" >> /tmp/hotkeys.log > 63,66c62,65 > < 00000010) > < /etc/acpi/actions/wireless.sh on > < show_wireless > < ;; > --- >> # 00000010) >> # /etc/acpi/actions/wireless.sh on >> # show_wireless >> # ;; > 68c67 > < /etc/acpi/actions/wireless.sh off > --- >> /etc/acpi/actions/wireless-toggle.sh
You may take a look here, you may need the eee-kernel also I think, but give it a try. http://www.array.org/ubuntu/post-install.html#Hotkey_Support _______________________________________________ Debian-eeepc-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel
