LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-05-2009, 03:09 PM   #1
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,032

Rep: Reputation: 174Reputation: 174
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?
 
Old 02-06-2009, 02:57 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,677

Rep: Reputation: Disabled
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.
 
Old 02-06-2009, 05:03 AM   #3
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Quote:
Originally Posted by JZL240I-U View Post
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.
Yes, K Menu Editor & Power Management.

Cheers
 
Old 02-06-2009, 05:22 AM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,032

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by JZL240I-U View Post
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.
I was negligent in not mentioning that I have tried acpi=no. It removes the 'Suspend to RAM' option but the 'Suspend to Disk' option remains. The 'Suspend to Disk' option also remains if I remove the resume= from the kernel options.
Also uTsing acpi=off is not acceptable because it means the machine no longer powers down when told to shutdown.

Quote:
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.
Yeah one could argue that there should be a configuration option to remove those items but if there is it seems to be very very well hidden. For editing the Kickoff menu there's kmenuedit but that only allows editing of the applications section.


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
rebooted the machine and found the Suspend options are no longer listed in Kickoff. This works on openSUSE 11.1 and Kubuntu 8.10. (Though with Kubuntu I've only tested on a virtual machine on which 'Suspend to RAM' was never listed as 'pm-is-supported --hibernate' exits with 1.) It's a hack but it's one I can live either as it's easy to implement. If anyone has any suggestions on a more elegant method of archiving goal it would be interesting to hear.
 
1 members found this post helpful.
Old 02-06-2009, 05:33 AM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,032

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by dragonslayer48dx View Post
Yes, K Menu Editor & Power Management.
By K Menu Editor I assume you're referring to kmenuedit. kmenuedit does not allow you to edit the contents of Kickoff's Leave section.

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable sleep/hibernate mode in runlevel 3 mode libin88 Linux - General 1 11-23-2008 05:54 AM
Disable hibernate / suspend on desktop Dell Inspiron 531s bcarl314 Mandriva 2 09-04-2007 11:48 AM
sleep/hibernate causes hardware failure St.Jimmy Linux - Hardware 0 02-11-2007 04:34 PM
Getting my laptop to Hibernate or Sleep Scott7 Debian 2 10-15-2005 06:33 AM
sleep / suspend / hibernate on Toshiba laptop (satellite 2410) cpbl Linux - Laptop and Netbook 0 01-16-2005 01:55 PM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration