LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   pm-hibernate no longer working after upgrading to 14.1 (https://www.linuxquestions.org/questions/slackware-14/pm-hibernate-no-longer-working-after-upgrading-to-14-1-a-4175486658/)

asdrubale 12-03-2013 03:01 AM

pm-hibernate no longer working after upgrading to 14.1
 
I'm using a MacBook 6,1 (13"screen, white plastic case) since May
2012. On it I succesfully installed Slackware64 13.37, later
upgraded to 14.0 and now to 14.1.

Since the last upgrade to 14.1 pm-suspend works as usual, but
pm-hibernate is no longer working. The screen blanks, but there is no
disk activity, the system freezes and I have to turn it off
manually. When I turn it on again, it boots normally, without trying
to resume the memory image.

Any ideas? The following is the content of /var/log/pm-suspend after
rebooting.

Code:

Initial commandline parameters:
mar  3 dic 2013, 09.43.31, CET: Running hooks for hibernate.
Running hook /usr/lib64/pm-utils/sleep.d/00logging hibernate hibernate:
Linux lamed 3.10.17 #1 SMP Wed Oct 23 16:28:33 CDT 2013 x86_64 Intel(R) Core(TM)2 Duo CPU    P7550  @ 2.26GHz GenuineIntel GNU/Linux
Module                  Size  Used by
rfcomm                32551  8
bnep                  10631  2
cpufreq_ondemand        8799  2
brcmsmac              531356  0
cordic                  1072  1 brcmsmac
brcmutil                4437  1 brcmsmac
mac80211              429423  1 brcmsmac
cfg80211              380228  2 brcmsmac,mac80211
lp                      9851  0
ppdev                  5862  0
parport_pc            19332  0
parport                30389  3 lp,ppdev,parport_pc
fuse                  73848  1
nvidia              9406181  0
uvcvideo              71742  0
videobuf2_vmalloc      2912  1 uvcvideo
videobuf2_memops        1879  1 videobuf2_vmalloc
videobuf2_core        27437  1 uvcvideo
hid_apple              5481  0
videodev              102061  2 uvcvideo,videobuf2_core
bcm5974                8658  0
snd_hda_codec_cirrus    7323  1
btusb                  16152  0
bluetooth            220516  24 bnep,btusb,rfcomm
coretemp                5870  0
snd_hda_intel          34861  1
snd_hda_codec        143196  2 snd_hda_intel,snd_hda_codec_cirrus
snd_hwdep              6388  1 snd_hda_codec
snd_pcm                76009  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          7098  2 snd_pcm,snd_hda_intel
joydev                  9751  0
rfkill                15522  3 cfg80211,bluetooth
acpi_cpufreq            7230  1
mperf                  1163  1 acpi_cpufreq
snd_timer              18614  1 snd_pcm
drm                  229054  1 nvidia
processor              27543  3 acpi_cpufreq
applesmc              12198  0
thermal_sys            22993  1 processor
snd                    58630  8 snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel,snd_hda_codec_cirrus
i2c_dev                5843  0
evdev                  10032  1
freq_table              2628  3 cpufreq_ondemand,acpi_cpufreq,thermal_sys
forcedeth              56722  0
input_polldev          2778  1 applesmc
agpgart                27267  1 drm
bcma                  30033  1 brcmsmac
shpchp                25417  0
soundcore              5354  1 snd
kvm_intel            126236  0
kvm                  363491  1 kvm_intel
hwmon                  1337  3 applesmc,coretemp,thermal_sys
i2c_nforce2            5287  0
i2c_core              20936  5 drm,i2c_dev,nvidia,i2c_nforce2,videodev
battery                11579  0
microcode              13140  0
ehci_pci                3688  0
apple_bl                3056  0
button                  4696  0
ac                      4311  0
loop                  18479  0
ext4                  446312  2
jbd2                  76403  1 ext4
mbcache                5666  1 ext4
ohci_hcd              23924  0
ehci_hcd              39275  1 ehci_pci
hid_generic            1145  0
usbhid                37080  0
hid                    87523  3 hid_generic,usbhid,hid_apple
            total      used      free    shared    buffers    cached
Mem:      3763120    435192    3327928          0      54008    294904
-/+ buffers/cache:      86280    3676840
Swap:    10485756          0  10485756
/usr/lib64/pm-utils/sleep.d/00logging hibernate hibernate: success.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/00powersave hibernate hibernate: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/01grub hibernate hibernate: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-generic hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/49bluetooth-generic hibernate hibernate: success.

Running hook /usr/lib64/pm-utils/sleep.d/49bluetooth-ibm hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/49bluetooth-ibm hibernate hibernate: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/55wicd hibernate hibernate:
Unable to connect to wicd daemon - is it running?
/usr/lib64/pm-utils/sleep.d/55wicd hibernate hibernate: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/75modules hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/90clock hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.

Running hook /usr/lib64/pm-utils/sleep.d/95led hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/95led hibernate hibernate: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
nVidia binary video drive detected, not using quirks.
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.

Running hook /usr/lib64/pm-utils/sleep.d/99video hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/99video hibernate hibernate: success.

mar  3 dic 2013, 09.43.33, CET: performing hibernate


Drakeo 12-03-2013 03:42 AM

this may help you it helped me. but suspend to ram and my nvidia card dont get along. so I use hibernate. pm-hibernate how to

asdrubale 12-03-2013 03:55 AM

Quote:

Originally Posted by Drakeo (Post 5074454)
this may help you it helped me. but suspend to ram and my nvidia card dont get along. so I use hibernate. pm-hibernate how to

my problem is the opposite: suspend to ram works, hibernate doesn't work.

I tried to remove the NVIDIA module and even to uninstall the proprietary driver, but nothing changed.

In 14.0 both pm-suspend and pm-hibernate worked fine with NVIDIA proprietary driver.

Drakeo 12-03-2013 06:18 AM

yes i see that thats why i gave you that link. it helped me. On both of them I use a hybrid now.

asdrubale 12-04-2013 03:38 AM

Quote:

Originally Posted by Drakeo (Post 5074528)
yes i see that thats why i gave you that link. it helped me. On both of them I use a hybrid now.

good suggestion! After re-reading the howto, I discovered this section of /usr/lib(64)/pm-utils/defaults:

Code:

# Default method to power down the system when hibernating.
# If commented out, the system will use the kernel default as a
# default value.
#
# Check /sys/power/disk for valid values.  The default value
# will be surrounded by [square brackets].
# HIBERNATE_MODE="shutdown"

On my MacBook the default method was "platform":

Code:

root@lamed:~# cat /sys/power/disk
[platform] shutdown reboot suspend

which is obviously wrong, because Macs don't have a standard BIOS.

So, after experimenting a little with

Code:

# echo shutdown > /sys/power/disk
# echo disk > /sys/power/state

as described here, I simply copied /usr/lib64/pm-utils/defaults to /etc/pm/config.d and removed the # at the beginning of the HIBERNATE_MODE definition line.

Now pm-hibernate works!


All times are GMT -5. The time now is 04:38 AM.