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