2010年4月9日 星期五

How To Change Boot Menu Resolution in GRUB2 (3)

If you want to use a splashimage with more pixels than 640x480,  you can set the display resolution higher in GRUB 2.

That will give you a better quality picture and  your fonts will appear smaller so you'll be able to see a lot more of your boot entries on the screen without scrolling so much.

 1. If you don't already know what resolutions your video hardware can support, you can boot GRUB2 and press 'C' fro your GRUB Menu to go into into CLI Mode GRUB . Then you can run the vbeinfo command for a list of resolutions your hardware can support. Press your pause key if you need more time to read the text.

 2. Write the numbers down on a piece of scrap paper if you need to.

 3. Open your  /etc/default/grub file with a text editor and change your settings there

gksudo gedit /etc/default/grub

 4. Alter the numbers after where it says"GRUB_GFXMODE=" with a suitable resolution for your hardware,
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"

 4. Save the file before closing it.

 5. Run sudo grub-mkconfig to write the changes to your grub.cfg,
sudo grub-mkconfig -o /boot/grub/grub.cfg

 6. reboot and see if it worked.

沒有留言:

張貼留言

How to use simple speedtest in RaspberryPi CLI

  pi@ChunchaiRPI2:/tmp $  wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py --2023-06-26 10:4...