LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 12, HAL and hibernation (https://www.linuxquestions.org/questions/slackware-14/slack-12-hal-and-hibernation-572772/)

BCarey 07-27-2007 12:04 PM

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

iiv 07-27-2007 02:48 PM

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.

BCarey 07-27-2007 03:19 PM

What does "cat /sys/power/state" show?

Brian

chess 07-27-2007 03:28 PM

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.

iiv 07-28-2007 02:39 AM

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!


All times are GMT -5. The time now is 11:16 PM.