Grub2 doesn't add gfxmode for other linux entries

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
dancer_69
Level 1
Level 1
Posts: 30
Joined: Thu May 19, 2011 1:25 pm

Grub2 doesn't add gfxmode for other linux entries

Post by dancer_69 » Sat May 24, 2014 5:41 am

I have a triple boot system with mint, ubuntu and Windows. Grub can find all of them and boot fine, but only the Mint installation uses gfxmode. So Ubuntu only displays the text version of plymouth splash.
In Mint's entry there is a line

Code: Select all

gfxmode $linux_gfx_mode
which seems that is responcible for the correct splash screen display for Mint. If I manually insert the above line on grub, then ubuntu shows the splash screen fine, but I don't know how to add it, so to be there for every other linux installation, when the os probed?

JeremyB
Level 20
Level 20
Posts: 11029
Joined: Fri Feb 21, 2014 8:17 am

Re: Grub2 doesn't add gfxmode for other linux entries

Post by JeremyB » Sat May 24, 2014 7:54 am

You should be able to boot Ubuntu and add the option to /etc/default/grub the same way you did for linux mint and sudo update-grub after saving the change

dancer_69
Level 1
Level 1
Posts: 30
Joined: Thu May 19, 2011 1:25 pm

Re: Grub2 doesn't add gfxmode for other linux entries

Post by dancer_69 » Sat May 24, 2014 9:47 am

Update the ubuntu's grub.cfg doesn't make any difference and I want to keep using mint's grub which already themed and configured. Also the GFXMODE is already setted and doesn't solve the problem. Seems that because of the NVidia's proprietary drivers needed to have the line "gfxmode $linux_gfx_mode" in menu entry. But which file I need to modify to include it? Also I need an automatic way because I have 4 different partitions for linux distros and I change them frequently, trying different dists etc.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Grub2 doesn't add gfxmode for other linux entries

Post by austin.texas » Sat May 24, 2014 5:27 pm

Daniel Richter has developed a GUI configuration tool to allow users to change the Grub 2 settings without using the command line. The application allows the user to add, remove, freeze, rename and reorder boot menu items. It will also allow changes to the Grub 2 configuration settings such as background image and menu timeout.

Add the repository to your system. The following commands will add the repository, import the security key, update the list of available packages and install Grub Customizer.
Open a terminal
Install Grub Customizer
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Making Changes (from Main Page)
Removing / Hiding Entries
Hide An Entire Section: Untick the main header (linux, os-prober, etc)
Example: Unticking os-prober will disable the script and remove all entries normally found by it - Windows, other Ubuntu installations, etc. Even if the entries within the subsection are enabled, they will not be displayed.
Hide Specific Entries: Untick the entry
Example: Unticking Ubuntu, with 2.6.35-24-generic will remove that specific entry in the Grub 2 menu.
Freezing Entries (new Entries)
Unticking "new Entries" prevents the addition of any new Grub 2 menu entries for that section. New options found during updates may be included in the tree view but will not be selected by default.
If a new item is found by an enabled script, it will not be added to the Grub 2 menu.
Example: If 'new Entries' in 'linux' is deselected, when a new kernel is installed on the main system it will not appear in the menu.
Adding Entries
Tick the applicable entry.
Selecting a main category will enable the script.
Selecting an item within a main category will add it to the Grub 2 menu if it's parent is enabled.
Renaming Entries
Double-click a menu title to enable the editing mode. Type the new title and click elsewhere on the page to complete the edit.
Moving Entries
To move a main section, highlight the entry and use the Up/Dn arrows on the main menu to change the menu order. Moving a main category will move all its submenus.
Example: If you want Windows to appear before the main Ubuntu entries, move os-prober to the top of the list.
To move a title up or down within a subsection, highlight the entry and use the Up/Dn arrows on the main menu to change the menu order.
A titles can only be moved within its own subsection.

Preferences Tabs (Edit > Preferences)
General
Grub.Customizer.settings.General.png
Initial display options such as whether the menu is shown, which menu entry is highlighted, and what kernel options to add to the instructions.
Default entry
How to Specify the Default Entry by Name:
'default entry' > 'predefined': Click on "Entry 1", on the expanded selection screen choose the exact title from the right column.
This works for Grub 1.98. Grub 1.99/Natty introduces submenus and using exact titles will change. I don't know if GC has accounted for this change yet. In the meantime, you can refer to this link on how to manually add a default entry from a submenu: Grub 1.99 Submenus
visibility - Menu display, other OS selections, and timeout.
kernel parameters - Add options such as nomodeset, noapic, quiet, splash, etc
Appearance
Grub.Customizer.settings.Appearance.png
Menu eye candy - resolutions, colors, background images.
custom resolution
menu colors
background image
Advanced
Grub.Customizer.settings.Appearance.png
Selection of options normally found in the /etc/default/grub file. The user can enable/disable individual items and can modify the existing entries by double-clicking the 'value' column and entering the desired value.
The only items listed in this section are those which currently exist in /etc/default/grub. The user can enable items displayed here, but cannot add items which do not already exist in the file.
Ticked items are included in the Grub 2 configuration file.
Unticked items will not be included in the Grub 2 configuration file. Unticking an entry places a # (comment) symbol at the start of the line in /etc/default/grub

Links
Launchpad Grub-Customizer https://launchpad.net/grub-customizer
Daniel Richter's Grub Customizer FAQ https://launchpad.net/grub-customizer
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

dancer_69
Level 1
Level 1
Posts: 30
Joined: Thu May 19, 2011 1:25 pm

Re: Grub2 doesn't add gfxmode for other linux entries

Post by dancer_69 » Sun May 25, 2014 2:10 am

Thanks,
I used grub-customizer in the past but I had some problems like install grub on wrong disk. I managed to boot with graphical plymouth by edit the /boot/grub/grub.cfg directly and add there the "gfxmode $linux_gfx_mode" line but I' d like grub to add this line automatically for every linux installation, as it does for default(mint). For this I tried to find information on how to edit 30_os_prober script file(which I thing that is responcible for the generation of menu entries etc), but I didn't find anything.
Can grub customizer do this?

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Grub2 doesn't add gfxmode for other linux entries

Post by austin.texas » Sun May 25, 2014 7:54 am

dancer_69 wrote: I managed to boot with graphical plymouth by edit the /boot/grub/grub.cfg directly and add there the "gfxmode $linux_gfx_mode" line but I' d like grub to add this line automatically for every linux installation, as it does for default(mint). For this I tried to find information on how to edit 30_os_prober script file(which I thing that is responcible for the generation of menu entries etc), but I didn't find anything.
Can grub customizer do this?
Yes
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

dancer_69
Level 1
Level 1
Posts: 30
Joined: Thu May 19, 2011 1:25 pm

Re: Grub2 doesn't add gfxmode for other linux entries

Post by dancer_69 » Sun May 25, 2014 8:33 am

Ok then, I' ll give it a try.
Thanks.

Post Reply

Return to “Installation & Boot”