Comment 28 for bug 389857

Revision history for this message
Oded Arbel (oded-geek) wrote : Re: [karmic] inhibit applet does not inhibit some user initiated events

Suspend on lid close is not a manual action - closing the lid is manual, the same as not doing anything until the session idle timer expires: both are user decisions. Suspending the computer when the lid closes as well as triggering screensaver or putting the display to sleep when because a user has done something related - both are automatic actions that the inhibit applet should prevent.

Using the shutdown command from the system or session menu, is the user requesting a very specific power manager action and should not be inhibited. As a rule of thumb, I would say that if a preference says to take that action (because the user has triggered something that caused that preference to be consulted) then the inhibit applet should inhibit it, while if a user said to take that action then the inhibit applet should not inhibit it.

As an example, here are two things that the current inhibit + power management setup gets wrong:

* Shutdown the computer when the shutdown command is invoked by the user: current inhibit behavior- inhibits; expected inhibit behavior - do not inhibit.
* Shutdown the computer when lid is closed (is specified in the preferences): current inhibit behavior - does not inhibit; expected inhibit behavior - should inhibit.