suspend/resume uevents [was Re: [linux-pm] Introducing HAL userspace power management]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Pá 11-03-05 00:28:55, David Zeuthen wrote:
> On Fri, 2005-03-11 at 00:07 +0100, Pavel Machek wrote:
> > > I was merely asking for an event when the system is resumed.
> > > 
> > > I agree it doesn't make much sense for an event just before the system
> > > is suspended - if this is needed I believe we can orchestrate it
> > > completely from user space (things like making your email app
> > > synchronize etc. comes to mind).
> > 
> > You can have event when the system is resumed. Just do it in userspace.
> > 
> 
> Maybe I'm reading the source wrong, but isn't it the case that some
> laptops using APM (my IBM thinkpad T41 with acpi=off for instance)
> suspends without user space interaction when the lid is closed, thus
> rendering it impossible to send the event from user space? 
> 
> One may even ask whether it's sound to assume that all architectures
> will be suspended via user space?

Some machines will suspend without even telling operating system
anything.

For APM case, yes some kind of notification makes sense (I thought we
were talking ACPI/swsusp here).


> > . I'm *not* going to do that from kernel. But standartizing what needs
> > to be ran on resume is indeed good idea, and few lines in
> > Documentation/power/* are probably worth it.
> > 
> 
> There's a very practical problem of getting all distributions to
> actually do this.

Where doing it kernel means we have to do it right..

> Another point is that user space may just use a timer and look at the
> wall clock to determine when a suspend happens, but that's hardly an
> elegant architecture. It does save some discussion, though, either way
> I'll be quiet now and leave you guys to do real work :-)

Well, if you propose reasonable way to notify userspace, you can get
it at least for APM case... So do not drop quiet just now.

								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux