Disable suspend?

Jeroen van Meeuwen kanarip at kanarip.com
Fri Jan 12 15:16:56 UTC 2007


Mogens Kjaer wrote:
> How do I disable suspend?
> 
> Some users complain that they hit the suspend menu item
> by accident, and their machines don't survive suspend/resume.
> 
> They don't need the suspend/resume feature at all.
> 
> I've tried modifying /etc/pam.d/pm-suspend so that
> only root can do a suspend, but this is not enough,
> it still restarts X.
> 

There is a line in /etc/gconf/schemas/gnome-power-manager.schemas that says:

"Allow Suspend and Hibernate in the menu"

A few lines above that, it defines "true" as the default.

This is somewhere around line 1308.

Kind regards,

Jeroen van Meeuwen




More information about the users mailing list