Hello all,
suspend to disk is not working on my Lenovo Thinkpad E530.
It seems to save the image but doesn't resume the session on reboot.
Suspend to ram works just fine.
I don't know what kind of information you need to help me. But here is the last pm-suspend.log entry:
Initial commandline parameters:
Wed Feb 27 17:44:59 CET 2013: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux spaeti 3.8-0.towo-siduction-amd64 #1 SMP PREEMPT Tue Feb 19 08:23:04 UTC 2013 x86_64 GNU/Linux
Module Size Used by
hid_generic 1057 0
usbhid 30374 0
hid 72770 2 hid_generic,usbhid
af_packet 22558 0
rfcomm 28209 8
bnep 9398 2
cpufreq_conservative 3513 0
cpufreq_stats 3267 0
cpufreq_powersave 886 0
parport_pc 27188 0
ppdev 4931 0
lp 8306 0
parport 26436 3 lp,ppdev,parport_pc
uinput 6535 1
nfsd 184806 2
auth_rpcgss 24210 1 nfsd
nfs_acl 1951 1 nfsd
nfs 105738 0
lockd 51906 2 nfs,nfsd
fscache 29373 1 nfs
sunrpc 148084 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
nls_utf8 1208 1
nls_cp437 5801 1
vfat 7862 1
fat 39779 1 vfat
fuse 56892 1
dm_crypt 12837 0
uvcvideo 60631 0
videobuf2_vmalloc 2428 1 uvcvideo
videobuf2_memops 1543 1 videobuf2_vmalloc
videobuf2_core 20818 1 uvcvideo
videodev 86018 2 uvcvideo,videobuf2_core
media 8828 2 uvcvideo,videodev
joydev 8407 0
btusb 10369 0
arc4 1823 2
bluetooth 161376 24 bnep,btusb,rfcomm
iwldvm 105399 0
snd_hda_codec_hdmi 23767 1
mac80211 234039 1 iwldvm
i915 435185 4
intel_agp 10003 1 i915
snd_hda_codec_conexant 40411 1
intel_gtt 10707 2 i915,intel_agp
i2c_algo_bit 4369 1 i915
coretemp 5534 0
kvm 215937 0
snd_hda_intel 26021 9
snd_hda_codec 73910 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
iwlwifi 64068 1 iwldvm
thinkpad_acpi 53062 0
nvram 5034 1 thinkpad_acpi
snd_hwdep 5341 1 snd_hda_codec
cfg80211 148528 3 iwlwifi,mac80211,iwldvm
snd_pcm 61525 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 6234 2 snd_pcm,snd_hda_intel
snd_seq 42049 0
iTCO_wdt 4647 0
iTCO_vendor_support 1688 1 iTCO_wdt
pcspkr 1800 0
ehci_pci 3288 0
drm_kms_helper 23188 1 i915
drm 189747 5 i915,drm_kms_helper
psmouse 59904 0
serio_raw 4102 0
acpi_cpufreq 6426 0
snd_seq_device 4649 1 snd_seq
snd_timer 15553 2 snd_pcm,snd_seq
ehci_hcd 32020 1 ehci_pci
snd 49920 27 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
rfkill 13424 4 cfg80211,thinkpad_acpi,bluetooth
rtsx_pci_ms 4528 0
memstick 5621 1 rtsx_pci_ms
i2c_i801 8366 0
i2c_core 16849 6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
evdev 8120 21
mperf 1189 1 acpi_cpufreq
lpc_ich 11253 0
mei 28151 0
processor 26523 1 acpi_cpufreq
button 4424 1 i915
battery 6642 0
microcode 16035 0
ac 2368 0
video 10798 1 i915
soundcore 4402 1 snd
wmi 7267 0
ext4 264062 2
crc16 1287 2 ext4,bluetooth
jbd2 48347 1 ext4
mbcache 4546 1 ext4
btrfs 559160 0
zlib_deflate 17310 1 btrfs
libcrc32c 1010 1 btrfs
dm_mod 60153 1 dm_crypt
md_mod 87350 0
sg 19073 0
sr_mod 12833 0
sd_mod 32094 5
cdrom 29276 1 sr_mod
crc_t10dif 1260 1 sd_mod
rtsx_pci_sdmmc 8208 0
mmc_core 70641 1 rtsx_pci_sdmmc
crc32c_intel 13825 1
ghash_clmulni_intel 3645 0
cryptd 6729 1 ghash_clmulni_intel
r8169 45503 0
mii 3315 1 r8169
ahci 20396 4
libahci 17070 1 ahci
libata 137228 2 ahci,libahci
scsi_mod 123594 4 sg,libata,sd_mod,sr_mod
rtsx_pci 15253 2 rtsx_pci_ms,rtsx_pci_sdmmc
mfd_core 2569 2 lpc_ich,rtsx_pci
thermal 8041 0
xhci_hcd 69654 0
usbcore 127747 6 btusb,uvcvideo,ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common 866 1 usbcore
total used free shared buffers cached
Mem: 3621472 2607548 1013924 0 98488 1144632
-/+ buffers/cache: 1364428 2257044
Swap: 3755004 0 3755004
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:
Having NetworkManager put all interaces to sleep...Failed.
/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate: success.
Running hook /etc/pm/sleep.d/74ifplugd hibernate hibernate:
/etc/pm/sleep.d/74ifplugd hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
Kernel modesetting video driver detected, not using quirks.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Wed Feb 27 17:44:59 CET 2013: performing hibernate
Thanks in advance for any help.
Cheers David
Nobody there with an idea?
grep resume /boot/grub/grub.cfg
linux /boot/vmlinuz-3.8-1.towo-siduction-amd64 root=UUID=2fb8e073-365d-4f12-b372-a75b91dd5bdd ro quiet nosplash resume=swap=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
linux /boot/vmlinuz-3.8-1.towo-siduction-amd64 root=UUID=2fb8e073-365d-4f12-b372-a75b91dd5bdd ro quiet nosplash resume=swap=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
linux /boot/vmlinuz-3.8-0.towo-siduction-amd64 root=UUID=2fb8e073-365d-4f12-b372-a75b91dd5bdd ro quiet nosplash resume=swap=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
linux /boot/vmlinuz-3.7-9.towo-siduction-amd64 root=UUID=2fb8e073-365d-4f12-b372-a75b91dd5bdd ro quiet nosplash resume=swap=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
output of blkid please.
/dev/sda1: LABEL="WINRE_DRV" UUID="1AB67F81B67F5BE7" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM_DRV" UUID="9882-B331" TYPE="vfat"
/dev/sda4: LABEL="Windows8_OS" UUID="0836872B368718B8" TYPE="ntfs"
/dev/sda5: LABEL="Lenovo_Recovery" UUID="A6267A0B2679DD2D" TYPE="ntfs"
/dev/sda7: UUID="2fb8e073-365d-4f12-b372-a75b91dd5bdd" TYPE="ext4"
/dev/sda8: UUID="cf6980f2-2bf3-4031-96fc-4b568fae0948" TYPE="swap"
/dev/sda9: UUID="455cdeda-eb34-4ae9-b9ef-0855564b4eda" TYPE="ext4"
the resume=swap=UUID is correct and the swap also has the same size as my ram.
Quote from: "davidb"resume=swap=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
what if just:
resume=UUID=cf6980f2-2bf3-4031-96fc-4b568fae0948
Or if there is a bug in UUID handling:
resume=/dev/sda8
Quote from: "davidb"
the resume=swap=UUID is correct and the swap also has the same size as my ram.
On my system I realized that the same size as RAM was not enough to suspend to disk. I increased the swap size from 8GB to 12GB and it works (at least most of the time).
My GRUB entry is resume=swap=UUID=$UID
Isn't a good idea to make your swap at least 1.5X your RAM size? That rule of thumb will help in situations like this
Quote from: "DeepDayze"Isn't a good idea to make your swap at least 1.5X your RAM size? That rule of thumb will help in situations like this
That is a windows theory :)
Quote from: "piper"Quote from: "DeepDayze"Isn't a good idea to make your swap at least 1.5X your RAM size? That rule of thumb will help in situations like this
That is a windows theory :)
Yep I know that but would that trick also work with Linux? :)
With swap=2X memory, I have never had any issue regarding swap or suspend. :)
32 GB Swap? oO
Quote from: "Smon"32 GB Swap? oO
Exactly +1
Linux is not windows and treats ram differently, if 4 gigs of ram or more, actually no need for swap (of course depending on how you use your computer)
I know for sure I'm not going to make a 16 to 32 gb swap (depending on what machine I am using)
If you take 200 .gif images and use gimp to assemble them into a video, you will learn something about how much swap you might need. :wink:
Using a mythtv server, Transcoding (when you decode video compressed in one format, and re-encode it in another) several recordings using something like
mythtranscode --chanid 1358 --starttime 2013-4-2-20-00-00 --mpeg2 --mycutlist
then do a ota hdtv to dvd with AC3 stream copy transcode
#!/bin/sh
# Step 1, generate DVD resolution file from HDTV content, preserving AC3 audio streams
# produce less log output with the -quiet switch
/usr/bin/nice -19 /usr/bin/mencoder -quiet -oac copy -of mpeg \
-mpegopts format=dvd:tsaf -vf scale=720:-3,harddup -ovc lavc -lavcopts \
vcodec=mpeg2video:vbitrate=4000:keyint=15 /myth/tv/$1 -o /myth/tv/$1.tmp
if [ "$?" -ne "0" ]; then
echo "mencoder died"
/usr/bin/nice -19 rm /myth/tv/$1.tmp
exit
fi
# Step 2, replace orig HDTV file with transcoded DVD file
/usr/bin/nice -19 mv /myth/tv/$1.tmp /myth/tv/$1
# Step 3, clean up MPEG2 sync issues and using mythtranscode. Output is a .tmp file.
/usr/bin/nice -19 /usr/bin/mythtranscode --mpeg2 -i /myth/tv/$1 --showprogress
# Step 4, replace DVD file with cleaned DVD file
/usr/bin/nice -19 mv /myth/tv/$1.tmp /myth/tv/$1
# Step 5, update index in database
/usr/bin/nice -19 /usr/bin/mythcommflag --rebuild -f /myth/tv/$1
# OPTIONAL Step 6, Flag commercials on final file
/usr/bin/nice -19 /usr/bin/mythcommflag -f /myth/tv/$1
#Only thing to sort out is updating the MySQL DB for the new filesize after transcoding
# to reflect the new file size. Any ideas on how to do this easily??
# ANSWER:
# You can do something like this:
SIZE=`ls -l $MYTHDIR/$1 | awk '{print $5}'`
mysql --user=(your username) --password=(your password) mythconverg << EOF
update recorded set filesize = '$SIZE' where basename = '$1';
EOFbuild siduction and surf the web, all at the same time :)
I have done the above with a system with 2gbs of ram and 1gb of swap, of course all my systems have at the least 4 gigs now except my main. I never had any problems ;)
I solved the problem with setting resume="/dev/sda8"
Thx for your help!