From: Pavel Machek <pavel@suse.cz>
To: Patrick Mochel <mochel@digitalimplant.org>
Cc: linux-pm@lists.osdl.org
Subject: Re: Runtime device power management in userspace
Date: Tue, 27 Dec 2005 21:04:18 +0100 [thread overview]
Message-ID: <20051227200418.GA4769@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.50.0512261244200.12383-100000@monsoon.he.net>
[-- Attachment #1: Type: text/plain, Size: 2076 bytes --]
On Po 26-12-05 12:58:02, Patrick Mochel wrote:
> On Sat, 24 Dec 2005, Holger Macht wrote:
> > On Fr 23. Dez - 07:12:35, Patrick Mochel wrote:
>
> > > How do you determine the idleness of a device? Or, is it based purely on
> > > user direction?
> >
> > That's one of the main problems. For some devices, for instance network
> > cards, we can query the NetworkManager (as far as available) via DBus if
> > the device is currently in use or not. But we don't have that possiblity
> > for all devices. The even more problematic point is the other way
> > round. How to figure out if we have to resume a device as soon as another
> > application wants to access it? I have currently no clue how to do this.
>
> That is definitely a devlish detail (or rather, several of them). In
> general, you want a device to resume as soon as it's needed by an
> application. There's no way of knowing this from a 3rd party app, and
> there is no way of changing every application to first power up a device.
> So, it must happen in the kernel.
While we want to implement that someday, we should fix the easy stuff.
> Where in the kernel is dependent on the type (class) of device. For some,
> it will be on open(2), others will be connect(2), and others will be the
> set of read(2)/write(2)/select(2)/poll(2). To this effect, I think that
> the individual classes need to be changed to do e.g.
And for some, it is not possible to keep them functional and powered
down. Take ethernet interface: if you power it down, you'll not see
incoming packets.
> Implementing all of this will take time and collaboration with the
> different device classes, but I think that this is a direction which most
> distros would like to head. Is that even remotely correct?
Would like to head is correct... but that's year+ away. For now, we'd
like to get the simpler "power this piece of hardware down, return
errors to userspace", first.
Example usage is... you are traveling by train, so you know you are
not using ethernet and wifi... so you just force it down.
Pavel
--
Thanks, Sharp!
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2005-12-27 20:04 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-23 14:30 Runtime device power management in userspace Holger Macht
2005-12-23 15:12 ` Patrick Mochel
2005-12-24 0:40 ` Pavel Machek
2005-12-26 20:43 ` Patrick Mochel
2005-12-26 22:33 ` Pavel Machek
2005-12-27 18:59 ` Patrick Mochel
2005-12-27 19:22 ` Pavel Machek
2005-12-27 19:29 ` Patrick Mochel
2005-12-27 19:41 ` Pavel Machek
2005-12-27 20:40 ` Patrick Mochel
2005-12-27 21:06 ` Pavel Machek
2005-12-26 22:47 ` Alan Stern
2005-12-27 17:29 ` Pavel Machek
2005-12-27 17:36 ` Randy.Dunlap
2005-12-24 15:31 ` Holger Macht
2005-12-26 20:58 ` Patrick Mochel
2005-12-27 20:04 ` Pavel Machek [this message]
2005-12-27 20:54 ` Patrick Mochel
2005-12-23 15:17 ` Alan Stern
2005-12-24 0:41 ` Pavel Machek
2005-12-24 0:43 ` Pavel Machek
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=20051227200418.GA4769@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=linux-pm@lists.osdl.org \
--cc=mochel@digitalimplant.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