LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-20-2009, 06:59 AM   #1
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
KDE 4.1.3 on laptop and hibernate


I recently installed KDE 4.1.3 from /testing on my laptop and wanted to get suspend to disk working with Guidance Power Manager.
I had already had this working with pm-utils and was able to run pm-hibernate as a normal user using sudo.
I found that I can get hibernate to work by editing /usr/share/apps/guidance-power-manager/powermanage.py and changing:
Quote:
SUSPEND_USE_HAL = True to SUSPEND_USE_HAL = False
S4_COMMAND = "/usr/local/bin/hibernate" to S4_COMMAND = "sudo /usr/sbin/pm-hibernate"
I then renamed the /usr/share/apps/guidance-power-manager/powermanage.pyc file and logged out. After logging in as root so that the powermanage.pyc file was recreated, then logging out and logging in as my normal user I can now hibernate from the Guidance Power Manager.

This is OK for my needs, but I am wondering whether there is an alternative scheme that I should be using rather than disabling HAL?
 
Old 01-20-2009, 10:26 AM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,906

Rep: Reputation: Disabled
Hrm, all of that shouldn't have been necessary :/
Does suspend/hibernate work correctly from the "Leave" menu?

If the HAL methods aren't working, make sure your user account is a member of the "power" group. If it is already, then I have another (far-fetched) idea, but let's start with the simple stuff...
 
Old 01-21-2009, 06:26 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Original Poster
Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Doh! I would have sworn that I had set up the "power" group, but no, I hadn't. So of course I reversed my changes and hibernate works out of the box. Why does it take a second pair of eyes to see the blindingly obvious sometimes? (That was rhetorical).
I do not see any suspend/hibernate options in the "Leave" menu though.
Anyway, thanks for taking the time to answer Robby. Please feel free to loudly guffaw at this rueful drongo!
 
Old 01-21-2009, 07:55 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,906

Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Doh! I would have sworn that I had set up the "power" group, but no, I hadn't. So of course I reversed my changes and hibernate works out of the box. Why does it take a second pair of eyes to see the blindingly obvious sometimes? (That was rhetorical).
Okay, then I won't answer ;-)
Seriously, it's not just you - it happens to all of us from time to time: trust me

Quote:
I do not see any suspend/hibernate options in the "Leave" menu though.
Hrm, ignore that - it's only in a newer kde4, I think ;-)
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate on laptop problematic tux_addict Slackware 4 01-29-2007 02:54 AM
Hibernate option in Debian for Laptop kushalkoolwal Debian 6 11-19-2005 03:35 AM
Getting my laptop to Hibernate or Sleep Scott7 Debian 2 10-15-2005 05:33 AM
Hibernate Laptop lennysokol Linux - Laptop and Netbook 4 05-02-2005 08:23 PM
laptop battery and hibernate paulr1984 Linux - Hardware 7 11-15-2004 05:32 AM


All times are GMT -5. The time now is 06:34 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