can't resume from hibernation

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

can't resume from hibernation

Postby Zaibon » Wed Feb 20, 2013 11:02

Hello

I have an issue with hibernation.
I can tell my laptop to hibernate just fine the problem is when I wake it up.

during wake up, I see grub then he seems to resume normaly but after I get a black screen with nothing on it, not even a cursor.At this state, I can't get a console or anything. I have to force shut down a reboot.

Code: Select all
uname -a
Linux zbi 3.7.0-sabayon #1 SMP Wed Jan 23 20:51:11 UTC 2013 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux


Code: Select all
lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
01:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 04)
02:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)


grub.cfg
Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod lvm
insmod ext2
set root='lvm/vg_zbi-lv_root'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/vg_zbi-lv_root'  5ed9d437-8a88-4ca0-8967-d8a3c1f198a3
else
  search --no-floppy --fs-uuid --set=root 5ed9d437-8a88-4ca0-8967-d8a3c1f198a3
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
else
  search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
fi
insmod png
background_image -m stretch /grub/default-splash.png
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
   load_video
   insmod gzio
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
   else
     search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
   fi
   echo   'Chargement de Linux x86_64-3.7.0-sabayon…'
   linux   /kernel-genkernel-x86_64-3.7.0-sabayon ro  init=/linuxrc video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 dokeymap keymap=be domdadm resume=swap:/dev/mapper/vg_zbi-lv_swap real_resume=/dev/mapper/vg_zbi-lv_swap dolvm root=/dev/mapper/vg_zbi-lv_root docrypt
   echo   'Chargement du disque mémoire initial…'
   initrd   /initramfs-genkernel-x86_64-3.7.0-sabayon
}
submenu 'Options avancées pour Sabayon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
   menuentry 'Sabayon GNU/Linux, avec Linux x86_64-3.7.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.7.0-sabayon-advanced-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
      else
        search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
      fi
      echo   'Chargement de Linux x86_64-3.7.0-sabayon…'
      linux   /kernel-genkernel-x86_64-3.7.0-sabayon ro  init=/linuxrc video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 dokeymap keymap=be domdadm resume=swap:/dev/mapper/vg_zbi-lv_swap real_resume=/dev/mapper/vg_zbi-lv_swap dolvm root=/dev/mapper/vg_zbi-lv_root docrypt
      echo   'Chargement du disque mémoire initial…'
      initrd   /initramfs-genkernel-x86_64-3.7.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, avec Linux x86_64-3.7.0-sabayon (mode de dépannage)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.7.0-sabayon-recovery-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
      else
        search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
      fi
      echo   'Chargement de Linux x86_64-3.7.0-sabayon…'
      linux   /kernel-genkernel-x86_64-3.7.0-sabayon ro single init_opts=single  init=/linuxrc video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 dokeymap keymap=be domdadm resume=swap:/dev/mapper/vg_zbi-lv_swap real_resume=/dev/mapper/vg_zbi-lv_swap dolvm root=/dev/mapper/vg_zbi-lv_root docrypt
      echo   'Chargement du disque mémoire initial…'
      initrd   /initramfs-genkernel-x86_64-3.7.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, avec Linux x86_64-3.6.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-sabayon-advanced-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
      else
        search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
      fi
      echo   'Chargement de Linux x86_64-3.6.0-sabayon…'
      linux   /kernel-genkernel-x86_64-3.6.0-sabayon ro  init=/linuxrc video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 dokeymap keymap=be domdadm resume=swap:/dev/mapper/vg_zbi-lv_swap real_resume=/dev/mapper/vg_zbi-lv_swap dolvm root=/dev/mapper/vg_zbi-lv_root docrypt
      echo   'Chargement du disque mémoire initial…'
      initrd   /initramfs-genkernel-x86_64-3.6.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, avec Linux x86_64-3.6.0-sabayon (mode de dépannage)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.6.0-sabayon-recovery-5ed9d437-8a88-4ca0-8967-d8a3c1f198a3' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt1'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  33896d6d-858b-480c-9508-01173ce08c1d
      else
        search --no-floppy --fs-uuid --set=root 33896d6d-858b-480c-9508-01173ce08c1d
      fi
      echo   'Chargement de Linux x86_64-3.6.0-sabayon…'
      linux   /kernel-genkernel-x86_64-3.6.0-sabayon ro single init_opts=single  init=/linuxrc video=vesafb:ywrap,mtrr:3 vga=791 gfxpayload=1024x768x16 console=tty1 dokeymap keymap=be domdadm resume=swap:/dev/mapper/vg_zbi-lv_swap real_resume=/dev/mapper/vg_zbi-lv_swap dolvm root=/dev/mapper/vg_zbi-lv_root docrypt
      echo   'Chargement du disque mémoire initial…'
      initrd   /initramfs-genkernel-x86_64-3.6.0-sabayon
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Code: Select all
 free -h
             total       used       free     shared    buffers     cached
Mem:          5,7G       1,7G       4,1G         0B        44M       651M
-/+ buffers/cache:       1,0G       4,7G
Swap:         7,7G         0B       7,7G
Last edited by Zaibon on Thu Feb 28, 2013 18:25, edited 1 time in total.
Zaibon
Baby Hen
 
Posts: 17
Joined: Tue Oct 11, 2011 16:49

Re: can't resume from hibernation

Postby linuxfluesterer » Wed Feb 20, 2013 16:13

I had a similar problem. Though I didn't receive a black screen.
Launching hibernate, after a boot, it finished as ever, at a login screen, but not to my last saved session.
I have checked my /boot/grub2/grub.cfg file for 'resume'-UUID in the first boot entry for my default partition in:
Code: Select all
### BEGIN /etc/grub.d/10_linux ###

in line:
Code: Select all
        linux   /boot/kernel-genkernel-x86_64-3.7.0-sabayon ro resume=UUID=xxxx......

and I compared this UUID with UUID of my SWAP partition.
You can check your UUIDs as root with:
Code: Select all
blkid

Then you'll see your SWAP-UUID also.
In my case, it was NOT identical.
So, I made a backup from /etc/default/sabayon-grub (to sabayon-grub.org) and in the first file I changed the value behind
Code: Select all
resume=swap:UUID=xxxx
to the SWAP-UUID and
Code: Select all
real_resume=UUID=xxxx
also.
Then I did a:
Code: Select all
grub2-mkconfig -o /boot/grub/grub.cfg

so that changes effected. You can check the changed /etc/grub/grub.cfg for changed UUID then.
Reboot (everything was fine for me) then new try to hibernate. And ... it worked!
Hope to help you,

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: can't resume from hibernation

Postby Zaibon » Thu Feb 21, 2013 2:42

thanks for the help.

I tried your solution but nothing change.

I think it's not the same problem. Here it seems that it can find the swap partition because I never get to the login screen.
Zaibon
Baby Hen
 
Posts: 17
Joined: Tue Oct 11, 2011 16:49

Re: can't resume from hibernation

Postby Zaibon » Mon Mar 04, 2013 13:06

I have installed the 3.2 kernel and hibernation is working.

Is it possible it's a kernel bug so ?
Zaibon
Baby Hen
 
Posts: 17
Joined: Tue Oct 11, 2011 16:49

Re: can't resume from hibernation

Postby linuxfluesterer » Mon Mar 04, 2013 15:38

I just see now, you have gpt (u)efi boot.
Maybe this is a problem due to (uefi) topic...
I use hibernation with Kernel 3.7 with no efi boot.

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: can't resume from hibernation

Postby linuxfluesterer » Mon Mar 04, 2013 17:05

I've just made a new test with Kernel 3.8.
I haven't changed any configuration of grub.cfg.
It was newly created by updating the Kernel...
Hibernation still works fine...

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: can't resume from hibernation

Postby Zaibon » Mon Mar 04, 2013 17:21

I disabled efi boot in bios. It didn't work with my laptop.

What should I change in grub.cfg to remove efi stuff ?
Zaibon
Baby Hen
 
Posts: 17
Joined: Tue Oct 11, 2011 16:49

Re: can't resume from hibernation

Postby linuxfluesterer » Mon Mar 04, 2013 17:41

Exactly ... I don't have really an idea using (u)efi.
I have taken out my build in hard disk with Windows 8 and keep it for selling in 2 or 3 years. And put a new one in.
Then I could only boot Sabayon Live (10 or 11) when BIOS is set to normal boot and installed Sabayon only.
Windows 7 is launched in a VirtualBox. So... no real need to boot with Windows for me.
But in your first post, the grub.cfg includes grp/(u)efi components in "/etc/grub.d/10_linux" section.
To answer your question, I want to say, after my Kernel 3.7 was working fine with hibernate
and I updated the Kernel to 3.8, there was nothing to do manually (neither in /etc/grub.d/10_linux nor in grub.cfg itself).
I assume the problem in uefi. I wished, someone would read this thread and can tell about a possible problem (bug?) of uefi and hibernate combination.

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany


Return to Hardware

Who is online

Users browsing this forum: No registered users and 0 guests

cron