How to *disable* suspend/hibernate?

Manuel Reimer Manuel.Spam at nurfuerspam.de
Tue Dec 21 13:10:58 PST 2010


Hello,

I want HAL to report suspend/hibernate to be *not* supported to get KDE remove 
the buttons for those "standby modes" from the K-Menu.

Just uninstalling pm-utils doesn't do the trick, as you don't check the return 
value or the error code of g_spawn_command_line_sync in your code:
http://cgit.freedesktop.org/hal/plain/tools/hal-system-power-pm-is-supported.c

So I uninstalled pm-utils and symlinked between /bin/false and 
/usr/bin/pm-is-supported which finally does the trick.

Is there a better/more friendly way to do this?

Thanks in advance

Yours

Manuel



More information about the hal mailing list