21 Dec 2010 22:10
How to *disable* suspend/hibernate?
Manuel Reimer <Manuel.Spam <at> nurfuerspam.de>
2010-12-21 21:10:58 GMT
2010-12-21 21:10:58 GMT
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
RSS Feed