Re: [Madwifi-users] How to turn off a mini-PCI card with Madwifi
Status: Beta
Brought to you by:
otaku
From: Pablo O. <po...@eh...> - 2006-10-22 10:55:12
|
Hi Tony, El jue, 19-10-2006 a las 19:03 -0400, Tony Espy escribi=C3=B3: > Pablo Osuna wrote: > > I am working on a protocol to decrease the power consumption of a Wi-= Fi > > network. The key to do this is to turn off the wireless cards in some > > specific periods. In order to do that with PCMCIA cards I use cardctl > > eject command, and that works fine. My question is about mini-PCI car= ds: > > How can I turn off completely the mini-PCI card with madwifi driver? = I > > couldn't find the way to do that. >=20 > depends on your kernel. with 2.6, you should be able to use the=20 > standard PCI sysfs power interface to do this. >=20 > we use this mechanism on the Pepper Pad 3 to enable users to=20 > enable/disable wifi. >=20 > in /sysfs, each PCI device should have a sub-dir called /power. in thi= s=20 > dir is a file/entry called 'state'. if you echo '3' to state, it=20 > suspends the device, '0' will wake the device up. >=20 > in the kernel source tree, see Documentation/power/devices.txt for more= =20 > info. When I try to echo 3 to state I get the following error: voyage:/sys/devices/pci0000:00/0000:00:0d.0/power# ls -la total 0 drwxr-xr-x 2 root root 0 Jan 1 00:09 . drwxr-xr-x 3 root root 0 Jan 1 00:08 .. -rw-r--r-- 1 root root 0 Jan 1 00:12 state -rw-r--r-- 1 root root 4096 Jan 1 00:09 wakeup voyage:/sys/devices/pci0000:00/0000:00:0d.0/power# echo 3 > state -bash: echo: write error: Invalid argument |