Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: grub2 is in 1680x1050, but console frambuffer is still low-res

  1. #11
    Join Date
    Jan 2008
    Location
    new zealand
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Quote Originally Posted by Leppie View Post
    this is a sample piece of a xorg.conf:
    ..snip..
    did you ever run nvidia-xconfig?
    Thanks Leppie: not that I recall.

    However, I'm not clear on why I should be looking at xorg.conf when I am trying to sort out console resolution (X doesn't even need to be running)?

  2. #12
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Quote Originally Posted by miromiro View Post
    Thanks Leppie: not that I recall.

    However, I'm not clear on why I should be looking at xorg.conf when I am trying to sort out console resolution (X doesn't even need to be running)?
    did you not say that grub loads in the correct resolution and then x switches to a lower resolution? having looked at your xorg.conf, there's not much info for your card and monitor in there so it seems to me it's an x issue and not grub.
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

  3. #13
    Join Date
    Jan 2008
    Location
    new zealand
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    No - grub loads at correct resolution 1680x1050(as does X), but if I switch to TTY1-6 it displays at 1280x1060 - so the console resolution doesn't appear to persist beyond grub...

  4. #14
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Quote Originally Posted by miromiro View Post
    No - grub loads at correct resolution 1680x1050(as does X), but if I switch to TTY1-6 it displays at 1280x1060 - so the console resolution doesn't appear to persist beyond grub...
    i'm not sure which resolutions you are using, i've never seen 1280x1060, nor 1680x1050
    anyways, using the vga= kernel option you can set the frame buffer mode.
    i don't know the one for your card, but i found a nvidia code of 0x0369 for that resolution
    so open your grub defaults file with an editor:
    Code:
    gksudo gedit /etc/default/grub
    and change the following line to something like this:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="ro quiet splash vga=0x0369"
    of course you will have to check the resolution and the matching frame buffer code.

    then run update-grub:
    Code:
    sudo update-grub
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

  5. #15
    Join Date
    Jan 2008
    Location
    new zealand
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Thanks Leppie - that is the correct code (i was using it in my kernel line for versions up to 9.04).

    My understanding was that "vga=xxxx" was deprecated in Grub2 and we weren't supposed to use it anymore: so is this a "hack" to get around that?

    In any event, I'll try it this evening and see how it goes...
    Last edited by miromiro; January 27th, 2010 at 10:15 PM. Reason: typo

  6. #16
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Quote Originally Posted by miromiro View Post
    Thanks Leppie - that is the correct code (i was using it in my kernel line for versions up to 9.04).

    My understanding was that "vga=xxxx" was deprecated in Grub2 and we weren't supposed to use it anymore: so is this a "hack" to get around that?

    In any event, I'll try it this evening and see how it goes...
    i'm not sure, i don't have a nvidia card (so no "strange" resolutions).
    just try it, if it doesn't work remove it from the kernel options.
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

  7. #17
    Join Date
    Dec 2006
    Beans
    17

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Sorry guys, I've been really busy, but I've follow the thread from time to time.

    Quote Originally Posted by Leppie View Post
    i'm not sure, i don't have a nvidia card (so no "strange" resolutions).
    just try it, if it doesn't work remove it from the kernel options.
    the vga kernel command is deprecated for grub2. I have tried it and ubuntu just boots like it isn't there.

    This also brings us back to the first post in this thread, where I mentioned the role of fbcon and vesafb in booting with grub2 - people from most forums report getting the desired console resolution only with the ...payload=keep or whatever, does that mean somehow grub2 is able to replace fbcon (seems like it because grub2's resolution is right), did it interact with the ttys?

    When I have time I would want to try some combinations of working with/without the kernel modules, of course someone who has the time can try that and we'll appreciate it very much.

  8. #18
    Join Date
    Jan 2008
    Location
    new zealand
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    I can confirm adding the vga value to the GRUB_CMD_LINE has no effect - resolution is still very low.

    For reference, my full /etc/default/grub:
    Code:
    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT="10"
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="ro quiet splash vga=0x0369"
    GRUB_CMDLINE_LINUX="gfxpayload=true"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=1680x1050x24
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true
    
    # Uncomment to disable generation of recovery mode menu entrys
    #GRUB_DISABLE_LINUX_RECOVERY="true"

  9. #19
    Join Date
    Jan 2008
    Location
    new zealand
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    SOLVED
    This post has the secret ingredient:
    http://newyork.ubuntuforums.org/show...03&postcount=8

    The key is to use the vga value PLUS changing the entries in /etc/grub.d/10_linux from linux and initrd to linux16 and initrd16

    w00t!

  10. #20
    Join Date
    Jun 2009
    Location
    Open Linux Forums
    Beans
    2,710

    Re: grub2 is in 1680x1050, but console frambuffer is still low-res

    Quote Originally Posted by miromiro View Post
    SOLVED
    This post has the secret ingredient:
    http://newyork.ubuntuforums.org/show...03&postcount=8

    The key is to use the vga value PLUS changing the entries in /etc/grub.d/10_linux from linux and initrd to linux16 and initrd16

    w00t!
    out of curiosity, do you happen to know what these 2 options do exactly?
    Last edited by Leppie; January 28th, 2010 at 11:08 AM.
    I'm not antisocial. I'm just not user friendly...
    Open Linux Forums

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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