- Running Ubuntu 18.04 sever on a physical machine or VirtualBox?
- Do you need/want to use the full native resolution of your screen? Higher than 640x480 / 800x600?
Then you may be stuck as I've been, because the solution that used to work on 14.04 and 16.04 doesn't work on 18.04.
Problems to solve (goals)
hwinfo --framebuffer
gives an empty output -> find another solution- adding the usual lines to /etc/default/grub, only helps at the first stage of the boot. After GRUB2 has done its work, the resolution switches back to a lower value -> resolve this too
- exclude xorg based tools like xrandr (this is a server without GUI by default)
- increase VT1-7 (Ctrl+Alt+F1, F2 - F7 ) resolution in case of Desktop systems with a GUI
- set the resolution to 1280x1024
1. Get supported video mode (use
vbeinfo
instead of hwinfo)set pager=1
, then hit ENTERvbeinfo
, then hit ENTERMode 0x031b: 1280x1024 (+3840), 24 bits
2. Modify / add the following lines to
/etc/default/grub
to match the ones below3. Update GRUB
4. Reboot
Note1: I've tested the above solution with Ubuntu 18.04 Server and Desktop on VirtualBox.
Note2: Didn't include linux terminal (emulator), putty, cygwin, conemu and other fancy tools, because this is about the bare console.
None of the sources I used had a complete solution, but putting the parts together, solved the problem for me.
Change Ubuntu Server 14.04 Screen Resolution
https://ubuntuforums.org/archive/index.php/t-1468789.html
But sometimes you need the monitor natives text resolution so it scroll faster.
1. Get supported video mode (use
vbeinfo
instead of hwinfo)set pager=1
, then hit ENTERvbeinfo
, then hit ENTERMode 0x100: 640 x 400 x 8 (640) Paletted
2. Modify / add the following lines to
/etc/default/grub
to match the ones below3. Update GRUB
4. Reboot
Struggling with this issue on DELL XPS13 ubuntu edition, I found out another way to make it work properly by changing the cmdline:
from
to
you might need to change the value of eDP-1 as it's referring to the connector you want to modify. The active connector can be found in /sys/class/drm/CONNECTOR/status