LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-27-2007, 12:04 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Slack 12, HAL and hibernation


Fresh Slack 12 install, recompiled kernel.

HAL hibernation did not work out of the box at all. I use swsusp, not suspend2, and "echo 'disk' > /sys/power/state" worked just fine. /usr/lib/hal/scripts/hal-system-power-hibernate referred to an undefined variable "HALD_UNAME_S" which needed to be set to "linux" and calls the -linux scripts from a relative path without first changing to the /usr/lib/hal/scripts directory. With these modifications it was able to find /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.

The next problem was that /sys/power/state was not writable by my user, so the ...-hibernate-linux script failed. I chgrp'ed it to power and chmod'ed it to 664. Now it all works.

So...

This seems like a bug in the scripts? Was there a better way to resolve the problem?

Thanks,
Brian
 
Old 07-27-2007, 02:48 PM   #2
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
Code:
echo mem > /sys/power/state
And what i get:
Code:
bash: echo: write error: No such device
Doing it as root, file /sys/power/state exists and is writable.
 
Old 07-27-2007, 03:19 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
What does "cat /sys/power/state" show?

Brian
 
Old 07-27-2007, 03:28 PM   #4
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by iiv
Code:
echo mem > /sys/power/state
And what i get:
Code:
bash: echo: write error: No such device
Doing it as root, file /sys/power/state exists and is writable.
See this thread:

http://www.linuxquestions.org/questi...d.php?t=566633

You may need to recompile your kernel.
 
Old 07-28-2007, 02:39 AM   #5
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
Quote:
Originally Posted by chess
See this thread:

http://www.linuxquestions.org/questi...d.php?t=566633

You may need to recompile your kernel.
That worked. Thanks!
 
  


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
Install hal and dbus from DLG on regular slack? justin_p Slackware 1 08-10-2005 04:54 AM
hibernation joshknape Linux - Newbie 5 07-26-2005 12:13 AM
My toshiba laptop and hibernation with slack Shwiing Linux - Laptop and Netbook 2 07-19-2005 11:53 AM
Hibernation jfranks214 Linux - Laptop and Netbook 2 08-15-2004 12:50 PM
Hibernation (Oh no - not again...) Napper Mandriva 9 06-23-2004 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration