Page 1 of 1

Grub menu shown after resuming from hibernate

PostPosted: Sep 9th, '13, 07:01
by smh377
Hi all,

I've installed mga 3 on a new Dell Inspiron 14r, and everything works beautifully. Hardware is all supported, the thing suspends to ram and resumes in 1 second or less, it's all quite satisfying.

I've noticed that there seems to be an odd behavior in suspending to disk. Under mageia 2, when I'd suspect a computer to disk, when resuming it, there would be no grub menu--it'd just boot directly into the desktop and prompt me for a screensaver password. Now, however, when I suspend this machine to disk, when I wake it up it gives me a grub menu.

Selecting the same boot image as before does in fact resume the hibernated system, but it worries me that it's no longer automatically selected..that I might hit a key by mistake and lose a session.

Is this a change in behavior for mga3? Is it possible to get the old behavior back?

thanks!

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 9th, '13, 21:24
by doktor5000
smh377 wrote:I've noticed that there seems to be an odd behavior in suspending to disk. Under mageia 2, when I'd suspect a computer to disk, when resuming it, there would be no grub menu--it'd just boot directly into the desktop and prompt me for a screensaver password.


Are you sure you didn't select suspend-to-ram aka suspend?

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 9th, '13, 21:33
by smh377
Yes.

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 9th, '13, 21:35
by smh377
As I said, after waking the machine, I get a grub menu, as though the machine were booting normally. It's only after selecting the boot option that it then resumes from hibernation.

I have, in fact, never ever seen a grub menu on suspend-to-ram.

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 10th, '13, 10:44
by David_Batson
I see the same thing. Suspend to disk brings up the grub menu, and suspend to ram does not.

I suspect this is a grub issue, not a Mageia issue per se. In fact on my machine, I am using Arch Linux installed grub 2, with 3 other OS's installed. It doesn't matter which OS I suspend to disk, I always get the grub menu on power up.

See if adding this to /etc/default/grub will solve your issue.
Code: Select all
GRUB_DEFAULT=saved

Be sure and rebuild grub.cfg after you edit /etc/default/grub
Code: Select all
update-grub

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 10th, '13, 11:18
by jkerr82508
You want to see the Grub menu if you are dual-booting with Windows. When you re-boot after logging out of Windows, your suspended Linux session is then restored. In fact, is it not possible to have several suspended Linux sessions, provided each of the Linux installs uses a different swap partition?

Jim

Re: Grub menu shown after resuming from hibernate

PostPosted: Sep 10th, '13, 13:50
by David_Batson
AFAIK, if you select a timeout period, you will have the length of the timeout to hit the ESC key and bring up the grub menu. I use this for a hidden grub menu. I suspect you could do the same thing with a "grub default saved" option. If you reboot or power up, whatever was last booted is what will boot by default unless you press ESC during the timeout to bring up the grub menu.

The way I have my system set up, I have a default OS (that is always the same) that boots if I do not make a choice at the grub menu. I have a 5 second timeout for my hidden grub menu. If I don't press ESC during the 5 second timeout, I never see the grub menu.

That said, for all this to work as desired, you need to have the proper entries in /etc/default/grub