Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
How can I increase the resolution of the console? I know how to do it in X but no idea on how to do it on the console...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064

    Increasing the resolution of the console


    How can I increase the resolution of the console?

    I know how to do it in X but no idea on how to do it on the console
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  2. #2
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    You must append a
    Code:
    vga=*
    to the kernel line in grub.

    * will equal a set of numbers that will correspond to your desired resolution. Refer to this page for clarification and instructions.
    http://www.tldp.org/HOWTO/Framebuffer-HOWTO-5.html

    Those instructions are for LILO it looks like, but it is actually much simpler in grub. All you really need to pay attention to is the graph in the middle of the page to get the number to substitute for *.

    Linux User #376741
    Code is Poetry

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Right. As a simple example, to get a 1024x768 @ 60 Hz, my GRUB boot statement looks like:
    Code:
    kernel (hd0,0)/vmlinuz video=vesafb:mtrr:3,ywrap vga=0x318
    You do need to make sure that you enable framebuffer support in the kernel. You will want to use vesafb-tng. If you have a nVidia card, do NOT enable the nVidia framebuffer: it is incompatibile with the nVidia drivers.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    Quote Originally Posted by Cabhan
    Right. As a simple example, to get a 1024x768 @ 60 Hz, my GRUB boot statement looks like:
    Code:
    kernel (hd0,0)/vmlinuz video=vesafb:mtrr:3,ywrap vga=0x318
    You do need to make sure that you enable framebuffer support in the kernel. You will want to use vesafb-tng. If you have a nVidia card, do NOT enable the nVidia framebuffer: it is incompatibile with the nVidia drivers.
    If the user isn't using Gentoo then he probably won't have the vesafb-tng driver to use unless he has patched (with the bootsplash patch) and built his own kernel (which is possible) but it wasn't specified.

    The vga statement will work with all of your vanilla kernels though. Just put it as a statement at the end of the kernel line.

    For reference, my kernel line in grub:
    Code:
    kernel /boot/kernel-2.6.17-gentoo-r7 root=/dev/hda3 video=vesafb:ywrap,mtrr,1280x1024-24@60 splash=silent,fadein,theme:NewLinux quiet CONSOLE=/dev/tty1
    Which to get the correct resolution with a vanilla kernel (instead of gentoo-sources) I would put
    Code:
    vga=795
    for my 1280x1024@24 resolution.

    So without bootsplash, and just a simplified kernel line, the end result would be:
    Code:
    kernel /boot/kernel-2.6.17-gentoo-r7 root=/dev/hda3 vga=795
    I have tried that on debian and some other distros and it works fine.

    Linux User #376741
    Code is Poetry

  6. #5
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Ah, good catch, gruven.

    Right: but as you can see, the video statement is fairly similar. The actual documentation on this line is listed in:

    /usr/src/linux/Documentation/fb/vesafb.txt

  7. #6
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    Quote Originally Posted by Cabhan
    Ah, good catch, gruven.

    Right: but as you can see, the video statement is fairly similar. The actual documentation on this line is listed in:

    /usr/src/linux/Documentation/fb/vesafb.txt
    ^^^^
    Thank you, I didn't know it was explained there.

    Also, I didn't know that other distros didn't have vesafb-tng until I tried to get bootsplash to work in debian. I then found out that I needed the vesafb-tng patch and that it wasn't included in the kernel.

    Linux User #376741
    Code is Poetry

  8. #7
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    I don't want to recompile my kernel again! That would be the fifth time and now everything is working fine.

    I'll try to do that when i get some spare time.

    Thanks
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  9. #8
    Linux Enthusiast gruven's Avatar
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    541
    Quote Originally Posted by Juan Pablo
    I don't want to recompile my kernel again! That would be the fifth time and now everything is working fine.

    I'll try to do that when i get some spare time.

    Thanks
    You may not have to. Just try appending the kernel line with the vga statement first. You may have a framebuffer enabled and not know it.

    Linux User #376741
    Code is Poetry

  10. #9
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    I one of those kernel compilations I included the nvidia framebuffer and my nvidia drivers didn't work but the console had a great look.

    Is the vesafb included by default when you type make xconfig?
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  11. #10
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    I think i'll recompile, forgot to add reiserfs support!
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •