How can I change console shell's resolution?
By this I mean the shell when you Ctrl+Alt+F1.
I'm running Ubuntu 9.10, I thought this could be done by changing grub's menu.lst file by with grub2 I really don't know how to achieve this.
|
How can I change console shell's resolution? By this I mean the shell when you Ctrl+Alt+F1. |
|||||||||
|
|
Edit /boot/grub/grub.cfg Identify a block that looks like this (your current running kernel):
Edit the "linux ..." line and, at the end (after "quiet splash"), leave a blank and add something like "vga=773" or another code, depending on the resolution. Here is a list of codes for various resolutions. Reboot and the new resolution should be enabled. The provided link gives a list of modes on one particular system; with the 'hwinfo' utility you can generate a list of modes for your system as follows: hwinfo --framebuffer |
|||||||||||||
|
|
To add custom boot options to your boot linux from grub 2, you need to edit
find the line that reads
and change it to
if you know your exact vga= number is, then put that in instead of "ask" After you edit any of grubs files in /etc you should run
to apply the changes |
|||||
|
|
According this excellent howto http://harrison3001.blogspot.com/2009/09/grub-2-graphical-boot-tips-to-set.html it works for me on Ubuntu-Server-9.10. With the following additions in
Resolution can be found out via:
I read that x32 is a must. And modification of
(as you note GRUB_GFXMODE is the variable we set before through
(as you note the statement keep, obviously, keeps, what?, the resolution we set before through
then run |
||||
|
|
|
Sorry, vga=ask as well as similar to vga=796 does not work, at least not on my system (acer aspir 5532 laptop). Similar to vga=798 gives me a warning after the grub menu that goes by a bit to fast for me to read (probably in /var/logs somewhere), but it starts with "vga=798 is deprecated", then continues to boot. My vt's are then standard resolution (whatever that is, 800x640?). Giving it vga=ask gives me a "no longer supported" error after grub, "press any key to continue." Pressing a key gives me a "you have to load a kernel first" error and goes back to grub, after which it repeats. To get out of that I had to press "e" in grub and edit the arguments before booting. Guess I could have gone to recovery mode instead and edited /etc/default/grub then run update-grub. If I find something that works I'll post it here, morning the loss of /boot/grub/menu.lst all the while. |
|||||
|
|
Boot with the |
||||
|
|
|
try holding the shift key down while booting. when the menu appears press c for the commandline and then enter "vbeinfo" this will give you a list of supported resolutions for your videocard. It might be that the number representing what you want is there. on mine for example 1152x864x32 is 0x156 I am thinking this 156 number may be what it is looking for? |
|||
|
|
|
One way would be to switch back to Grub 1, if you can figure out how. It should be doable, because Karmic still supports Grub 1 for computers that upgrade from 9.04 and earlier versions. |
|||
|
|