[Bug 432598] Re: provide a way to disable suspend/hibernate
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 Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 432598] Re: provide a way to disable suspend/hibernate
For the OEM use case we need to be able to disable suspend/hibernate from the user interface without having to patch any packages (adding a new package that contains a gconf key of other standalone configuration file/option is ok). The devkit-power solution sounds like it might work, provided that all UI components respect those values. For example, in Karmic we have to modify the following to fully remove suspend/hibernate options from the UI: gdm gnome-power-manager gnome-session indicator-session -- provide a way to disable suspend/hibernate https://bugs.launchpad.net/bugs/432598 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
Re: [Bug 432598] Re: provide a way to disable suspend/hibernate
Steve Magoun [2010-01-20 18:40 -]: For the OEM use case we need to be able to disable suspend/hibernate from the user interface without having to patch any packages (adding a new package that contains a gconf key of other standalone configuration file/option is ok). Yes, it would mean to ship a new file in /var/lib/polkit-1/localauthority/10-vendor.d/ . Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- provide a way to disable suspend/hibernate https://bugs.launchpad.net/bugs/432598 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 432598] Re: provide a way to disable suspend/hibernate
** Summary changed: - can_suspend and can_hibernate values aren't respected + provide a way to disable suspend/hibernate -- provide a way to disable suspend/hibernate https://bugs.launchpad.net/bugs/432598 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs