[SOLVED] how to set grub video mode & theme in /etc/default/grub
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to set grub video mode & theme in /etc/default/grub
manual says:
Quote:
13.1.8 gfxmode
If this variable is set, it sets the resolution used on the ‘gfxterm’ graphical terminal. Note that you can only use modes which your graphics card supports via VESA BIOS Extensions (VBE), so for example native LCD panel resolutions may not be available. The default is ‘auto’, which selects a platform-specific default that should look reasonable.
The resolution may be specified as a sequence of one or more modes, separated by commas (‘,’) or semicolons (‘;’); each will be tried in turn until one is found. Each mode should be either ‘auto’, ‘widthxheight’, or ‘widthxheightxdepth’.
Code:
GRUB_CMDLINE_LINUX=""
GRUB_GFXPAYLOAD_LINUX=true
#Semicolons are being used
GRUB_GFXMODE=auto ; 1024x768x64 ; 1024x768x32 ; 1024x768x16
#GRUB_GFXMODE=1280x960x32 , auto
GRUB_THEME="/boot/grub/themes/slackware"
I keep getting nope
Quote:
(root@SlackO⚡️/etc/default)>># update-grub
/etc/default/grub: line 15: 1024x768x64: command not found
removed that setting now get this
Quote:
(root@SlackO⚡️/etc/default)>># update-grub
/etc/default/grub: line 15: 1024x768x32: command not found
even when I ran it with just using 'auto' it went but when I rebooted I am still getting the same rez black and white grub menu screen.
I am not even sure I have the theme line formed correctly. all I see are a bunch of png files in it.
You need quotes around your GRUB_GFXMODE variable's contents. Otherwise, Linux sees everything after a semi-colon as a new command. So, it would store "auto" in GRUB_GFXMODE, then it would try and run 1024x768x64, then if that succeeded (which it wouldn't), it would then try to run 1024x768x32, and work its way down the line.
You need quotes around your GRUB_GFXMODE variable's contents. Otherwise, Linux sees everything after a semi-colon as a new command. So, it would store "auto" in GRUB_GFXMODE, then it would try and run 1024x768x64, then if that succeeded (which it wouldn't), it would then try to run 1024x768x32, and work its way down the line.
As to the rest of your issues, I'll have to let someone else help.
oh.
so the better logic would be in the order of to tell it first by giving it the options first to try then last resort have it go auto and pick one that works.
well it is still just a big black and white grub menu. it maybe working but I did not see any changes in size per se' it is the same as it was before adding the lines in grub.
I have no idea what order works or anything else with grub. I could just see why you were getting that error since storing info in variables isn't grub specific. Someone else will need to help you troubleshoot grub.
that is not the norm. usally it is some kind of variation of the word configuration
.cfg
.conf
.config
no not this time it was a windows throwback
.txt
file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.