When using a virtual terminal with an external monitor, I would like to set the resolution to the monitors optimal resolution, but I'm not sure how. Does anyone know how I would go about doing this?
2 Answers
run hwinfo --framebuffer
and you will get a short or long list depending on what video card you have. The list will look something like this:
Mode 0x0335: 320×240 (+640), 16 bits
Mode 0x0336: 320×240 (+1280), 24 bits
Mode 0x033d: 640×400 (+1280), 16 bits
Mode 0x033e: 640×400 (+2560), 24 bits
Mode 0x0345: 1600×1200 (+1600), 8 bits
Mode 0x0346: 1600×1200 (+3200), 16 bits
Mode 0x0347: 1400×1050 (+1400), 8 bits
Mode 0x0348: 1400×1050 (+2800), 16 bits
Mode 0x0349: 1400×1050 (+5600), 24 bits
Then you take the Hex value to the right, for example 0x0346 and you write it down.
edit /etc/default/grub
the line that has ="quiet", make it "quiet vga=0x0346"
then you have to run> sudo update-grub
reboot the machine
-
you may want to add that this change won't take effect until after a reboot. Mar 29, 2011 at 16:20
-
-
1the try some dc values: 792 for 1024x768 res. or 795 for 1280x1024 more: en.wikipedia.org/wiki/VESA_BIOS_Extensions– jetMar 29, 2011 at 17:52
After you set up your virtual environment, you will need to install some specific hardware. If you are virtualizing a windows environment there should be an icon in the system tray on, bottom right.
Under linux, I'm not sure where it would show up but you should see those as well.
Without the extra install, you won't be able to get the full screen.
-
I'm pretty sure by "virtual terminal" he means the TTYs you can access by hitting ctrl-alt-F1.– djeikybMar 29, 2011 at 11:30
-
ah you're right. There is the word terminal in there but I'm not sure yet because then opening terminal and maximizing the window solves that very easily. Mar 29, 2011 at 11:33
-
if you boot without graphics, you're dumped in a text only interface, no Gnome or any other graphical window manager. This can also be reached by pressing
ctl+alt+F1
(try it, you can switch back withalt+F7
). My default VT res is 1280x1024. @jumpnett wants to change it without rebooting.– djeikybMar 29, 2011 at 11:38 -
I had no clue at all those were called Virtual terminals oO. I know about them though. Thanks for clarification. They do look huge and ugly. I didn't even think I could change their resolution. Where do you do that? Mar 29, 2011 at 12:38
-
1