From: Arjan van de Ven <arjan@infradead.org>
To: Richard Mittendorfer <delist@gmx.net>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: PCI devices power management, w/o sysfs? [Was: Re: Liunx power consumption on laptops ...]
Date: Thu, 12 Jul 2007 09:15:56 +0800 [thread overview]
Message-ID: <1184202956.2693.1.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <20070711144233.92a584fd.delist@gmx.net>
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
prev parent reply other threads:[~2007-07-12 1:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 19:58 Liunx power consumption on laptops -- Enormous progress in the last few months Arjan van de Ven
2007-07-06 16:34 ` Chuck Ebbert
2007-07-06 16:35 ` Arjan van de Ven
2007-07-06 17:02 ` Dave Jones
2007-07-09 21:42 ` Valdis.Kletnieks
2007-07-09 21:46 ` Dave Jones
2007-07-06 18:02 ` Chuck Ebbert
2007-07-09 17:55 ` Bill Davidsen
2007-07-10 18:59 ` Pavel Machek
2007-07-11 12:42 ` PCI devices power management, w/o sysfs? [Was: Re: Liunx power consumption on laptops ...] Richard Mittendorfer
2007-07-12 1:15 ` Arjan van de Ven [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1184202956.2693.1.camel@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=delist@gmx.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®