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.

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to