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 Thu, 2005-03-10 at 22:13 +0100, Pavel Machek wrote:
> On Thu 10-03-05 12:37:57, David Zeuthen wrote:
> > On Thu, 2005-03-10 at 10:56 +0100, Pavel Machek wrote:
> > > > Is it a problem providing these events?
> > > 
> > > Why bloat kernel?
> > 
> > How is this bloating the kernel? Do you disagree that asynchronous
> > notification is a good thing? I think not because that's exactly why the
> > kobject_uevent stuff was put it in the kernel in the first place.
> 
> kobject_uevent in kernel does not mean we have to abuse it for suspend notifycation.
> (How would that notifycation work, btw? If done asynchronously, system will be suspended
> before processes will have chance to do anything).
> 

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

> 1st explain why such notifycation is needed
> 

Things like e.g. networking needs to be initialized (check DHCP lease,
find a new access point, select new active device etc.) - we need this
for e.g. NetworkManager. 

Applications with timeouts, such as screen savers, needs tweaking too.

> 2nd we can talk about how to do the notifycation
>
> 3rd we create example script and put it into Documentation
> 

I don't think this requires any script whatsoever.

> (We do not have async notify of reboot nor powerdown in kernel; this is similar).

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