[Pkg-acpi-devel] Bug#548252: acpi-support: wlan switch does not work with kernel 2.6.31
Cevin
kevin-mit-c at pro-kevin.de
Thu Sep 24 21:42:24 UTC 2009
Package: acpi-support
Version: 0.123-1
Severity: normal
The wireless switch on my notbook does not work together with kernel 2.6.31. This
patch fixes the problem for me:
--- state-funcs.orig 2009-09-24 22:59:41.000000000 +0200
+++ state-funcs 2009-09-24 23:05:00.000000000 +0200
@@ -8,7 +8,7 @@
if [ -d $DEVICE/wireless ]; then
# Hurray for stable interfaces... now the rfkill is scarcely
# associated with the network device at all (!)
- for RFKILL in $DEVICE/device/rfkill/rfkill*/state; do
+ for RFKILL in $DEVICE/phy80211/rfkill*/state
$DEVICE/device/rfkill/rfkill*/state; do
if [ -r "$RFKILL" ] && [ "$(cat "$RFKILL")" -eq 1 ]
then
return 0
@@ -45,7 +45,7 @@
# Yes, that's right... the new interface reverses the truth
# values.
ON=1
OFF=0
- for CONTROL in $DEVICE/device/rfkill/rfkill*/state; do
+ for CONTROL in $DEVICE/phy80211/rfkill*/state
$DEVICE/device/rfkill/rfkill*/state; do
if [ -w "$CONTROL" ]; then
FOUND=1
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-cvl (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages acpi-support depends on:
ii acpi-support-base 0.109-11 scripts for handling base ACPI eve
ii acpid 1.0.8-1lenny1 Utilities for using ACPI power man
ii dmidecode 2.9-1 Dump Desktop Management Interface
ii finger 0.17-12 user information lookup program
ii hdparm 8.9-3 tune hard disk parameters for high
ii laptop-detect 0.13.6 attempt to detect a laptop
ii libc6 2.7-18 GNU C Library: Shared libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii pm-utils 1.1.2.4-1 utilities and scripts for power ma
ii powermgmt-base 1.30+nmu1 Common utils and configs for power
ii x11-xserver-utils 7.3+5 X server utilities
Versions of packages acpi-support recommends:
ii dbus 1.2.1-5+lenny1 simple interprocess messaging syst
ii hal 0.5.11-8 Hardware Abstraction Layer
ii nvclock 0.8b3-1 Allows you to overclock your nVidi
ii radeontool 1.5-5 utility to control ATI Radeon back
Versions of packages acpi-support suggests:
ii laptop-mode-tools 1.45-1 Scripts to spin down hard drive an
-- no debconf information
More information about the Pkg-acpi-devel
mailing list