You are not logged in.

#1 2008-10-10 08:17:40

toffyrn
Member
Registered: 2008-10-07
Posts: 221

pm-hibernate and encrypted swap.

Hi. I have configured my laptop to running arch the last couple of days. Everything is running smooth and everything is up to date. smile

Today i tried to configure pm-utils to make my laptop sleep and hibernate. Sleep works like it should, but i cant get it to hibernate.
An excerpt of pm-suspend.log shows.

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
fr. 10. okt. 09:29:28 +0200 2008: performing hibernate
/usr/lib/pm-utils/pm-functions: line 275: echo: write error: Ingen slik enhet
fr. 10. okt. 09:29:38 +0200 2008: Awake.
fr. 10. okt. 09:29:38 +0200 2008: Running hooks for thaw
/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/95led thaw hibernate: not applicable.

Line 275 in pm-functions shows this:

echo -n "disk" > /sys/power/state

If i try running this as root i get:

[10:13:19 toffyrn pm-utils]$sudo su
bash-3.2# echo -n "disk" > /sys/power/state
bash: echo: write error: Ingen slik enhet
bash-3.2#

My swap space is encrypted, any ideas how to make this work??
(By the way: Thanks for all the help on other posts i have made!!! Hopefully i'll dont need to update my distro version every 6month anymore smile )

Offline

#2 2008-10-10 09:04:47

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pm-hibernate and encrypted swap.

Although I can't help you, whoever can will probably need to know that "ingen slik enhet" means "no such module" (or "no such unit").

(antar att du är svensk tongue )


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-10-10 09:34:14

sessy
Member
Registered: 2006-01-20
Posts: 104

Re: pm-hibernate and encrypted swap.

Do you have at leas as much swap space as RAM?

Offline

#4 2008-10-10 09:43:06

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: pm-hibernate and encrypted swap.

Hehe. Im norwegian.

[11:41:34 toffyrn ~]$free -m
             total       used       free     shared    buffers     cached
Mem:          1899        754       1145          0         31        183
-/+ buffers/cache:        539       1360
Swap:         1904        118       1785
[11:41:39 toffyrn ~]$

Do i need more swap?

Offline

#5 2008-10-10 10:45:24

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pm-hibernate and encrypted swap.

I remember reading that encrypted swap can disable hibernation. Are you encrypting with a random key or a static key? If you're using a random key, that key is not saved anywhere so the next time the computer starts, a new random key is used and anything on the swap partition is seen as random data from the computer's perspective. I don't remember the details though so maybe using a non-random key will fix it.

Of course, it could be something else.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2008-10-10 11:31:46

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: pm-hibernate and encrypted swap.

I have this set up with a static key...

Offline

Board footer

Powered by FluxBB