How to set text mode 132x60, i.e., VESA text mode 268 (010Ch), upon startup from Grub?
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to set text mode 132x60, i.e., VESA text mode 268 (010Ch), upon startup from Grub?
The old way was to add the kernel boot option "vga=780" (as 780=512+268). This option still kinda "works" but is shown as old and deprecated in favour of GRUB options set in /etc/default/grub. So, how to do this using GRUB? Yes, I'd like to have text boot mode with maximal text resolution, which I believe to be 132x60 for my video card.
(Reason: I'd like to maintain as many of log data on the screen as possible beginning from GRUB till starting GUI (GDM+Wayland) without useless clear screens and many mode changes. If the boot process fails for whatever reason and the journal doesn't have the information on it, I need to have a possibility to see what preceded the failure point or at least to take a video of it for a later analysis.)
I run dual-boot Debian buster with Windows 10. Debian has the following packages installed: grub-common, grub-efi-amd64, grub-efi-amd64-bin, grub-efi-amd64-signed, grub2-common.
I gave up trying to get Linux to use SVGA text modes years ago, but would like to know how myself.
Which gfxcard do you have exactly (chip ID)?
Code:
inxi -Gxx
Not all provide the same support. IME, among AMD, Intel & NVidia, AMD traditionally has had the best support for SVGA text modes, with NVidia coming up a distant last.
The messages you don't want lost should be recoverable via journalctl.
vga= still works if you don't mind disabling KMS (e.g. nomodeset) and having sucky GUI video.
Btw., I'm also o.k. with setting the SVGA text mode 240x67 upon boot (but I don't know the corresponding SVGA text mode number for my chip) instead of 132x60.
For console like things, there's setfont. Not sure what font would favor exactly 132x60, but you can certainly do better than 80x25. Something 14 pixels by 18 pixels according to math for a 1920x1080 pixel display.
Thanks but... The OP is not about tty_ (I agree that you can actually change the text mode via setfont), but about the text mode for boot time messages and avoiding useless clear screens and useless mode switching.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.