LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-10-2010, 01:16 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
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)
 
Old 09-10-2010, 03:32 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,416

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
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.
 
Old 09-10-2010, 04:03 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
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
 
Old 09-10-2010, 06:36 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,342

Rep: Reputation: 184Reputation: 184
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,
 
Old 09-10-2010, 10:51 PM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting slackware installer via grub2 jordanwb Slackware 3 08-31-2010 03:39 PM
[SOLVED] Editing the grub2 boot menu in a dual boot machine Chriscrof Linux - Newbie 13 07-15-2010 01:14 AM
[SOLVED] Trying to chainboot Slackware from Grub2 trumpet_tom Slackware 3 06-07-2010 11:35 AM
[SOLVED] How to get Grub2 to boot OS X with Graphics Mode boot option PaulFXH Linux - General 3 04-17-2010 03:58 AM
How to increase Slackware boot screen resolution to 1280x1024? sertmusluman Slackware 9 12-24-2008 08:53 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration