Changing the tty resolution on Ubuntu Server
It’s been a busy few weeks here in the mattrudge.net tower. Firstly a break-in at the house left me bereft of laptop, digital camera, and other devices. Secondly, while in Italy, our rental car was broken into, which relieved me of my remaining gadgets, and finally a high-level hacking decision was evidently taken to bring down the menace of my NTP server, since I was knocked off the Internet by a Denial of Service attack! For one issue I had to edit the Ubuntu Weekly Newsletter from 3G Internet on my phone!
Anyway, that’s just a moan, and nothing to do with the title of this blog post. Synchronicity is wonderful – I was just actually looking at how to change the tty resolution on a console-only Ubuntu Server, when the same question popped up on the Ubuntu Forums.
Ubuntu helpfully sets the console resolution for you – depending on what graphics card and monitor you have. Sometimes, though, the font can appear almost nanoscopic! Also – as was the case for me – you may be putting an older monitor onto the server, which won’t support such a high resolution.
Many of the answers focus on editing /etc/default/grub, but many of them don’t work – or only work for the GRUB selection screen. Here’s how to change the tty console resolution on Ubuntu 12.04 Server (this method works for everything from 9.10 as far as I know).
sudo nano /etc/default/grub
Add the following lines – or uncomment and modify them if they already exist:
GRUB_GFXMODE=800x600
GRUB_CMDLINE_LINUX_DEFAULT="915.modeset=0 nomodeset"
Save and close the /etc/default/grub file. And finally:
sudo update-grub
reboot
When your server reboots, the console resolution will now be 800×600, which is good enough for most old monitors – and myopic, old sysadmins!
couldn’t just add video=800×600 to the command line?
@Dave Thanks for your comment, Dave – that’s one of the things I tried, which didn’t work at all!
It works… Thank you…
Thank You. It was simple solved my problem
Wow. I`ve tried many modifications of /etc/default/grub and /etc/grub.d/00_header on my Ubuntu 12.04. Only this trick works! Rest changes just the grub`s resolution. It has only one small disadvantage – It broke my X-display conf – Now ubuntu doesn`t see my second monitor and im forced to use laptop`s built in display. Big big thanks!
Thanks! it works very well!
Well, Hello it`s me again
Today i`ve tried “915.modeset=0 nomodeset” way on couple of older machine`s .
On some of them it`s working, on some not.
I had to find another way, and there it is:
GRUB_CMDLINE_LINUX=”video=VGA-1:640×480″
You don`t have to change
GRUB_GFXMODE=…. entry
unless You want to change Grub`s resolution.
For me (kind of newbe) it`s way more simple way.
You can simply change the resolution of tty eg …video=VGA-1:720×400″
I supose it`s the way to control monitors in tty for example turn off the laptop`s built in screen and set resolution of second screen conected to laptop (VGA-1 and VGA-2).
YES! I can finally see my Clonezilla server on its terminal. This did the trick, thank you SO MUCH!
There’s another “solution” elsewhere in the intarwebs that misses the “915.modeset=0 nomodeset” option. This fixed my problem.
THANK YOU!!!!
Cool…glad it’s working for you. Thanks for the comment
Works perfectly! Thanks!
Thank you very much! The instructions here were the first I found that worked (using Ubuntu Server).