How to completely disable suspend?

Xandros Pilosa folivora.pilosa at gmail.com
Fri Jan 15 15:50:37 UTC 2010


Dne 15.01.2010 (pet) ob 16:12 +0100 je Josef Wolf zapisal(a):
> On Sun, Jan 10, 2010 at 08:07:58PM +0100, Josef Wolf wrote:
> > On Sat, Jan 09, 2010 at 07:04:57PM +0100, Xandros Pilosa wrote:
> > > Dne 09.01.2010 (sob) ob 15:38 +0100 je Josef Wolf zapisal(a):
> > > >
> > > > [ ... ] So I'm looking for a way to completely disable suspend, maybe
> > > > by "aptitude remove <some-package>" or something.
> > > 
> > > in gconf-editor navigate to and modify following key:
> > > 
> > > /apps/gnome-power-manager/general/can_suspend
> > 
> > Thanks, I'll try that.
> 
> Works great!
> 
> But it has a little annoying side effect: Whenever something happens that
> would try to suspend, a dialog pops up with an error message telling me
> that suspend could not be activated. Well, I _know_ that already.
> 
> So how do I get rid of that error message box?
> 

I think clearing (in gconf-editor)
/apps/gnome-power-manager/notify/sleep_failed
should help to get rid of those messages.
But I think you should clear all options for suspend (if you really need
to), thus pm won't even try to suspend :
/apps/gnome-power-manager/actions/sleep_type_ac
/apps/gnome-power-manager/actions/sleep_type_battery
changing the values to "hibernate" or "nothing" (without"").
Furthermore, you can check:
/apps/gnome-power-manager/buttons/lid_ac
/apps/gnome-power-manager/buttons/lid_battery
for not contain "suspend" value
and change
/apps/gnome-power-manager/buttons/suspend
to "nothing".
This should be enough for gnome pm, if you use some other tool or
tweaking, that looks back at the old 
/etc/default/acpi-support
it may be usefull to change this file too (comment "ACPI_SLEEP=true"
line).

Regards
 





More information about the ubuntu-users mailing list