Doesn't prevent suspend on lid close

Bug #1532043 reported by Thea Barnes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Caffeine
Won't Fix
Undecided
Unassigned

Bug Description

Expected behavior:
Closing my laptop's lid should not put the system into suspend if Caffeine is active.

Actual behavior:
When closing the lid, the system will still go into suspend even when Caffeine is active.

Additional info:
I'm running Ubuntu 15.10 (Unity 7 desktop) on a Dell Inspiron 7348, with "When the lid is closed" in the power settings set to "Suspend".

Revision history for this message
Thea Barnes (tsbarnes) wrote :

Perhaps adding a setting for commands to run when activating/deactivating Caffeine would work, then those commands could be set by the user to the appropriate commands to disable/enable suspend on lid close.

Revision history for this message
Reuben Thomas (rrt) wrote :

Caffeine inhibits desktop idleness; that doesn't include lid closing.

Changed in caffeine:
status: New → Won't Fix
Revision history for this message
Reuben Thomas (rrt) wrote :

I meant to add that if you use GNOME you can use `gnome-session-inhibit --inhibit suspend` to achieve this; I imagine other desktop environments have equivalents.

Caffeine uses (currently a patched version of) xdg-screensaver, which doesn't support this. If xdg-utils is improved to support this, it should be possible to add to Caffeine in some form.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.