Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
97
rated 0 times [  97] [ 0]  / answers: 1 / hits: 310527  / 2 Years ago, mon, october 31, 2022, 6:10:14

grub2 isn't really fit in the best screen resolution that my laptop can support (1280 x 800).


How can I do this without using a third party application ?


More From » grub2

 Answers
2

To do this safely requires two steps.



Step 1: find the preferred mode



Reboot and press and hold Shift to display your grub. Press C to enter console mode. Then type (for Ubuntu versions before 18.04):



$ vbeinfo


For Ubuntu 18.04 and later:



$ videoinfo


This will display various stuff how grub recognizes your display. At the bottom is "preferred mode" - in your case it should say 1280x800. Note down the value.



Note: sometimes, some buggy video cards incorrectly give Grub the wrong preferred resolution - if the preferred mode is much higher than you were expecting, then select the nearest mode in the list displayed that you were expecting.



Press Esc to return to grub and press Enter to boot.



Step 2: Setting the resolution in grub



Reach for your terminal and type



$ sudo nano /etc/default/grub


find the line



#GRUB_GFXMODE=640x480


remove the # and change 640x480 with the preferred mode you wrote down. E.g.:



GRUB_GFXMODE=1280x800


save, then type



$ sudo update-grub


Note: the preferred mode has to be among those listed by vbeinfo. For example, if your preferred mode is 1920x1080 (a common 16x9 aspect ratio setting), your preferred mode is NOT supported by vbeinfo and may not work correctly. In fact, there do not seem to be any 16x9 modes supported by vbeinfo, as of Ubuntu 13.04. In that case you could try falling back to something common like 640x480, which, it seems most monitors support and vbeinfo supports. Also, not all the modes supported by vbeinfo are necessarily supported by your monitor and you may have to experiment.


[#44149] Wednesday, November 2, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
rmiend questions
Tue, Jan 18, 22, 23:52, 2 Years ago
Sat, Sep 17, 22, 15:44, 2 Years ago
;