View previous topic :: View next topic |
Author |
Message |
g-virus Tux's lil' helper
Joined: 26 Aug 2017 Posts: 111
|
Posted: Sat Aug 26, 2017 8:24 pm Post subject: [SOLVED] Suspend and Hibernate with UEFI |
|
|
Hello everyone. How to set hibernation correctly with UEFI, when there is no Grub/Grub2 bootloader? In the case when grub 2 is used, we are just writing resume=/path/to/swap/disk to GRUB_CMDLINE_LINUX_DEFAULT in grub.cfg and everything is ok. But how to do that with UEFI only, when no other bootloader used? Thank you!
SOLUTION: Need to set (/dev/your_swap_devfile) Default resume partition option in <Power management and ACPI options> -> <() Default resume partition>. without 'resume=' prefix[/b]
Last edited by g-virus on Sun Aug 27, 2017 6:59 pm; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Sun Aug 27, 2017 7:42 am Post subject: |
|
|
For EFI stub kernel, I am not entirely sure but I guess, it's to be set in the kernel itself. () Default resume partition ( CONFIG_PM_STD_PARTITION ).
Unfortunately the wiki article doesn't tell. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31284 Location: here
|
Posted: Sun Aug 27, 2017 7:43 am Post subject: |
|
|
Can help this (I have no experience with efi)? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22730
|
Posted: Sun Aug 27, 2017 4:07 pm Post subject: |
|
|
When you use the EFI stub to boot without routing through GRUB or equivalent, the UEFI firmware itself is your bootloader. Whether it can pass options at all, and if so how to set them, is likely dependent on the specific firmware involved. As I read the man page for efibootmgr (a tool commonly used to register EFI stub kernels with UEFI firmware), you can tell it to tell the firmware to pass arguments to the registered EFI application. Whether your firmware will follow through is dependent on the system in question. |
|
Back to top |
|
|
g-virus Tux's lil' helper
Joined: 26 Aug 2017 Posts: 111
|
Posted: Sun Aug 27, 2017 6:55 pm Post subject: |
|
|
charles17 wrote: | For EFI stub kernel, I am not entirely sure but I guess, it's to be set in the kernel itself. () Default resume partition ( CONFIG_PM_STD_PARTITION ).
Unfortunately the wiki article doesn't tell. |
Thank you very much, it is working! In my opinion it is working much faster than grub2 hibernation. The problem is solved, thank you all guys. |
|
Back to top |
|
|
|