LWN.net Logo

Yet another opportunity for opportunistic suspend

Yet another opportunity for opportunistic suspend

Posted Oct 20, 2011 22:55 UTC (Thu) by mclasen@redhat.com (subscriber, #31786)
In reply to: Yet another opportunity for opportunistic suspend by intgr
Parent article: Yet another opportunity for opportunistic suspend

> Session managers already do something similar for screen savers (though
> that's in user's session scope, not global). Also desktop environment
> developers have introduced lots of new odd daemons recently, I'm surprised
> they haven't came up with a suspend policy framework yet.

The inhibit api of gnome-session lets you do just that:

http://people.gnome.org/~mccann/gnome-session/docs/gnome-...

Not sure what 'odd daemons' you have in mind, but as far as desktops are concerned, the policy belongs in the user session.


(Log in to post comments)

Yet another opportunity for opportunistic suspend

Posted Oct 21, 2011 11:48 UTC (Fri) by intgr (subscriber, #39733) [Link]

> The inhibit api of gnome-session lets you do just that
> as far as desktops are concerned, the policy belongs in the user session
Not if this policy affects all users of a computer. The computer shouldn't autosuspend if another user has important applications running that block suspend.

> Not sure what 'odd daemons' you have in mind
If you haven't peeked into your process list lately, here's a few:
colord, upowerd, udisks-daemon, rtkit-daemon, polkitd, accounts-daemon, NetworkManager, modem-manager

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds