Disable suspend/sleep/hibernate/whatever-you-call-it
My aim is to remove the 'Suspend to RAM' and 'Suspend to Disk' options that appear in KDE 4's Kickoff menu. I do not want them there for users to click on as I can't be doing with worrying about what might happen when a user suspends a machine that relies on a bunch of network services including a network mounted home directory. Especially if they do it to a student workarea machine.
It has been suggested that the way to achieve this is to disable the machine's suspend functionality. But I find myself unable to figure out how to do this. I find loads of discussions about how to stop laptops from automatically going to sleep but nothing about how to completely disable the machine's ability to sleep/hibernate/suspend. Does anyone know how to do this? |
Brute Force: "ACPI=no" in the kernel line of menu.lst. Warning: That will probably influence the temperature watching facilities of modern machines as well.
There should be the possibility to disable things or even edit the menu of KDE. You'll have to dig in the control center for that. I seem to remember that there is a separate editing program, can't remember the name right now. |
Quote:
Cheers |
Quote:
Also uTsing acpi=off is not acceptable because it means the machine no longer powers down when told to shutdown. Quote:
I have now found a solution. There's a script /usr/bin/pm-is-supported which can be used to determine the suspend capabilities of the machine and KDE 4 evidently uses that to determine whether to show the Suspend options. I say this not because I found it documented anywhere but due to result of experimentation. I replaced pm-is-supported with a script which just does Code:
exit 1 |
Quote:
As for Power Management then yeah I can see there's a Power Management section in KDE's systemsettings program but when I looked at it before I couldn't see any option in there to remove the Suspend options from Kickoff and I still can't see any such option. |
All times are GMT -5. The time now is 05:19 PM. |