You are not logged in.

#1 2011-05-25 19:17:57

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Gnome3 - disable suspend [solved]

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

#2 2011-05-25 19:48:57

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Gnome3 - disable suspend [solved]

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

#3 2011-05-25 20:05:16

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: Gnome3 - disable suspend [solved]

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

#4 2011-05-25 23:35:33

sudokill
Member
Registered: 2011-04-27
Posts: 54

Re: Gnome3 - disable suspend [solved]

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

#5 2011-05-26 01:25:13

bnb2235
Member
Registered: 2011-02-13
Posts: 115

Re: Gnome3 - disable suspend [solved]

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

#6 2011-06-08 01:36:28

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: Gnome3 - disable suspend [solved]

bnb2235, that did it.  It works just like I want.

Thanks,

Walter

Offline

Board footer

Powered by FluxBB