You are not logged in.
Hi all,
I want to disable suspend from the power management options in gnome. I don't have support for suspend as I don't have a swap partition on purpose. I only want reboot and shutdown as options.
Can I configure this?
I didn't see any settings in gconf-editor that would correlate to this.
Walter
Last edited by walterjwhite (2011-06-08 01:37:19)
Offline
FWIW suspend doesn't use the swap partition, hibernate does. Suspend simply leaves data in your RAM and provides just enough power to hold it there. Hibernate moves the data from RAM to the swap partition/file and then completely shuts down the device.
Last edited by thayer (2011-05-25 19:49:44)
thayer williams ~ cinderwick.ca
Offline
Hi Thayer,
Thanks for the clarification - I want to disable both suspend and hibernate and just have reboot and shutdown in my menu. Can I do that?
One of the reasons for this is that I may run my OS from a USB drive, and there are issues when resuming from USB.
Walter
Offline
I need to know this too as I sometimes accidentally click suspend where you have to alt-click to shutdown, and my comp can't resume from suspend sometimes
Offline
I got this from somewhere else on the internet, but I'm not sure where anymore. In any case, it works.
To disable suspend and hibernation, add a file named 50-admin.pkla to:
/etc/polkit-1/localauthority/50-local.d
full path as reference: /etc/polkit-1/localauthority/50-local.d/50-admin.pkla
Add the following text to the file and save it. Log out and back in. This will remove suspend and hibernate from the shut down menus
[disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultAny=no
ResultInactive=no
ResultActive=no
[disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultAny=no
ResultInactive=no
ResultActive=no
Offline
bnb2235, that did it. It works just like I want.
Thanks,
Walter
Offline