You are not logged in.

#1 2008-12-10 21:01:20

phildg
Member
Registered: 2006-03-10
Posts: 146

Hibernate (pm-utils) on a desktop

Hi,

I'm trying to get pm-hibernate to work on my desktop. It mostly works except it doesn't power the machine down after writing memory to swap. I can hear the hard drives power down, but the machine stays on.

Thawing works perfectly fine once I've manually powered off. The machine powers down properly when issuing a "shutdown -h now"

Any ideas? Attached are the log files from pm-utils, I can't see anything that can help me there.

/var/log/pm-powersave.log

/usr/lib/pm-utils/power.d/sched-powersave false: **sched policy powersave OFF
success.

/var/log/pm-suspend.log

Initial commandline parameters: 
Wed Dec 10 20:41:12 GMT 2008: Running hooks for hibernate.
/usr/lib/pm-utils/sleep.d/00auto-quirk hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: Linux conroe 2.6.27-ARCH #1 SMP PREEMPT Fri Nov 28 10:35:44 UTC 2008 x
86_64 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz GenuineIntel GNU/Linux
Module                  Size  Used by
nfs                   294192  3 
lockd                  72656  1 nfs
nfs_acl                 5376  1 nfs
sunrpc                201192  12 nfs,lockd,nfs_acl
iptable_mangle          5376  0 
iptable_nat             8208  0 
nf_nat                 21400  1 iptable_nat
xt_tcpudp               5504  2 
nf_conntrack_ipv4      18200  7 iptable_nat,nf_nat
xt_state                4480  4 
nf_conntrack           68256  4 iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
iptable_filter          5248  1 
ip_tables              20880  3 iptable_mangle,iptable_nat,iptable_filter
x_tables               21640  4 iptable_nat,xt_tcpudp,xt_state,ip_tables
lp                     13636  0 
serio_raw               8324  0 
ppdev                  10504  0 
sr_mod                 18756  0 
cdrom                  39080  1 sr_mod
sg                     34528  0 
forcedeth              60432  0 
psmouse                44700  0 
i2c_nforce2             9224  0 
nvidia               7809352  26 
i2c_core               25760  2 i2c_nforce2,nvidia
parport_pc             41544  1 
parport                39216  3 lp,ppdev,parport_pc
thermal                20640  0 
processor              40760  1 thermal
evdev                  13984  10 
fan                     7304  0 
snd_seq_oss            35584  0 
snd_seq_midi_event      9344  1 snd_seq_oss
snd_seq                58336  4 snd_seq_oss,snd_seq_midi_event
button                  9504  0 
battery                14600  0 
ac                      7176  0 
usbhid                 51552  0 
snd_pcm_oss            45568  0 
snd_mixer_oss          18944  1 snd_pcm_oss
hid                    50496  1 usbhid
ff_memless              7688  1 usbhid
snd_usb_audio          98688  0 
snd_usb_lib            19584  1 snd_usb_audio
snd_cmipci             41504  1 
gameport               14096  1 snd_cmipci
snd_pcm                82440  3 snd_pcm_oss,snd_usb_audio,snd_cmipci
snd_page_alloc         10640  1 snd_pcm
snd_opl3_lib           13184  1 snd_cmipci
snd_timer              24720  3 snd_seq,snd_pcm,snd_opl3_lib
snd_hwdep              10632  2 snd_usb_audio,snd_opl3_lib
snd_mpu401_uart        10112  1 snd_cmipci
snd_rawmidi            25088  2 snd_usb_lib,snd_mpu401_uart
snd_seq_device          9364  4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd                    64840  15 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_cmipci,snd_pcm,snd_opl3_lib,sn
d_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               9632  1 snd
bridge                 56224  0 
stp                     4740  1 bridge
llc                     8224  2 bridge,stp
loop                   19340  0 
ppp_generic            28584  0 
slhc                    7936  1 ppp_generic
fuse                   59584  0 
tun                    14468  0 
coretemp                9088  0 
it87                   28952  0 
hwmon_vid               5760  1 it87
kvm_intel              44896  0 
kvm                   145264  1 kvm_intel
rtc_cmos               13112  0 
rtc_core               21060  1 rtc_cmos
rtc_lib                 4992  1 rtc_core
ext3                  140560  2 
jbd                    56104  1 ext3
mbcache                10244  1 ext3
ohci_hcd               27548  0 
isp1760                22320  0 
sd_mod                 29224  5 
ehci_hcd               40332  0 
usbcore               156816  7 usbhid,snd_usb_audio,snd_usb_lib,ohci_hcd,isp1760,ehci_hcd
sata_nv                28552  3 
ahci                   36364  0 
ata_generic             8196  0 
pata_amd               15876  0 
pata_acpi               7296  0 
libata                171360  5 sata_nv,ahci,ata_generic,pata_amd,pata_acpi
scsi_mod              113144  4 sr_mod,sg,sd_mod,libata
dock                   11168  1 libata
             total       used       free     shared    buffers     cached
Mem:       4050076     243940    3806136          0       8832      92884
-/+ buffers/cache:     142224    3907852
Swap:      6000236          0    6000236
success.
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/90chvt hibernate hibernate: success.
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
/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.
Wed Dec 10 20:41:13 GMT 2008: performing hibernate
Wed Dec 10 20:43:03 GMT 2008: Awake.
Wed Dec 10 20:43:03 GMT 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.
/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/90chvt thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/11netcfg thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/01grub thaw hibernate: not applicable.
/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk thaw hibernate: success.
Wed Dec 10 20:43:03 GMT 2008: Finished.

Offline

#2 2008-12-10 22:31:04

phildg
Member
Registered: 2006-03-10
Posts: 146

Re: Hibernate (pm-utils) on a desktop

OK,

I'm making progress with this:

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

Will hibernate and power off the machine.

The docs for this are crap, however the bash scripts are well documented, I can achieve the above by putting

HIBERNATE_MODE="shutdown"

in a file in /etc/pm/config.d/

However, should it concern me that /sys/power/disk isn't set back to the default value on thaw?

Offline

Board footer

Powered by FluxBB