Comment 49 for bug 432598

Revision history for this message
Ted Gould (ted) wrote :

I don't understand why we should be removing the items on the menu if there is administrator privlidges required to do the action. It would seem that they should switch to a "Sleep..." but you should still be allowed to ask the machine to sleep and give your password. As I understand it, this is what the "Allowed" function check.

But, there are two other properties that are in upower that allow for setting whether the machine CanSuspend or CanHibernate. These are derived by catting /sys/power/state and looking to see if it contains "mem" and/or "disk." I believe that these are derivated from the drivers in the system saying what they in turn support.

CanSuspend and CanHibernate are checked in indicator-session.