Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Grub2 and framebuffer

Linux Kernel, Network, and Services configuration.
Message
Author
Jack450
Posts: 6
Joined: 2010-01-16 18:33

Re: Grub2 and framebuffer

#21 Post by Jack450 »

Wow that was quick, don't go anymore I'm going to test this XD

Jack450
Posts: 6
Joined: 2010-01-16 18:33

Re: Grub2 and framebuffer

#22 Post by Jack450 »

Damn, it didn't change anything I'm still getting the same result.

Jack450
Posts: 6
Joined: 2010-01-16 18:33

Re: Grub2 and framebuffer

#23 Post by Jack450 »

dbbolton wrote:
Jack450 wrote:Can anyone help me with this problem too I've follow the steps to getting the Virtual Console to change resolution but I'm still getting the same low resolution. My grub changed to 1440x900 but not the Console when I press Ctrl+Alt+F2, does anyone know what I'm doing wrong?
Look for errors like I did

Code: Select all

grep -n GFX /etc/default/grub

grep -n GFX /etc/grub.d/00_header
You should see something like

Code: Select all

16:GRUB_GFXMODE=1024x768x32
17:GRUB_GFXPAYLOAD=1024x768x32
and

Code: Select all

38:if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1024x768x32 ; fi
39:if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=1024x768x32 ; fi
81:  set gfxmode=${GRUB_GFXMODE}
82:  set gfxpayload=${GRUB_GFXPAYLOAD}
only "1440x900x32" in your case.
Hmm When I type "grep -n GFX /etc/grub.d/00_header" I'm missing "82: set gfxpayload=${GRUB_GFXPAYLOAD}".

User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: Grub2 and framebuffer

#24 Post by dbbolton »

Jack450 wrote:Hmm When I type "grep -n GFX /etc/grub.d/00_header" I'm missing "82: set gfxpayload=${GRUB_GFXPAYLOAD}".
Then that's your problem.
jheaton5 wrote:then in /etc/grub.d/00_header find the line:

Code: Select all

if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1440x900x32 ; fi
then insert

Code: Select all

if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=1440X900x32 ; fi
below it.
In the same file, but farther down the page, find the line:

Code: Select all

set gfxmode=${GRUB_GFXMODE}
insert below that line:

Code: Select all

set gfxpayload=${GRUB_GFXPAYLOAD}
GitHub | zsh docs in Letter PDF
Telemachus wrote:Put down the CGI.

Jack450
Posts: 6
Joined: 2010-01-16 18:33

Re: Grub2 and framebuffer

#25 Post by Jack450 »

dbbolton wrote:
Jack450 wrote:Hmm When I type "grep -n GFX /etc/grub.d/00_header" I'm missing "82: set gfxpayload=${GRUB_GFXPAYLOAD}".
Then that's your problem.
jheaton5 wrote:then in /etc/grub.d/00_header find the line:

Code: Select all

if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1440x900x32 ; fi
then insert

Code: Select all

if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=1440X900x32 ; fi
below it.
In the same file, but farther down the page, find the line:

Code: Select all

set gfxmode=${GRUB_GFXMODE}
insert below that line:

Code: Select all

set gfxpayload=${GRUB_GFXPAYLOAD}
I switched it out but it didn't work either.

User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: Grub2 and framebuffer

#26 Post by dbbolton »

Jack450 wrote:I switched it out but it didn't work either.
You don't need to switch anything. You need to add the line.
GitHub | zsh docs in Letter PDF
Telemachus wrote:Put down the CGI.

Jack450
Posts: 6
Joined: 2010-01-16 18:33

Re: Grub2 and framebuffer

#27 Post by Jack450 »

dbbolton wrote:
Jack450 wrote:I switched it out but it didn't work either.
You don't need to switch anything. You need to add the line.
It was first "set gfxpayload=${GRUB_GFXPAYLOAD}"
but I followed what Raffles10 said and switched it to
"set gfxpayload=keep" either way both do not change the resolution on the Virtual Console.

User avatar
un1xer
Posts: 76
Joined: 2007-03-14 22:03
Location: 127.0.0.1

Re: Grub2 and framebuffer

#28 Post by un1xer »

Hi, sorry for waking this old thread but it seemed there was no point in starting a new one.
So, unfortunately none of the above works for me, I used to set my FB resolution by editing
/boo/grub/grub.cfg with:

Code: Select all

set gfxpayload=1680x1050x32
now it does't seem to work any more.
The changelog of the latest update v1.98-1 of grub-pc says that it now has support GRUB_GFXPAYLOAD_LINUX, how is one supposed to use this?
Thanks for any help you can provide on this.
Debian Squeeze/Sid mixed system
2.6.32 amd64

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#29 Post by llivv »

.
Last edited by llivv on 2019-04-27 13:17, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
un1xer
Posts: 76
Joined: 2007-03-14 22:03
Location: 127.0.0.1

Re: Grub2 and framebuffer

#30 Post by un1xer »

