lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 12 Jul 2007 09:15:56 +0800
From:	Arjan van de Ven <arjan@...radead.org>
To:	Richard Mittendorfer <delist@....net>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: PCI devices power management, w/o sysfs? [Was: Re: Liunx power
	consumption on laptops ...]

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 majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