Results 1 to 5 of 5

Thread: 13.2 Won't resume from Hibernate aka Sleep to disk.

  1. #1
    Join Date
    Jan 2012
    Location
    Sydney, Australia.
    Posts
    66

    Exclamation 13.2 Won't resume from Hibernate aka Sleep to disk.

    My laptop won't resume from disk. Sleep to disk cycle completes as usual and then it shuts down.

    Linux 3.18.1-1.g5f2f35e-desktop
    AMD Radeon HD 5000 series.

    openSUSE 13.2 (Harlequin) (x86_64)
    KDE 4.14.3

    Here's the pm-suspend.log (shorter version)

    Code:
    Initial commandline parameters: 
    Tue Dec 30 22:19:39 IST 2014: Running hooks for hibernate.
    Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
    hibernate initiated: Tue Dec 30 22:19:39 IST 2014
    
    Linux Anon.machine 3.18.1-1.g5f2f35e-desktop #1 SMP PREEMPT Wed Dec 17 18:20:30 UTC 2014 (5f2f35e) x86_64 x86_64 x86_64 GNU/Linux
    kernel command line: 'BOOT_IMAGE=/boot/vmlinuz-3.18.1-1.g5f2f35e-desktop root=UUID=3c4e5344-266c-4c08-825a-3a4f27f2f58e resume=/dev/sda6 splash=no quiet showopts'
    Module                  Size  Used by
    st                     44763  0 
    bluetooth             498847  0 
    ctr                    13049  0 
    ccm                    17773  0 
    nf_log_ipv6            12726  5 
    xt_pkttype             12504  3 
    nf_log_ipv4            12767  5 
    nf_log_common          13317  2 nf_log_ipv4,nf_log_ipv6
    xt_LOG                 12690  10 
    xt_limit               12711  10 
    af_packet              39975  0 
    ip6t_REJECT            12625  3 
    xt_tcpudp              12884  3 
    nf_conntrack_ipv6      18894  3 
    nf_defrag_ipv6         34841  1 nf_conntrack_ipv6
    ip6table_raw           12683  1 
    ipt_REJECT             12541  3 
    iptable_raw            12678  1 
    xt_CT                  12956  4 
    iptable_filter         12810  1 
    ip6table_mangle        12700  0 
    nf_conntrack_netbios_ns    12665  0 
    nf_conntrack_broadcast    12589  1 nf_conntrack_netbios_ns
    nf_conntrack_ipv4      14806  3 
    nf_defrag_ipv4         12758  1 nf_conntrack_ipv4
    ip_tables              27240  2 iptable_filter,iptable_raw
    xt_conntrack           12760  6 
    nf_conntrack          114259  6 xt_CT,nf_conntrack_netbios_ns,xt_conntrack,nf_conntrack_broadcast,nf_conntrack_ipv4,nf_conntrack_ipv6
    ip6table_filter        12815  1 
    ip6_tables             27026  3 ip6table_filter,ip6table_mangle,ip6table_raw
    x_tables               34059  15 xt_pkttype,ip6table_filter,xt_CT,ip6table_mangle,ip_tables,xt_tcpudp,xt_limit,xt_conntrack,xt_LOG,iptable_filter,ip6table_raw,ipt_REJECT,ip6_tables,iptable_raw,ip6t_REJECT
    binfmt_misc            17461  1 
    msr                    12865  0 
    cpufreq_stats          13344  0 
    fuse                  104521  5 
    uvcvideo               89226  0 
    videobuf2_vmalloc      13216  1 uvcvideo
    videobuf2_memops       13362  1 videobuf2_vmalloc
    videobuf2_core         51175  1 uvcvideo
    v4l2_common            15681  1 videobuf2_core
    videodev              170456  3 uvcvideo,v4l2_common,videobuf2_core
    arc4                   12608  2 
    iwldvm                257587  0 
    mac80211              718585  1 iwldvm
    iwlwifi               139948  1 iwldvm
    cfg80211              554114  3 iwlwifi,mac80211,iwldvm
    snd_hda_codec_idt      59359  1 
    snd_hda_codec_generic    77090  1 snd_hda_codec_idt
    snd_hda_codec_hdmi     56071  1 
    snd_hda_intel          34616  5 
    snd_hda_controller     35968  1 snd_hda_intel
    snd_hda_codec         155812  5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
    snd_hwdep              17698  1 snd_hda_codec
    snd_pcm               126331  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
    snd_seq                71266  0 
    snd_seq_device         14497  1 snd_seq
    snd_timer              33609  2 snd_pcm,snd_seq
    snd                    92043  20 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
    r8169                  88966  0 
    mei_me                 23664  0 
    mei                    91968  1 mei_me
    iTCO_wdt               13480  0 
    iTCO_vendor_support    13718  1 iTCO_wdt
    dell_wmi               12681  0 
    sparse_keymap          13948  1 dell_wmi
    dell_laptop            14000  0 
    rfkill                 26772  3 cfg80211,bluetooth,dell_laptop
    dcdbas                 14978  1 dell_laptop
    intel_powerclamp       18823  0 
    coretemp               13441  0 
    kvm_intel             156598  0 
    kvm                   516471  1 kvm_intel
    crc32c_intel           22094  0 
    joydev                 17344  0 
    serio_raw              13434  0 
    pcspkr                 12718  0 
    lpc_ich                21093  0 
    mfd_core               13435  1 lpc_ich
    intel_ips              22580  0 
    i2c_i801               22454  0 
    mii                    13934  1 r8169
    battery                23237  0 
    thermal                22971  0 
    amd_iommu_v2           18916  0 
    soundcore              15047  2 snd,snd_hda_codec
    shpchp                 32951  0 
    wmi                    19193  1 dell_wmi
    video                  24547  0 
    ac                     13335  0 
    acpi_cpufreq           19433  1 
    processor              40484  1 acpi_cpufreq
    button                 14015  0 
    dm_mod                115582  0 
    sr_mod                 22416  0 
    cdrom                  60734  1 sr_mod
    radeon               1658884  3 
    i2c_algo_bit           13413  1 radeon
    drm_kms_helper        102527  1 radeon
    ttm                    97454  1 radeon
    drm                   346298  6 ttm,drm_kms_helper,radeon
    sg                     44817  0 
    
                 total       used       free     shared    buffers     cached
    Mem:       8052272    1191756    6860516      19860      62856     624444
    -/+ buffers/cache:     504456    7547816
    Swap:      4192252          0    4192252
    
    
    /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/01laptop-mode hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/01laptop-mode hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/02rtcwake hibernate hibernate:
    rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...
    
    /usr/lib/pm-utils/sleep.d/02rtcwake hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/06autofs hibernate hibernate:
    autofs.service - Automounts filesystems on demand
       Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled)
       Active: inactive (dead)
         Docs: man:automount(8)
               man:autofs(5)
    
    
    /usr/lib/pm-utils/sleep.d/06autofs hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/30s2disk-check hibernate hibernate:
    INFO: checking for suspend-to-disk prerequisites...
      using userspace suspend method, temp. config file /var/lib/s2disk.conf
      setting resume device to /dev/sda6
      setting image size to 3710486937
      adding these parameters from /etc/suspend.conf:
    
    /usr/lib/pm-utils/sleep.d/30s2disk-check hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/45pcmcia hibernate hibernate:
    ejecting PCMCIA cards...
    
    /usr/lib/pm-utils/sleep.d/45pcmcia hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/50rcnetwork hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/50rcnetwork hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
    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/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/99Zgrub hibernate hibernate:
    INFO: running prepare-grub
      running kernel is grub menu entry 0 (vmlinuz-3.18.1-1.g5f2f35e-desktop)
      preparing boot-loader: selecting entry 0, kernel /boot/3.18.1-1.g5f2f35e-desktop
      grub-once:   saving original /boot/grub2/grubenv
      running '/usr/sbin/grub2-once 0'
        time needed for sync: 0.1 seconds, time needed for grub: 0.0 seconds.
    
    /usr/lib/pm-utils/sleep.d/99Zgrub hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/99info hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/99info hibernate hibernate: success.
    Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:
    
    /usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
    Tue Dec 30 22:19:39 IST 2014: performing hibernate
    INFO: using built-in quirks database from HAL.
    INFO: S2RAM_OPTS from HAL quirks: ' '.

    During resuming it gets stuck at

    Code:
    ....
    [ OK ] Reached target Remote File Systems
             Starting dracut pre-mount hook...
    .

    After that any input from keyboard doesn't seem to work. Had to power it down the hard way by holding power button. New session boots successfully after that.

    Things I've tried so far include,
    1. Disable plymouth and set splash=verbose
    2.log level 255

    This Works.

    Code:
     
    # echo shutdown > /sys/power/disk
    # echo disk > /sys/power/state
    Code:
    # echo reboot > /sys/power/disk
    # echo disk > /sys/power/state
    So, that confirms there's no problem with kernel and swap partition.

    I'm assuming the problem could be related to dracut or grub may not be poiniting to the correct disk image.

    Any help is appreciated.

    Thanks,
    Hrudai.
    openSuse 13.2 64-bit, KDE 4.14.3, Dell N5010 8GB DDR3 RAM, ATI Radeon HD 5000 series.
    Windows 8.1 update 1 64-bit

  2. #2

    Default Re: 13.2 Won't resume from Hibernate aka Sleep to disk.

    Try uninstalling the package pm-utils.
    systemd calls this if it is installed, otherwise it will directly use the kernel interface (which apparently seems to work fine for you).

  3. #3
    Join Date
    Jan 2012
    Location
    Sydney, Australia.
    Posts
    66

    Thumbs up Re: 13.2 Won't resume from Hibernate aka Sleep to disk.

    Quote Originally Posted by wolfi323 View Post
    Try uninstalling the package pm-utils.
    systemd calls this if it is installed, otherwise it will directly use the kernel interface (which apparently seems to work fine for you).
    Thanks Wolfi. That worked. Is it a bug in pm-utils or just an isolated issue? How do I further debug it?
    openSuse 13.2 64-bit, KDE 4.14.3, Dell N5010 8GB DDR3 RAM, ATI Radeon HD 5000 series.
    Windows 8.1 update 1 64-bit

  4. #4

    Default Re: 13.2 Won't resume from Hibernate aka Sleep to disk.

    Quote Originally Posted by hrudaireddy View Post
    Thanks Wolfi. That worked. Is it a bug in pm-utils or just an isolated issue? How do I further debug it?
    It's probably a bug in pm-utils then, or rather an incompatibility.

    But I don't think it makes sense to further debug this.
    pm-utils is deprecated anyway and about to be dropped completely from the distribution.
    Originally in 13.2 they were not used at all even when installed, but an update re-added 13.1's systemd patch to call pm-utils because apparently not all pm-utils suspend/hibernate hooks are ported to systemd yet.
    Normally you should not have any need for them any more, especially if everything works without them...

    Just leave them uninstalled, I'd say.

  5. #5
    Join Date
    Jan 2012
    Location
    Sydney, Australia.
    Posts
    66

    Thumbs up Re: 13.2 Won't resume from Hibernate aka Sleep to disk.

    Quote Originally Posted by wolfi323 View Post
    It's probably a bug in pm-utils then, or rather an incompatibility.

    But I don't think it makes sense to further debug this.
    pm-utils is deprecated anyway and about to be dropped completely from the distribution.
    Originally in 13.2 they were not used at all even when installed, but an update re-added 13.1's systemd patch to call pm-utils because apparently not all pm-utils suspend/hibernate hooks are ported to systemd yet.
    Normally you should not have any need for them any more, especially if everything works without them...

    Just leave them uninstalled, I'd say.
    Thanks Wolfi for a wise and informed suggestion. Wish you a very happy new year in advance.

    Cheers.
    openSuse 13.2 64-bit, KDE 4.14.3, Dell N5010 8GB DDR3 RAM, ATI Radeon HD 5000 series.
    Windows 8.1 update 1 64-bit

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •