Native Resolution
How does Arch (or any distro for that matter) decide what my TTY resolution will be? And is there a way to adjust it?
About this post
- Posted
- Archived
- Score
- 10 · 82% up
- Kind
- Text
- ID
- pphmrn
How does Arch (or any distro for that matter) decide what my TTY resolution will be? And is there a way to adjust it?
9 comments
These days I think it's mostly handed off from the UEFI. Otherwise it probes the graphic card and monitor and asks what the highest supported resolution is, and chooses that automatically. If it can't do that it falls back to VGA I think.
I think you can set the resolution through your bootloader config, or your kernel commandline.
Makes sense. Thanks for the response.
Keep in mind that it's been very long since I had to do any of this manually. Ever since kernel modesetting became a thing I don't think I've bothered adjusting the resolution manually. So I might not remember everything correctly haha.
https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes_and_EDID
Here is a starting point.
Very nice. Thanks for that.
Under UEFI it’s handled by GOP. It’s basically a reimplementation for an older BIOS API called VESA VBE, which is itself the successor of “modesetting” on VGA in the olden days. The kernel queries the display device through GOP or VESA VBE for available graphics modes (think resolution, but also things like color depth etc) and picks one that’s “good enough”. As for how to set it, the kernel is loaded by something called a bootloader. Most likely the bootloader you are using can be configured to pass a preferred mode.
I don't know how other machines handle it, but mine defaults to the max resolution. I use a 4:3 aspect ratio that I set on my bootloaders, rEFInd is really easy to work with and grub is just an additional command away
Thanks to everyone! My laptop uses 1920x1080 as its "native" resolution. But, the GPU and screen actually support (quite well, actually) higher resolutions. I really like 1440x2560 (which honestly seems like the sweet spot on this machine) and I have been using that on WMs for awhile (via xrander). I sometimes just work in TTY (via tmux) and I wanted to have that resolution there as well... you guys have been very instrumental in helping me figure this out.
Thanks to all that have reponsed.