All I get is a black screen, after gdm starts and doing Ctrl+Alt+F1 gets me a also a black screen, sometimes there is the Debian boot loader logo all distorted.
So, X starts fine, is just the frame buffer that gets unusable.
If I set al to defaults I get the normal 640x480 frame buffer. :(
Debian Squeeze/Sid mixed system
2.6.32 amd64

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#31 Post by llivv »

.
Last edited by llivv on 2019-04-27 13:17, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
un1xer
Posts: 76
Joined: 2007-03-14 22:03
Location: 127.0.0.1

Re: Grub2 and framebuffer

#32 Post by un1xer »

Are you using them your self?
My graphics card is an nvidia 9300gs on a laptop.
Debian Squeeze/Sid mixed system
2.6.32 amd64

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#33 Post by llivv »

.
Last edited by llivv on 2019-04-27 13:17, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
m_l
Posts: 58
Joined: 2008-04-27 11:28

Re: Grub2 and framebuffer

#34 Post by m_l »

After a recent update to grub-pc [1.98-1] you can set the framebuffer resolution with the following option in:

/etc/default/grub:

Code: Select all

GRUB_GFXPAYLOAD_LINUX=tty/console-resolution
Just use the resolution you will like to use of course, for example:

Code: Select all

 # Set the framebuffer resolution; used on tty/console [text consoles]
GRUB_GFXPAYLOAD_LINUX=1920x1200
After editing, make sure to create a new /boot/grub/grub.cfg to use the option above:

Code: Select all

# update-grub2
So if you are using this version or newer, the previous steps are not needed any more. Just do the above.

User avatar
m_l
Posts: 58
Joined: 2008-04-27 11:28

Re: Grub2 and framebuffer

#35 Post by m_l »

When I used the nvidia driver, installed using the wiki instructions. I had to add the following to /etc/modules for framebuffer to work right:

Code: Select all

nvidiafb
I now use the nv driver and the above is still there, not sure if it's needed with nv. But I still have nvidiafb there and all works fine.

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: Grub2 and framebuffer

#36 Post by bugsbunny »

m_l wrote:When I used the nvidia driver, installed using the wiki instructions. I had to add the following to /etc/modules for framebuffer to work right:

Code: Select all

nvidiafb
I now use the nv driver and the above is still there, not sure if it's needed with nv. But I still have nvidiafb there and all works fine.
I don't know other details of what you were doing - but this is just wrong. nvidiafb is incompatible with the nvidia driver so one or the other wasn't loading.

User avatar
m_l
Posts: 58
Joined: 2008-04-27 11:28

Re: Grub2 and framebuffer

#37 Post by m_l »

bugsbunny wrote:
m_l wrote:When I used the nvidia driver, installed using the wiki instructions. I had to add the following to /etc/modules for framebuffer to work right:

Code: Select all

nvidiafb
I now use the nv driver and the above is still there, not sure if it's needed with nv. But I still have nvidiafb there and all works fine.
I don't know other details of what you were doing - but this is just wrong. nvidiafb is incompatible with the nvidia driver so one or the other wasn't loading.
I did nothing special just followed the wiki on using nvidia and was working fine. It just worked for my system using nvidiafb. Don't use nvidia driver anymore so I can't say what was the cause. Just reporting what worked for me.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#38 Post by llivv »

.
Last edited by llivv on 2019-04-27 13:18, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
un1xer
Posts: 76
Joined: 2007-03-14 22:03
Location: 127.0.0.1

Re: Grub2 and framebuffer

#39 Post by un1xer »

llivv wrote:Yes I'm using them.
But I have older intel desktop hardware and even older intel laptop hardware....
So I'm only able to offer hints as to what might be going on with your nvidia setup...especially if you're using the nvidia kernel...
And updates are coming so fast that what I posted yesterday, might not be relevant today...
or for your hardware, as that data trickles in....
Well, turns out that my self compiled kernel was the culprit.
Just installed 2.6.23-3-amd64 Debian stock kernel and using

Code: Select all

GRUB_GFXPAYLOAD_LINUX=1680x1050
on /etc/default/grub, my tty frame buffer works as expected.

Thank you all for your help.
Debian Squeeze/Sid mixed system
2.6.32 amd64

User avatar
Raffles10
Posts: 191
Joined: 2008-12-09 16:36
Location: London, UK

Re: Grub2 and framebuffer

#40 Post by Raffles10 »

un1xer wrote:
llivv wrote:Yes I'm using them.
But I have older intel desktop hardware and even older intel laptop hardware....
So I'm only able to offer hints as to what might be going on with your nvidia setup...especially if you're using the nvidia kernel...
And updates are coming so fast that what I posted yesterday, might not be relevant today...
or for your hardware, as that data trickles in....
Well, turns out that my self compiled kernel was the culprit.
Just installed 2.6.23-3-amd64 Debian stock kernel and using

Code: Select all

GRUB_GFXPAYLOAD_LINUX=1680x1050
on /etc/default/grub, my tty frame buffer works as expected.

Thank you all for your help.
This doesn't work for me. Since the recent upgrade to 2.6.32.3-amd64 the framebuffer has been broken, I can't set anything except the default. The old method of setting it in /etc/grub.d/00_header & /etc/defaults/grub just leaves me with a blank screen, any workarounds would be appreciated. This is a very annoying issue.
Debian Squeeze + KDE 4.4.4 + AMD Athlon™ 64 X2 Dual Core Processor 6000 + nVidia GeForce 8600

Post Reply