Your message dated Tue, 13 May 2008 07:32:02 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#453706: fixed in acpi-support 0.109-1 has caused the Debian Bug report #453706, regarding acpi-support: Fn-F5 (start/stop WLAN) does not work with atheros based cards 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.) -- 453706: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453706 Debian Bug Tracking System Contact [EMAIL PROTECTED] with problems
--- Begin Message ---Package: acpi-support Version: 0.103-1 Severity: important Tags: patch Content-Type: multipart/mixed; boundary="===============0931502210==" MIME-Version: 1.0 From: Stefan Pampel <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: acpi-support: Fn-F5 (start/stop WLAN) does not work with atheros based cards running with madwifi-drivers Message-ID: <[EMAIL PROTECTED]> X-Mailer: reportbug 3.39 Date: Fri, 30 Nov 2007 18:13:13 +0100 This is a multi-part MIME message sent by reportbug. --===============0931502210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: acpi-support Version: 0.103-1 Severity: important Tags: patch wifi cards based on atheros chips running with madwifi-drivers[1] can't diabled by pressing Fn-F5. This comes through a different structure in /sys/class/net/[DEVICE]/* . The script /etc/acpi/ibm-wireless.sh calls a function called toggleAllWirelessStates in the file /usr/share/acpi-support/state-funcs which normaly does the on/off switch. The function gather information out of /sys/class/net/[DEVICE]/device/power/state or /sys/class/net/[DEVICE]/device/rf_kill '0' for off and '1' for on. The madwifi-driver puts the power in fo in a different place /sys/class/net/[DEVICE]/operstate with 'up' and 'down' . Changing the function toggleAllWirelessStates can help to fix this, see the attached patch. [1] http://madwifi.org/ -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (400, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-vserver-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acpi-support depends on: ii acpid 1.0.4-7.1 Utilities for using ACPI power man ii dmidecode 2.9-1 Dump Desktop Management Interface ii finger 0.17-11 user information lookup program ii hdparm 7.7-1 tune hard disk parameters for high ii laptop-detect 0.12.1-0.1 attempt to detect a laptop ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip ii nvclock 0.8b2-1 Allows you to overclock your nVidi ii powermgmt-base 1.29 Common utils and configs for power ii radeontool 1.5-5 utility to control ATI Radeon back ii toshset 1.72-6 Access much of the Toshiba laptop ii vbetool 0.7-1.1 run real-mode video BIOS code to a ii x11-xserver-utils 7.3+1 X server utilities acpi-support recommends no packages. -- no debconf information --===============0931502210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="state-funcs.patch" --- /tmp/state-funcs 2007-11-30 17:49:54.376884806 +0100 +++ /usr/share/acpi-support/state-funcs 2007-11-30 18:10:14.886571922 +0100 @@ -31,29 +31,42 @@ toggleAllWirelessStates() { for DEVICE in /sys/class/net/* ; do - if [ -d $DEVICE/wireless ] ; then - # $DEVICE is a wireless device. Check if it's powered on: - ON=0 - OFF=1 # 1 for rf_kill, 2 for power/state - for CONTROL in $DEVICE/device/rf_kill $DEVICE/device/power/state ; do - if [ -w $CONTROL ] ; then - # We have a way of controlling the device, lets try - if [ "`cat $CONTROL`" = 0 ] ; then - # It's powered on. Switch it off. - if echo -n $OFF > $CONTROL ; then - break - else - OFF=2 # for power/state, second time around + if [ -d $DEVICE/wireless ] ; then + # $DEVICE is a wireless device. Check if it's powered on: + ON=0 + OFF=1 # 1 for rf_kill, 2 for power/state + for CONTROL in $DEVICE/device/rf_kill $DEVICE/device/power/state $DEVICE/operstate; do + if [ -w $CONTROL ] ; then + # We have a way of controlling the device, lets try + if [ "`cat $CONTROL`" = 0 ] ; then + # It's powered on. Switch it off. + if echo -n $OFF > $CONTROL ; then + break + else + OFF=2 # for power/state, second time around + fi + else + # It's powered off. Switch it on. + if echo -n $ON > $CONTROL ; then + break + fi + fi + # bof: madwifi, operstate + NET_IF=`echo $DEVICE | cut -d \/ -f 5` + if [ "`cat $CONTROL`" = "up" ] ; then + # It's powered on. Switch it off. + ifdown $NET_IF + else + # It's powered off. Switch it on. + ifup $NET_IF + if [ -x /sbin/wpa_cli ] ; then + wpa_cli scan fi - else - # It's powered off. Switch it on. - if echo -n $ON > $CONTROL ; then - break - fi - fi - fi - done - fi + fi + #eof: madwifi operstate + fi + done + fi done } --===============0931502210==-- -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (400, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-vserver-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages acpi-support depends on: ii acpid 1.0.4-7.1 Utilities for using ACPI power man ii dmidecode 2.9-1 Dump Desktop Management Interface ii finger 0.17-11 user information lookup program ii hdparm 7.7-1 tune hard disk parameters for high ii laptop-detect 0.12.1-0.1 attempt to detect a laptop ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip ii nvclock 0.8b2-1 Allows you to overclock your nVidi ii powermgmt-base 1.29 Common utils and configs for power ii radeontool 1.5-5 utility to control ATI Radeon back ii toshset 1.72-6 Access much of the Toshiba laptop ii vbetool 0.7-1.1 run real-mode video BIOS code to a ii x11-xserver-utils 7.3+1 X server utilities acpi-support recommends no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: acpi-support Source-Version: 0.109-1 We believe that the bug you reported is fixed in the latest version of acpi-support, which is due to be installed in the Debian FTP archive: acpi-support-base_0.109-1_all.deb to pool/main/a/acpi-support/acpi-support-base_0.109-1_all.deb acpi-support_0.109-1.dsc to pool/main/a/acpi-support/acpi-support_0.109-1.dsc acpi-support_0.109-1.tar.gz to pool/main/a/acpi-support/acpi-support_0.109-1.tar.gz acpi-support_0.109-1_i386.deb to pool/main/a/acpi-support/acpi-support_0.109-1_i386.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bart Samwel <[EMAIL PROTECTED]> (supplier of updated acpi-support package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Mon, 12 May 2008 17:10:00 +0200 Source: acpi-support Binary: acpi-support acpi-support-base Architecture: source i386 all Version: 0.109-1 Distribution: unstable Urgency: low Maintainer: Bart Samwel <[EMAIL PROTECTED]> Changed-By: Bart Samwel <[EMAIL PROTECTED]> Description: acpi-support - scripts for handling many ACPI events acpi-support-base - scripts for handling base ACPI events such as the power button Closes: 373660 405563 410478 426934 447742 450531 453706 453856 453861 455012 458437 458787 459326 459328 461311 461441 462954 463719 467347 467374 469556 471510 473184 475002 477917 480033 Changes: acpi-support (0.109-1) unstable; urgency=low . * New upstream release 0.109 (Ubuntu Hardy) [no relevant changes]. * New upstream release 0.108 (Ubuntu Hardy) [no relevant changes]. * New upstream release 0.107 (Ubuntu Hardy): * "lib/FUJITSU SIEMENS.config": Fix typo, which caused failures on Fujitsu notebooks (LP: #203452) * New upstream release 0.106 (Ubuntu Hardy): * Add events/asus-video to support asus switch video hotkey; patch from Nicolò Chieffo (LP: #138228) * Fix the value range in sonybright.sh (0-7 instead of 1-8); patch from unggnu (LP: #136380) * "lib/FUJITSU SIEMENS.config": - Enable suspend for Fujitsu-Siemens C1110 (LP: #52970) - Enable STR for Fujitsu-Siemens Lifebook S7020, S7110 * events/asus-*: Fix event key names for ASUS (HOTK); patch from Jeroen van der Vegt (LP: #25784) * Fix names in comments for events/panasonic-{mute,volume-down,volume-up} * Drop thinkpad_acpi.modprobe: the workarounds therein are not needed for thinkpad_acpi in Hardy anymore; investigations by Jerone Young (LP: #194679) [ Note from Bart Samwel: Therefore probably not needed in current Debian kernels either. ] * New upstream version 0.105 (from Ubuntu Hardy): * Fix screenblank for KDE by using a dcop call * Add HOTK key names in events/asus-* for more keys than provided by the upstream. * Remove extra non-owned files on purge. Closes: #455012 * Call old acpid power button handler /etc/acpi/powerbtn.sh if present. Closes: #461311 * Support "operstate" power state file for madwifi drivers. Closes: #453706. * Support operstate, rf_kill and power/state to determine if wireless is powered on. Closes: #463719. * Support asus-laptop module as well as asus-acpi module for setting the wireless LED. Closes: #453856. * As a fallback, detect X instances that were not started on a vt. Closes: #462954. * Add missing checks that acpi-support is installed to some of the config scripts. Closes: #469556. * Remove Default-Stop entries from vbesave init script, since the script doesn't do anything when it's stopped. Closes: #461441. * Check that a drive supports APM before using hdparm -B on it. Closes: #458787. * Divert sleep button to sleep.sh if power management daemons are not running, for thinkpad, panasonic, sony and toshiba laptops. Closes: #467374, 373660. * Stop laptop mode early in the suspend/hibernate process, and start it late at resume time. This fixes suspend/resume problems on at least one machine. Closes: #458437. * Config option USE_HIBERNATE_PACKAGE=true will now instruct acpi-support to delegate sleeping and hibernation to the "hibernate" package. Closes: #426934, #405563. * Check if we can actually open event device in acpi_fakekey. Closes: #410478. * Support Asus R1F tablet screen rotation. Kudos to Antonio Trueba. Closes: #450531. * Remove /etc/acpi/resume.d/49-915-resolution-set.sh. It will be moved to the 915resolution package. Closes: #447742, #467347. * Don't misinterpret Asus Eee PC hotkeys as brightness keys. Closes: #459328. * Support Asus Eee PC volume up/down and mute keys. Closes: #459326. * Get rid of extra quotes in asus-wireless.sh. * Fix handling of ${shlibs:Depends} in control file (it wasn't generated in the rules file). * Move radeontool to Recommends. (This is possible because radeontool is in task "laptop" now.) * Once again got rid of some bash dependencies. Closes: #453861. * Be able to detect X user when X has been started using startx. Thanks to Csaba Halasz for the patch. Closes: #471510. * Call wpa_action stop for wpasupplicant-controlled interfaces before suspend. Closes: #473184. * Correctly bring up logical interfaces on resume. Closes: #475002. * Instead of restarting Network Manager on suspend, call its sleep and wakeup events. Closes: #477917. * Add console-tools to depends of acpi-support-base, since we use fgconsole in power-funcs. * Fix dcop call in CheckPolicy to pass the X user. Closes: #480033. * Let acpi-support depend on exact version of acpi-support-base. Checksums-Sha1: f30e27f072247b64732ea39ca34fba7244e8300e 1061 acpi-support_0.109-1.dsc 9275c9c34e10024394454f3fda4e4b8181d25bbb 54341 acpi-support_0.109-1.tar.gz 0fe62bddb301c7f779293fbcaaa6ec8308d89ca0 48412 acpi-support_0.109-1_i386.deb 3a19cf9cb8f4a926e4f1879e885eb7bf468e544a 20646 acpi-support-base_0.109-1_all.deb Checksums-Sha256: 45360ab8748ea38c3c9faddbcd4ddaedc6012086eef10d2cd9045edf3f8b7fd3 1061 acpi-support_0.109-1.dsc 4c5e56387d13fa6490e5cdc3f7fb42339e83898d49fc06f0bb33b2f67a5137bb 54341 acpi-support_0.109-1.tar.gz 1e9163ae4f546fa7e76429b872d25ff375c020efc9e908c5358f0039cd888012 48412 acpi-support_0.109-1_i386.deb 1bfb36b1a2641f5c5cfb05a7fb85f4a69a4c0969d0ff7f065251693ac3f93daa 20646 acpi-support-base_0.109-1_all.deb Files: 0c1b965e1af4bba1167fac0c38dad28c 1061 admin optional acpi-support_0.109-1.dsc 855e77e41dbcc2aae528596439e767cf 54341 admin optional acpi-support_0.109-1.tar.gz b95f0fe94c84086bbafc5f4669b6f754 48412 admin optional acpi-support_0.109-1_i386.deb a5ca7fc538c446dc4747accd98a5ed5a 20646 admin optional acpi-support-base_0.109-1_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Signed by Raphael Hertzog iD8DBQFIKT1avPbGD26BadIRAoFQAJ96QT+gaj6G+U7SkEcpG5MmsRwsKACff08L bSIX9eo26aK6AcQSFViw+bg= =uFKt -----END PGP SIGNATURE-----
--- End Message ---

