Many (most?) modern laptops have dedicated buttons to start up some linux derivative for quick web access and or recovery of windows (like the Sony VAIO SB).
I was wondering how difficult it would be to use these buttons to directly launch windows or linux or dualbooting systems?
I guess there would be a fair bit of hassle because different drivers would be needed for different laptops, but surely possible no?
Sounds minor but I'd love to be able to use different buttons to start up different OSs, save a couple of seconds of boot time(!) and half the time when I want to boot to windows, I forget to change the selection and have to restart when I hit the ubuntu logon screen!
-
-
ALLurGroceries  Vegan Vermin Super Moderator
I have seen this question posted about Asus laptops with the expressgate button, but in the end it isn't worth the trouble and I've never seen it done. I am positive it would be possible, but in the case of expressgate it needs a windows partition with the linux kernel on it, which is a bit ridiculous if you think about it (updating the kernel becomes an annoyance).
Why not just use the following settings in your /etc/default/grub to allow your last OS choice to be saved as the default across reboots?
First open up the config file in an editor as root, like this:
The first line with GRUB_DEFAULT will already exist, change its value to saved. The second you will probably have to add in (anywhere).Code:gksudo gedit /etc/default/grub
Then run sudo update-grub and the next time you choose windows at the grub boot menu it will remember that until you choose linux, etc. You can also use the grub-reboot command to reboot into another OS from linux.Code:GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true
If you run this command you will get a numbered list of the items in your grub boot menu:
You can then issue the grub-reboot command as root for the number you want to reboot into, let's say entry number 9 is windows:Code:grep ^menuentry /boot/grub/grub.cfg | nl -v0
Now when you reboot your grub default will temporarily be windows until you choose another option on a subsequent reboot.Code:sudo grub-reboot 9
Documentation for these features can be found in this section of the grub manual: http://www.gnu.org/software/grub/manual/grub.html#Simple-configuration
Is it possible to start different OSs (win/linux) using dedicated laptop buttons?
Discussion in 'Linux Compatibility and Software' started by mzatanoskas, Jun 2, 2011.