LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Using GRUB2 and want to boot Slackware in different resolution (http://www.linuxquestions.org/questions/slackware-14/using-grub2-and-want-to-boot-slackware-in-different-resolution-831426/)

cwwilson721 09-10-2010 02:16 PM

Using GRUB2 and want to boot Slackware in different resolution
 
I have, for awhile, had Ubuntu 10.04 as my main OS. I decided to go back to SW13.1, and added it in as dual-boot, with grub2 as my bootloader.

grub sees/boots SW fine.

But SW boots in 640x480, and is fugly, to say the least.

How do I change this? Grub currently runs at 1024x768. And in lilo, it's easy as pie to change the kernel boot resolution.

How do I do this in grub2? (Notice I said grub2, because it's MUCH different than grub, as far as config files and the like)

Richard Cranium 09-10-2010 04:32 PM

I think that you edit /etc/default/grub and add a line setting "GRUB_CMDLINE_LINUX_DEFAULT" to "ro vga=791". See http://grub.enbug.org/Manual#head-db...4b625974134d7e

If you look in /etc/grub.d/10_linux, you'll see:
Code:

linux_entry "${OS}" "${version}" false \
      "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"

I couldn't find a place where GRUB_CMDLINE_LINUX_DEFAULT was set, so I assume that you can set it to something yourself.

You *can* hand edit /boot/grub/grub.cfg to add the vga=XXX stuff; you just can't re-run the grub-install stuff.

None of the above is tested. I'm still running legacy grub, but have been looking at Grub2.

linus72 09-10-2010 05:03 PM

I'm using grub2 via Slackbuilds on my -current setup
it works great, but make sure you make executable everything in /etc/grub.d prior to doing grub-install/update-grub,etc

salixos has a nice gui grub2 installer/configurer script too
http://download.salixos.org/i486/13....noarch-1ab.txz

they also have grub2 too
just read the dep file
heres the repo
http://download.salixos.org/

I think Richard is right on

colorpurple21859 09-10-2010 07:36 PM

Yes, as Richard Cranium says editing /default/grub line "GRUB_CMDLINE_LINUX_DEFAULT=" or is it "GRUB_CMDLINE_LINUX=". From what I've read, one only affects the ubuntu entries and the other affects all entries, not sure which is which. Another way of doing it is to add a slack menu entry in /etc/grub.d/40_custom file that will keep after grub updates. If you don't have a /etc/grub.d/40_custom file you can create one,

tommcd 09-10-2010 11:51 PM

Quote:

Originally Posted by colorpurple21859 (Post 4093975)
Another way of doing it is to add a slack menu entry in /etc/grub.d/40_custom file that will keep after grub updates. If you don't have a /etc/grub.d/40_custom file you can create one,

Here is exactly how to do that:
https://wiki.ubuntu.com/Grub2#Automatic%20Entries
This is how I boot to the Slackware 13.1 generic-smp kernel from Ubuntu 10.04's grub2. Be sure to make the file executable, and be sure to run: sudo update-grub after creating the executable file.


All times are GMT -5. The time now is 05:03 AM.