In particular, you have to install a file like this for an OEM package: $ sudo cat /var/lib/polkit-1/localauthority/10-vendor.d/disable-suspend.pkla [Disable suspend] Identity=unix-user:* Action=org.freedesktop.devicekit.power.suspend;org.freedesktop.devicekit.power.hibernate ResultActive=no ResultAny=no
If you set this up locally, you should rather put it into /etc/polkit-1/localauthority/50-local.d/ . Test: $ pkcheck --action-id org.freedesktop.devicekit.power.suspend --process $$ Not authorized. ** Summary changed: - provide a way to disable suspend/hibernate + Do not show suspend/hiberate related UI if suspend is disabled in polkit -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs