Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Suspension, Hibernation and GRUB

  1. #1
    Join Date
    Feb 2010
    Location
    Upstate New York, USA
    Posts
    480

    Question Suspension, Hibernation and GRUB

    Actually, this is two somewhat-related problems, although GRUB is involved with only one.

    When I suspend 11.2 to RAM (aka "standby" in Windows parlance), suspend mode is achieved, but on "awakening", the PC powers up in a hang state, totally unresponsive, requiring a "hard" (power off/on) reboot. (Windows does the suspend/standby procedure correctly).

    The second problem is more GRUB-related. When I suspend 11.2 to Disk (aka "Hibernate" in Windows parlance), suspend state is correctly attained, and is recoverable and functions. The problem seems to be in GRUB. When starting the suspended/hibernating PC, the normal BIOS boot menu is followed by "Grub stage 2", and proceeds directly to 11.2. (The GRUB menu is not presented). (When Windows is suspended/hibernated, the "GRUB stage 2" message is followed by the GRUB menu, allowing me to choose 11.2 or Windows (or Ubuntu). If 11.2 (or Ubuntu) is selected, it boots, is used and Windows remains in the "hibernate" state).

    In summary, I can have a "hibernated" Windows, and switch to 11.2, back to Windows, (re-hibernate), back to 11.2, etc etc. How do I/what do I do to allow a "suspended" 11.2 to remain, while switching to Windows, then back ?

    (FWIW, 11.2 does not take that long (unlike Windows ) to boot up, so this may sound like an unnecessary exercise. However, after much ado to have 11.2 & GRUB controlling boot management (11.2, Windows and Ubuntu) , I would like to understand all options).
    Lap: Gateway NV79, i5-430, 4GB, 2 x 500GB HD, Intel GMA HD
    openSUSE Leap 42.3 x64 + 15.0 x64, KDE 5.14.4, Ubuntu 16.04LTS, Windows 7

    Test:: openSUSE 15.0, KDE Plasma, Windows/XP/SP3 guest.

  2. #2
    Join Date
    Jul 2008
    Location
    Athens
    Posts
    272

    Default Re: Suspension, Hibernation and GRUB

    I don't know if you have found the solution, put take a look at Suspend to disk - openSUSE

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    18,900
    Blog Entries
    14

    Default Re: Suspension, Hibernation and GRUB

    Haven't got a solution ready, but I know it can be done; my son used to have this on an old laptop, since that appeared to bring it back to life a lot faster than a real boot.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    18,900
    Blog Entries
    14

    Default Re: Suspension, Hibernation and GRUB

    Back, done it.

    Open a terminal window and do:

    su -c 'kwrite /usr/lib/pm-utils/sleep.d/99Zgrub'
    This opens the file mentioned in the link in an editor, with root permissions. Now go to the end of the file, where you'll see:
    Code:
    ###### main()
    
    if [ "$1" = hibernate ] || [ "$1" = suspend -a "$2" = suspend_hybrid ]; then
                    prepare-grub
    fi
    if [ "$1" = thaw ] || [ "$1" = resume -a "$2" = suspend_hybrid ]; then
                    grub-once-restore
    fi
    change it to:

    Code:
    ###### main()
    
    if [ "$1" = hibernate ] || [ "$1" = suspend -a "$2" = suspend_hybrid ]; then
    #                prepare-grub
    fi
    if [ "$1" = thaw ] || [ "$1" = resume -a "$2" = suspend_hybrid ]; then
    #                grub-once-restore
    fi
    Look carefully, it's just the two '#'s that make the difference. They have to be on the exact same line. Tested this, my laptop goes into suspend, on boot it shows the GRUB menu, I can choose, if I choose openSUSE 11.2 it comes out of suspend. Looks like exactly what you want.

    Good luck, let us know if this works for you.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: Suspension, Hibernation and GRUB

    There is a bug with the suspend. https://bugzilla.novell.com/show_bug.cgi?id=551315 I haven't seen a solution to it yet.
    ______________________________________________________________________________________
    Don't ask "if" something can be done, for it can always be done. Rather instead ask "How" can it be done.

  6. #6
    Join Date
    Jul 2008
    Location
    Wisconsin, USA
    Posts
    187

    Default Re: Suspension, Hibernation and GRUB

    If you follow Knurpht's post your Suspend to Disk issue should be sorted.

    For Suspend to Ram, please tell us what graphic hardware you're having and what driver you're using.
    openSUSE 11.3 GM + M$ Win Vista HP TX1316au AMD Athlon 64 X2 Mobile TK-55, nVidia GeForce Go 6150

    openSUSE 11.3 GM + M$ Win 7 HP dm-3 AMD Neo X2 L335, ATI Mobility Radeon HD 3200

  7. #7
    Join Date
    Feb 2010
    Location
    Upstate New York, USA
    Posts
    480

    Default Re: Suspension, Hibernation and GRUB

    If you follow Knurpht's post your Suspend to Disk issue should be sorted.
    Sorted. SUSE now suspends (hibernates) to disk (as Windows), and restores to GRUB. Although a straight SUSE boot is rather quick, this is a great feature for laptop power management!

    For Suspend to Ram, please tell us what graphic hardware you're having and what driver you're using.
    Laptop is a Gateway MX7340, with a Samsung GM monitor. The display adaptor(s) are:

    Code:
    00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) (prog-if 00 [VGA controller])                              
            Subsystem: Rioworks Device 202f                                         
            Flags: bus master, fast devsel, latency 0, IRQ 16                       
            Memory at d8000000 (32-bit, prefetchable) [size=128M]                   
            Memory at e0380000 (32-bit, non-prefetchable) [size=512K]               
            I/O ports at eff0 [size=8]                                              
            Expansion ROM at <unassigned> [disabled]                                
            Capabilities: [d0] Power Management version 1                           
    
    00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)                                                                   
            Subsystem: Rioworks Device 202f                                         
            Flags: bus master, fast devsel, latency 0                               
            Memory at d0000000 (32-bit, prefetchable) [size=128M]                   
            Memory at e0300000 (32-bit, non-prefetchable) [size=512K]               
            Capabilities: [d0] Power Management version 1
    As near as I can determine, the driver is -Intel.

    There is a bug with the suspend. https://bugzilla.novell.com/show_bug.cgi?id=551315 I haven't seen a solution to it yet.
    As I read this post, the problem(s) described fit my situation almost exactly. The suspend-to-Ram (either from the GUI or command line ("s2ram --force") suspend correctly (from outward appearance). However, all keys are totally unresponsive, save the power on, which starts the recovery then hangs solid, with only the "caps lock" indicator flashing,
    Lap: Gateway NV79, i5-430, 4GB, 2 x 500GB HD, Intel GMA HD
    openSUSE Leap 42.3 x64 + 15.0 x64, KDE 5.14.4, Ubuntu 16.04LTS, Windows 7

    Test:: openSUSE 15.0, KDE Plasma, Windows/XP/SP3 guest.

  8. #8
    Join Date
    Jul 2008
    Location
    Wisconsin, USA
    Posts
    187

    Default Re: Suspension, Hibernation and GRUB

    Quote Originally Posted by SeanMc98 View Post
    As I read this post, the problem(s) described fit my situation almost exactly. The suspend-to-Ram (either from the GUI or command line ("s2ram --force") suspend correctly (from outward appearance). However, all keys are totally unresponsive, save the power on, which starts the recovery then hangs solid, with only the "caps lock" indicator flashing,
    Flashing "Caps lock" normally signals kernel panic.
    I do not know whether this would help in the case of suspend causing kernel panic, but you can try:

    Suspend to RAM - openSUSE

    Try to experiments with the different parameters from init=/bin/bash as described earlier in that page so that you don't lose any important data. If a particular combination works for you, then try using it under X.
    openSUSE 11.3 GM + M$ Win Vista HP TX1316au AMD Athlon 64 X2 Mobile TK-55, nVidia GeForce Go 6150

    openSUSE 11.3 GM + M$ Win 7 HP dm-3 AMD Neo X2 L335, ATI Mobility Radeon HD 3200

  9. #9
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: Suspension, Hibernation and GRUB

    This doesn't seem to be as much about hardware, as a d-bus/kernel issue. On resume, or coming out of hibernation it fails.
    /usr/lib/pm-utils/sleep.d/10NetworkManager =====
    Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible
    causes include: the remote application did not send a reply, the message bus
    security policy blocked the reply, the reply timeout expired, or the network
    connection was broken.
    What I need to know is kernel versions, and does this only happen to user
    accounts or is it system wide. I will log in as root on my desktop, which is
    running Factory, and see. First I set the power manager to the same as laptop
    settings, to see if I can trigger that. If I do, then I'll try logging in as
    root. Upon completion of that, I'll try logging in as root on my laptop to
    see what results I get there.

    I still don't know how to fix this yet, but at least once this stuff is done
    we'll know a bit more.
    ______________________________________________________________________________________
    Don't ask "if" something can be done, for it can always be done. Rather instead ask "How" can it be done.

  10. #10
    Join Date
    Jun 2008
    Posts
    1,825
    Blog Entries
    1

    Default Re: Suspension, Hibernation and GRUB

    My desktop, running Factory with kernel 2.6.33-5 worked fine with the hibernation. So no issues there. I'd say it seems to be "fixed" with the new kernel.

    I'll check root on my laptop later.
    ______________________________________________________________________________________
    Don't ask "if" something can be done, for it can always be done. Rather instead ask "How" can it be done.

Page 1 of 2 12 LastLast

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
  •