how to turn off hibernate and suspend system wide 8.04

Asked by bb

I would like to completely turn OFF Hibernate and Suspend - system wide (this is for the computer itself). It does not work well for me. Locks the computer and I need to restart it. From what I read it appears that it is a bug. The problem is that my daughter plays with the computer some times. I managed to turn it off for the current session (hibernate and suspend) and the buttons are not available any more but she manages to switch the user and somehow activate it from there (my best guess). I can't really teach here yet. She is just a toddler.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
bb
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

I know A and B and C methods

========================================================
The "A" method will disable the system wide Suspend Hibernate for all the users

A) - Open a terminal from Applications → Accessories → Terminal and type:

sudo gedit /etc/default/acpi-support

Look for and change the rows as below:
Alternatively, they could be simply commented out with a pound sign (#)

ACPI_SLEEP=false

ACPI_HIBERNATE=false

Reboot, these should completely disable hibernation and suspend.

========================================================
The "B" and "C" method will disable Suspend Hibernate only for current logged user

B) - Open the System → Preferences → Power management and play with settings (but sometimes don't works)

C) To disable Suspend and Hibernate for a user account, not system wide.

Open a terminal from Applications → Accessories → Terminal and type:

gconf-editor

Navigate to: apps → gnome power manager → general and remove the ticks at: can_hibernate and can_suspend

Note: this is a user preference: repeat this in each user account.

Hope this helps

Revision history for this message
bb (vancouverbluesea) said :
#2

I tried suggestion
A) but for some reason the system did not honor it. (I am guessing that this might be when creating new users)
B) is dealing with monitor suspend mode (and I still want to keep this) it tends to be misbehaving every now and then. I tend to relate it to Amarok in Gnome.
C) I already implemented it. The issue with it is that it does not change the GDM (the greeting window). Hibernate Suspend are still available there.

I did found a solution however - as good as I can find for now.

/etc/gdm
has 2 files of interest
gdm.conf (this is system default and should not be edited - but some values can be copied and altered)
gdm.conf-custom (this is where I made the changes - it will not be overwritten by the system)

On the
[daemon] section
added
SystemCommandsInMenu=HALT;REBOOT;CUSTOM_CMD
(copied this from the gdm.conf but removed HIBERNATE and SUSPEND

This would prevent accidentally hibernating the system

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Wonderful so we have another place to play with... ;-)

Thank you