On Wed, 2007-07-11 at 14:42 +0200, Richard Mittendorfer wrote:
> Greetings *!
>
> I'm looking for a way to disable (PM low power mode) some devices I
> rarely/never use on my laptop to save some more power. With 2.6.17,
> IIRC, I was able to echo -n 2 > /sys/bus/pci/../power to put things
> into low power mode. (I don't know if it ever worked, but at least it
> looked like it did.)
>
> ..-2.6.22(-ck1) w/ CONFIG_PM_SYSFS_DEPRECATED doesn't let me change this
> state. evident :) -----------------^^^^^^^^^^
>
> Is there a proper way to do this (setpci, if I'd know the registers)?
> Is it gone/going inside drivers (like USB_SUSPEND) and I don't have to
> worry?
>
> I currently don't load the modules in question - but I'm not sure if it
> helps, as they might already be powered on by PCI initialization/BIOS
> (/sys/bus/pci/../state cats "0").
the real solution is to do it right in the driver.
Using a sysfs "whack behind the drivers back" method is just a disaster
waiting to happen; it cannot be done reliable (for example, without
knowledge of what you're doing, an application that just whacks all may
whack devices that have hw quirks and cannot deal with this, etc etc).
--
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]