Hardware control wireless switch on Thinkpad with Madwifi drivers

Debian Abuser agent.one at gmail.com
Thu Dec 6 17:28:14 UTC 2007


Hello everyone:

Since I upgraded to Fedora 8 I notice battery life of my ThinkPad T61 
strongly reduced. Even with the 9-cell battery I rarely go over 4,5hrs 
of life compared to 7+ hrs before; Naturally, I started "hunting" for 
the cause of this. What I discovered is that the wireless is permanently 
on, regardless if the hardware switch on the front of the laptop is ON 
or OFF. Strangely enough, the Bluetooth is responsive to flipping the 
switch.

I posted my problem and findings in the Fedora Forum here 
<http://forums.fedoraforum.org/showthread.php?t=173274> but so far could 
not find a solution.

I have tpb installed and flipping the hardware switch does change the 
state of /sys/devices/platform/thinkpad_acpi/hotkey_radio_sw; basically 
this change in state does not change the power power state of the 
Atheros wireless. It is always on.

Powertop content is:

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 4.0%)         2.21 Ghz     1.2%
C1                0.0ms ( 0.0%)         2.21 Ghz     0.0%
C2                0.5ms ( 0.5%)         1200 Mhz     0.2%
C3                2.2ms (95.5%)          800 Mhz    98.5%


Wakeups-from-idle per second : 444.3    interval: 10.0s
no ACPI power usage estimate available

Top causes for wakeups:
  61.9% (252.5)       <interrupt> : uhci_hcd:usb6, wifi0, firewire_ohci, 
HDA Intel
  15.2% ( 62.2)       <interrupt> : extra timer interrupt
   6.5% ( 26.4)       <interrupt> : PS/2 keyboard/mouse/touchpad
   3.8% ( 15.6)       firefox-bin : futex_wait (hrtimer_wakeup)
   3.1% ( 12.6)                 X : do_setitimer (it_real_fn)
   2.7% ( 11.0)       <interrupt> : libata
   1.3% (  5.3)        gdm-binary : do_nanosleep (hrtimer_wakeup)
   1.2% (  5.0)               tpb : do_nanosleep (hrtimer_wakeup)
   0.6% (  2.5)   multiload-apple : schedule_timeout (process_timeout)
   0.6% (  2.4)    gnome-terminal : schedule_timeout (process_timeout)
   0.4% (  1.7)                 X : schedule_timeout (process_timeout)
   0.2% (  1.0)         automount : futex_wait (hrtimer_wakeup)
   0.2% (  1.0)               exe : schedule_timeout (process_timeout)
   0.2% (  1.0)             pcscd : schedule_timeout (process_timeout)
   0.2% (  1.0)    cpufreq-applet : schedule_timeout (process_timeout)
   0.2% (  1.0)     <kernel core> : ath_newstate (ath_calibrate)
   0.1% (  0.5)       <interrupt> : eth0
   0.1% (  0.5)   <kernel module> : neigh_table_init_no_netlink 
(neigh_periodic_timer)
   0.1% (  0.5)     <kernel core> : e1000_intr_msi (e1000_watchdog)
   0.1% (  0.5)     <kernel core> : neigh_table_init_no_netlink 
(neigh_periodic_timer)
   0.1% (  0.5)   hald-addon-stor : schedule_timeout (process_timeout)
   0.1% (  0.3)                ip : ath_tx_tasklet (ath_led_off)
   0.1% (  0.3)                ip : ath_tx_tasklet (ath_led_done)

The output of /sbin/lspci is:
# /sbin/lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory 
Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 
Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 
Integrated Graphics Controller (rev 0c)
00:03.0 Communication controller: Intel Corporation Mobile PM965/GM965 
MEI Controller (rev 0c)
00:03.2 IDE interface: Intel Corporation Mobile PM965/GM965 PT IDER 
Controller (rev 0c)
00:03.3 Serial controller: Intel Corporation Mobile PM965/GM965 KT 
Controller (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network 
Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI 
Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio 
Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express 
Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express 
Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express 
Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express 
Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express 
Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI 
Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI 
Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface 
Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) 
IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) 
SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller 
(rev 03)
[b]03:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 
802.11abg NIC (rev 01)[/b]
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller 
(rev 04)
15:00.2 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 
SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.3 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 11)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host 
Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)

Madwifi module installed is:
# yum info madwifi
Installed Packages
Name   : madwifi
Arch   : i386
Version: 0.9.3.3
Release: 1.lvn8
Size   : 275 k
Repo   : installed
Summary: Kernel module and Diagnostic tools for Atheros wireless devices



Thank you,
John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20071206/b3f15af6/attachment-0001.html 


More information about the users mailing list