LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-18-2017, 08:55 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
Quote:
(root@SlackO⚡️~)>># ls /boot/grub/themes/slackware
DejaVuSans-Bold14.pf2 boot_menu_n.png slacklogo.png terminal_nw.png
DejaVuSans10.pf2 boot_menu_ne.png slider_c.png terminal_s.png
DejaVuSans12.pf2 boot_menu_nw.png slider_n.png terminal_se.png
README.md boot_menu_s.png slider_s.png terminal_sw.png
ascii.pf2 boot_menu_se.png terminal_c.png terminal_w.png
background.png boot_menu_sw.png terminal_e.png theme.txt
boot_menu_c.png boot_menu_w.png terminal_n.png
boot_menu_e.png select_c.png terminal_ne.png
(root@SlackO⚡️~)>>#
the readme does not say how to use it.
Quote:
(root@SlackO⚡️~)>># cat /boot/grub/themes/slackware/README.md
# slackware-grub2-theme
#### Screenshot
![Screenshot](http://i.imgur.com/cuqmQK4.png)

#### About
This is a Slackware theme for grub2.<br>
It's based on the Arch Linux arch-suse grub2 theme

Last edited by BW-userx; 02-18-2017 at 08:58 AM.
 
Old 02-18-2017, 09:51 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.

Code:
GRUB_GFXMODE="auto ; 1024x768x64 ; 1024x768x32 ; 1024x768x16"
Your other option would be to escape the spaces and semicolons, but that's not nearly as easy as quotes and doesn't look as good either.

Code:
GRUB_GFXMODE=auto\ \;\ 1024x768x64\ \;\ 1024x768x32\ \;\ 1024x768x16
As to the rest of your issues, I'll have to let someone else help.
 
1 members found this post helpful.
Old 02-18-2017, 10:00 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bassmadrigal View Post
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.

Code:
GRUB_GFXMODE="auto ; 1024x768x64 ; 1024x768x32 ; 1024x768x16"
Your other option would be to escape the spaces and semicolons, but that's not nearly as easy as quotes and doesn't look as good either.

Code:
GRUB_GFXMODE=auto\ \;\ 1024x768x64\ \;\ 1024x768x32\ \;\ 1024x768x16
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.

that 64bit was just a shot in the dark

let me give that a try. thanks!

Last edited by BW-userx; 02-18-2017 at 10:05 AM.
 
Old 02-18-2017, 10:08 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
@bassmadrigal

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.
 
Old 02-18-2017, 10:35 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 02-18-2017, 10:36 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
@bassmadrigal

O Tay!

it working order now.

Code:
# afterwards to update /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE="1024x768x64 ; 1024x768x32 ; 1024x768x16 ; auto"
GRUB_GFXPAYLOAD_LINUX=keep
#theme settings
GRUB_THEME="/boot/grub/themes/slackware/theme.txt"
yeah ok it is a txt file .. haha

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

Last edited by BW-userx; 02-18-2017 at 10:38 AM.
 
  


Reply



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
grub not seeing grub-set-default change bic Linux - Software 4 02-15-2008 01:44 PM
grub-set-default bic Linux - Software 2 02-12-2008 02:06 PM
How to set up GRUB for vga mode? EAD Linux - Newbie 6 03-19-2006 01:39 AM
grub-set-default missing Paulsuk Linux - Software 3 02-08-2006 08:18 PM
Some boot related tweaks... (GRUB, Video mode & mounting) Eerath MEPIS 2 08-08-2005 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration