When my computer goes to console mode (booting up, shutting down or Ctrl + Alt + F1)), the text is super big. I can't take a screenshot of it, but it looks like a 640 x 480 resolution. My monitor normally works at 1440 x 900.
I remember that the console text that appeared while installing from the CD was nice and small.
How can I make the console text look like it looked while booting from the CD?
I've found a solution that works from this forum post
In short:
Open
/etc/default/grub
with your favorite editor as root.Localize the line that says
GRUB_GFXMODE= ...
and change it to the resolution you want. Add another line for a new variable calledGRUB_GFXPAYLOAD
with the same resolution. It should look similar to this:Save and exit. Then edit as root
/etc/grub.d/00_header
Localize the line that says
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=...
. As before, change the resolution there to the one you want and add another line for payload:Finally, locate the line that says set
gfxmode=${GRUB_GFXMODE}
and add a line for payload below it. It should look like this:Save and exit.
Still as root, refresh grub with
Reboot, and both the grub menu and the console should have nicer resolutions.
Finished!
This helped me on Ubuntu 14.04 with ESXi 5.5 :
Change line to:
Then run:
Use 795 or 799 for higher resolution (More details here).
vbeinfo
and make a decision (e.g. 1920x1200x32).sudo nano /etc/default/grub
GRUB_GFXMODE=
(e.g.GRUB_GFXMODE=1920x1200x32
)GRUB_GFXPAYLOAD_LINUX
toGRUB_GFXPAYLOAD_LINUX=keep
sudo update-grub
Set the graphics mode with
GRUB_GFXPAYLOAD_LINUX
First, install
xrandr
and run it:The available screen modes are listed.
Now, edit
/etc/default/grub
:Assuming a previously unedited file, make the following changes:
The variable
GRUB_CMDLINE_LINUX_DEFAULT
should contain at leastnomodeset
, perhaps in addition toquiet
andsplash
on desktop systems.On server systems, uncomment
GRUB_TERMINAL=console
to see more messages passing during boot before entering in the graphics console.Leave this line as a comment:
At the end of the file, add a line:
or replace the value by any other (comma separated) mode(s) that is(are) supported by your hardware. The values
text
,keep
,auto
,vga
andask
should also work.Finally, after saving the edited
/etc/default/grub
with Ctrl+O and exiting it with Ctrl+X, issue the following commands:This answer will also work to decrease the resolution and/or refresh rate or frame buffer frequency on down-clocked systems. CRT monitors typically show flickering stripes when the refresh frequency is too high.
Just some personal background: in my other computer I have no problem with that fancy mode (it's 160 cols x 60 rows, but it has a 4:3 CRT monitor). It's equipped with a TNT2 (yes, I swear), and that mode was promptly displayed on first boot. Problem is, it does this by loading the nouveau driver, and this guy is still a bit faulty (in my case, it hangs the whole system when trying to move windows). So, to have an usable system, I had to downgrade to the old and stable nv driver, and also disabling mode-setting ('cause the kernel would always load nouveau when enabled). Note that I'm not using nVidia proprietary drivers, but like you, I was switched back to 80x25 in console mode.
This is because the nv driver doesn't use kernel mode-setting. Now, I don't know about the proprietary drivers, but I'm guessing they might have changed your configuration in order to be usable, and possibly that's why you're seeing that "big" mode. Possibly they disabled mode-setting when installed. That's why you see the "small" text mode when booting from the Live CD.
You could try booting up with a different VESA mode, but that depends a lot on your hardware. For that, please check http://en.wikipedia.org/wiki/VESA_BIOS_Extensions#Linux_video_mode_numbers. For example, if you'd like to try booting your text mode on 1024x640, you'll find that the mode ID is 877.
So, when booting, hold the SHIFT key (in case you don't have a GRUB timeout) to bring up GRUB's menu. Select the mode which you wish to boot and press 'e' (to edit the commands). At the end of the "kernel" command, add
vga=877
. The number is the mode ID, if you want to try other modes, replace it with the desired number.Also, at that same Wikipedia page, you could also try the helpful "Universal format" right below the modes table. That hwinfo command is quite useful.
Why i answer this threat even if it's very old? The answer is pretty easy, because so many other threat refer to it.
If
vbeinfo
orhwinfo --framebuffer
doesn't show the native resolution of your display, then disable vesa, to do so remove vga= options in:Search for
GRUB_CMDLINE_LINUX_DEFAULT=
and removevga=
if you find it.If you have remove the option don't forget to generate a new grub.cfg:
If you don't know you did it well, then just reboot and open a terminal:
If grep doesn't show anything, then you removed the vga= option.
Now install uvesafb:
Make sure the uvesafb module is included into your initrd. Add it to the end of /etc/initramfs-tools/modules:
To see what modes are available:
Now configure uvesafb mode_option=YOURxResoultion-BitColorMode e.g. 1280x1024-32:
Don't forget to rebuild your initrd:
Now you can reboot!
See this for more details. It is for debian, but it also works for ubuntu. I hope it helped you and it should be more generic than using grub2.
Ubuntu 18 console mode:
Edit
in
so new line looks like:
where XXX comes from
https://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/
then reload grub config and reboot
This will not change the font on boot, but for the console on Ctrl+Alt+F[1-6]
Install the custom Ubuntu fonts for your console:
And create a script
/usr/local/bin/fontset
with this command:(choose the desired fon out of the folder
/usr/share/consolefonts/
)You can either call
fontset
each time on your console after using Ctrl+Alt+F1or add this line to your
/root/.profile
(don't add this to your users .profile or you get an error on a graphical boot)
source: Resize font on boot message screen and console
I was able to increase the console resolution on an Ubuntu server 20.04.2 VM by editing
/etc/default/grub
and settingGRUB_GFXMODE
to the desired resolution (in my case, settingGRUB_GFXMODE=1152x864
), and then by runningsudo update-grub2
. I was able to find the available resolution modes by runningsudo hwinfo --framebuffer
. I'm using grub 2.04.The following worked for me on Debian Stretch 4.9.51-1.
No GUI, only console mode:
Edit
/etc/default/grub
and add the following lineFor a list of
vga=
codes see http://pierre.baudu.in/other/grub.vga.modes.htmlThe
nomodeset
prevents the resolution from changing again after grub initializes [thanks How do I increase console-mode resolution? ]EDIT: As mentioned by @Videonauth : Afterwards do:
sudo update-grub