Your message dated Mon, 2 Feb 2009 14:57:27 +0200
with message-id <[email protected]>
and subject line Re: Bug#495022: #495022: Wireless key is a toggle
has caused the Debian Bug report #495022,
regarding eeepc-acpi-scripts: Wireless key is a toggle
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
495022: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495022
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: eeepc-acpi-scripts
Version: 1.0.4
Severity: normal
Tags: patch
I've never seen my wireless key working.
The led shuts off right after being lighten up.
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.
My patch is attached.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages eeepc-acpi-scripts depends on:
ii acpi-support-base 0.109-5 scripts for handling base ACPI eve
ii acpid 1.0.6-10 Utilities for using ACPI power man
ii alsa-utils 1.0.16-2 ALSA utilities
ii pm-utils 1.1.2.4-1 utilities and scripts for power ma
eeepc-acpi-scripts recommends no packages.
Versions of packages eeepc-acpi-scripts suggests:
pn aosd-cat <none> (no description available)
ii ttf-dejavu 2.25-3 Metapackage to pull in ttf-dejavu-
-- no debconf information
diff -ruN eeepc-acpi-scripts-1.0.4/actions/hotkey.sh eeepc-acpi-scripts-1.0.4.new/actions/hotkey.sh
--- eeepc-acpi-scripts-1.0.4/actions/hotkey.sh 2008-06-29 16:44:48.000000000 +0200
+++ eeepc-acpi-scripts-1.0.4.new/actions/hotkey.sh 2008-08-13 23:19:57.000000000 +0200
@@ -59,12 +59,8 @@
case $code in
# Fn+F2 -- toggle wireless
- 00000010)
- /etc/acpi/actions/wireless.sh on
- show_wireless
- ;;
00000011)
- /etc/acpi/actions/wireless.sh off
+ /etc/acpi/actions/wireless-toggle.sh
show_wireless
;;
# Fn+F7 -- mute/unmute speakers
diff -ruN eeepc-acpi-scripts-1.0.4/actions/wireless.sh eeepc-acpi-scripts-1.0.4.new/actions/wireless.sh
--- eeepc-acpi-scripts-1.0.4/actions/wireless.sh 2008-06-29 16:51:40.000000000 +0200
+++ eeepc-acpi-scripts-1.0.4.new/actions/wireless.sh 1970-01-01 01:00:00.000000000 +0100
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-wlan_control=/sys/devices/platform/eeepc/wlan
-[ -e $wlan_control ] || wlan_control=/proc/acpi/asus/wlan # pre-2.6.26
-
-case $1 in
- on|enable)
- if [ $(cat $wlan_control) = 0 ]; then
- modprobe -r pciehp
- modprobe pciehp pciehp_force=1
- echo 1 > $wlan_control
- 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
- if ! ifconfig ath0 up; then exec $0 off; fi
- fi
- ;;
- off|disable)
- if [ $(cat $wlan_control) = 1 ]; then
- ifdown --force ath0
- modprobe -r ath_pci
- echo 0 > $wlan_control
- fi
- ;;
- *)
- echo "Usage: $0 [on|off]"
- exit 1
- ;;
-esac
diff -ruN eeepc-acpi-scripts-1.0.4/actions/wireless-toggle.sh eeepc-acpi-scripts-1.0.4.new/actions/wireless-toggle.sh
--- eeepc-acpi-scripts-1.0.4/actions/wireless-toggle.sh 1970-01-01 01:00:00.000000000 +0100
+++ eeepc-acpi-scripts-1.0.4.new/actions/wireless-toggle.sh 2008-08-13 23:18:43.000000000 +0200
@@ -0,0 +1,17 @@
+#!/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
--- End Message ---
--- Begin Message ---
Version: 1.0.9
> The hotkey-handling code has gone through some reworking after
> version 1.0.4 and it would be nice if you can check if the current
> sid package works better for you.
Since I didn't get a reply, I am closing the bug. The 1.0.9 version is
chosen semi-arbitrary as it is the first that contains the pciehp
options that were needed on ralink-based wlan cards.
Feel free to reopen and give more details of model, etc.
--
dam JabberID: [email protected]
signature.asc
Description: Digital signature
--- End Message ---
_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel