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 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?

<snip>

> . 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.

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 :-)

Cheers,
David



[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