Ubuntu 10.10 has a nice display (high resolution) of command line (tty) by default. Well at least it is output perfectly in my T61p. But after my activation of nVidia driver, the tty returned to the kernel default which is 640×480. I really cannot work in such a tiny space. Let’s tweak it a bit.
One more point to mention, I did all the following steps in a clean installed Ubuntu. So if you cannot get the expected result, you may want to check your systems config files. Make sure they are “clean”. And you may also want to check your packages are not “that different” with the Ubuntu 10.10’s.
Before we start, please make sure that you didn’t change anything in the configurations of grub and plymouth. And we will also need to install two packages: v86d and hwinfo.
Look up your favorite resolution mode ID
You will be able to see a list like this:
Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x0347: 1400x1050 (+1400), 8 bits
Mode 0x0348: 1400x1050 (+2800), 16 bits
Mode 0x0349: 1400x1050 (+5600), 24 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x0352: 2048x1536 (+8192), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0362: 768x480 (+768), 8 bits
Mode 0x0364: 1440x900 (+1440), 8 bits
Mode 0x0365: 1440x900 (+5760), 24 bits
Mode 0x0368: 1680x1050 (+1680), 8 bits
Mode 0x0369: 1680x1050 (+6720), 24 bits
Mode 0x037c: 1920x1200 (+1920), 8 bits
Mode 0x037d: 1920x1200 (+7680), 24 bits
The hex numbers are the mode ID. In my case I will pick 0x037d. Now we need to tell the kernel which resolution should be picked when start.
Find the following three lines.
Change them to:
Then save the file. Open another file:
Append the following line:
We will need to create a new file:
OK, we are almost done. Just need to update the configurations.
sudo update-initramfs -u
Final step, restart. And that’s it. Enjoy!
If you want to make your tty support Chinese/Japanese/Korean, please refer to post 给Ubuntu tty加中文.