[opensuse-support] give TW Grub-EFI menu blue background instead of black?
This is what I had: http://fm.no-ip.com/SS/Suse/gmenu-TWsmall.jpg (menu uses <1/2 the screen) when I filed https://bugzilla.opensuse.org/show_bug.cgi?id=1101747 This is what I have now, which eventually resulted from removing grub* packages and config files, then reinstalling: http://fm.no-ip.com/SS/Suse/gmenu-TWbig.jpg (menu uses most of screen) This is what I'm trying to achieve (blue background, like Debian produces): http://fm.no-ip.com/SS/Suse/gmenu-Deb.jpg I tried YaST2, but it doesn't seem to have any way to affect menu colors (or font size or overall menu size). <https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.grub2.html> didn't help. Debian has a file /etc/grub.d/05_debian_theme which undoubtedly accounts for its boot menu colors. I tried including it in my TW /etc/grub.d/, but it didn't have any desired effect, likely at least in part because of its many references to *grub/* where openSUSE has *grub2/*. I tried to find docs on the installed system that might explain grub menu theming, but no luck there: # rpm -qa | grep grub grub2-2.02-33.1.x86_64 grub2-i386-pc-2.02-33.1.x86_64 grub2-x86_64-efi-2.02-33.1.x86_64 ruby2.5-rubygem-cfa_grub2-1.0.1-1.1.x86_64 # man grub.cfg No manual entry for grub.cfg # man grub No manual entry for grub # man grub2 No manual entry for grub2 # man grub2-i386-pc No manual entry for grub2-i386-pc # man grub2-x86_64-efi No manual entry for grub2-x86_64-efi # grub If 'grub' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf grub # grub2 If 'grub' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf grub2 Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or where docs are that might explain? Bonus question: What controls overall Grub menu size, whether it uses only a small portion of the center of the screen instead of most of it? I looked in /etc/grub.d/, /etc/default/grub and /boot/grub2/grub.cfg without spotting anything that looked like any kind of size control. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
04.10.2018 08:29, Felix Miata пишет:
You expect us to hunt for this file to understand what you did? ...
Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or where docs are that might explain?
As you are using text mode console, I'd say color_normal, color_highlight, menu_color_normal, menu_color_highlight environment variables may help. They are described in "info grub2".
Text mode takes whatever console size is exposed by BIOS. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Andrei Borzenkov composed on 2018-10-06 08:14 (UTC+0300):
Felix Miata composed:
This is what I'm trying to achieve (blue background, like Debian produces): http://fm.no-ip.com/SS/Suse/gmenu-Deb.jpg
You expect us to hunt for this file to understand what you did? ...
appended/attached(?) the one from Butch Quite different: https://raw.githubusercontent.com/huslage/qfi-box-config/master/etc/grub.d/0... I didn't save any changes I tried.
Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or where docs are that might explain?
Named, yes. Description of how and where to use (aka examples), not found (normal for info files and man pages). Based on <https://unix.stackexchange.com/questions/381188/how-to-set-solid-background-color-in-grub> I tried appending GRUB_COLOR_BACKGROUND="blue" GRUB_COLOR_HIGHLIGHT="white/blue" GRUB_COLOR_NORMAL="light-blue/blue" to /etc/default/grub (attached?) and rebuilding /etc/grub2/grub.cfg, but it had no detectable effect on the Grub menu next boot. Based on the Debian theme, I also tried creating /etc/grub.d/05_theme: set_default_theme(){ echo "${1}set menu_color_normal=cyan/blue" echo "${1}set menu_color_highlight=white/blue" } It too had no detectable effect on the Grub menu next boot. What I, and probably many others, would like is something that provides examples like info and man pages almost never have. Setting menu colors to something other than black on white shouldn't require a course in theme programming. I'm not a programmer.
Text mode takes whatever console size is exposed by BIOS.
Something other than UEFI BIOS/UEFI BIOS font size must be controlling whether Grub's menu is using the whole screen or not, no? -- Bombardier Beetle Irreducible Complexity Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
06.10.2018 09:35, Felix Miata пишет:
Well, I have no idea what this two-page script is supposed to do. Adding set menu_color_normal=light-gray/blue set menu_color_highlight=white/blue to custom.cfg certainly works on Leap 42.3 VM.
Console size is always 80x25. Whether it takes up full screen or its part is entirely up to BIOS (and possible video card BIOS/screen. I suppose LCD cannot be stretched). -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Andrei Borzenkov composed on 2018-10-06 10:05 (UTC+0300):
Adding
set menu_color_normal=light-gray/blue set menu_color_highlight=white/blue
to custom.cfg certainly works on Leap 42.3 VM.
Works on TW too. :-) Instead appending them to /etc/grub.d/05_text_colors also worked, once I figured out 'exec tail -n +3 $0' (whatever it does, from 40_custom) had to come first, and grub.cfg has been subsequently updated. To go through what I did to find this out, and ultimately depending on you to contribute your time, shouldn't have been necessary to this relatively simple to apply configuration discovery.
The screenshots in my OP were all taken on the same display using the same PC. What changed to result in the TW menu using the same sizes as Debian's instead of much smaller had to be something occurring during the process of purging and reinstalling TW's Grub*. Could it be something internal to grubx64.efi? -- Bombardier Beetle Irreducible Complexity Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
06.10.2018 11:20, Felix Miata пишет:
On EFI grub asks firmware about screen dimensions, falling back to 80x25 if nothing was provided. It is also using firmware primitives to position cursor, which means where position (0,0) ends up on physical screen is entirely up to firmware. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
04.10.2018 08:29, Felix Miata пишет:
You expect us to hunt for this file to understand what you did? ...
Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or where docs are that might explain?
As you are using text mode console, I'd say color_normal, color_highlight, menu_color_normal, menu_color_highlight environment variables may help. They are described in "info grub2".
Text mode takes whatever console size is exposed by BIOS. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Andrei Borzenkov composed on 2018-10-06 08:14 (UTC+0300):
Felix Miata composed:
This is what I'm trying to achieve (blue background, like Debian produces): http://fm.no-ip.com/SS/Suse/gmenu-Deb.jpg
You expect us to hunt for this file to understand what you did? ...
appended/attached(?) the one from Butch Quite different: https://raw.githubusercontent.com/huslage/qfi-box-config/master/etc/grub.d/0... I didn't save any changes I tried.
Anyone know how to make my openSUSE TW Grub menu colors match Debian's, or where docs are that might explain?
Named, yes. Description of how and where to use (aka examples), not found (normal for info files and man pages). Based on <https://unix.stackexchange.com/questions/381188/how-to-set-solid-background-color-in-grub> I tried appending GRUB_COLOR_BACKGROUND="blue" GRUB_COLOR_HIGHLIGHT="white/blue" GRUB_COLOR_NORMAL="light-blue/blue" to /etc/default/grub (attached?) and rebuilding /etc/grub2/grub.cfg, but it had no detectable effect on the Grub menu next boot. Based on the Debian theme, I also tried creating /etc/grub.d/05_theme: set_default_theme(){ echo "${1}set menu_color_normal=cyan/blue" echo "${1}set menu_color_highlight=white/blue" } It too had no detectable effect on the Grub menu next boot. What I, and probably many others, would like is something that provides examples like info and man pages almost never have. Setting menu colors to something other than black on white shouldn't require a course in theme programming. I'm not a programmer.
Text mode takes whatever console size is exposed by BIOS.
Something other than UEFI BIOS/UEFI BIOS font size must be controlling whether Grub's menu is using the whole screen or not, no? -- Bombardier Beetle Irreducible Complexity Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
06.10.2018 09:35, Felix Miata пишет:
Well, I have no idea what this two-page script is supposed to do. Adding set menu_color_normal=light-gray/blue set menu_color_highlight=white/blue to custom.cfg certainly works on Leap 42.3 VM.
Console size is always 80x25. Whether it takes up full screen or its part is entirely up to BIOS (and possible video card BIOS/screen. I suppose LCD cannot be stretched). -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Andrei Borzenkov composed on 2018-10-06 10:05 (UTC+0300):
Adding
set menu_color_normal=light-gray/blue set menu_color_highlight=white/blue
to custom.cfg certainly works on Leap 42.3 VM.
Works on TW too. :-) Instead appending them to /etc/grub.d/05_text_colors also worked, once I figured out 'exec tail -n +3 $0' (whatever it does, from 40_custom) had to come first, and grub.cfg has been subsequently updated. To go through what I did to find this out, and ultimately depending on you to contribute your time, shouldn't have been necessary to this relatively simple to apply configuration discovery.
The screenshots in my OP were all taken on the same display using the same PC. What changed to result in the TW menu using the same sizes as Debian's instead of much smaller had to be something occurring during the process of purging and reinstalling TW's Grub*. Could it be something internal to grubx64.efi? -- Bombardier Beetle Irreducible Complexity Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
06.10.2018 11:20, Felix Miata пишет:
On EFI grub asks firmware about screen dimensions, falling back to 80x25 if nothing was provided. It is also using firmware primitives to position cursor, which means where position (0,0) ends up on physical screen is entirely up to firmware. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
Felix Miata