Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Suspend and Hibernate with UEFI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
g-virus
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2017
Posts: 111

PostPosted: Sat Aug 26, 2017 8:24 pm    Post subject: [SOLVED] Suspend and Hibernate with UEFI Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Sun Aug 27, 2017 7:42 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31288
Location: here

PostPosted: Sun Aug 27, 2017 7:43 am    Post subject: Reply with quote

Can help this (I have no experience with efi)?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22753

PostPosted: Sun Aug 27, 2017 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
g-virus
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2017
Posts: 111

PostPosted: Sun Aug 27, 2017 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum