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
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

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

Re: Grub2 and framebuffer

#41 Post by un1xer »

Raffles10 wrote: 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.
Have you tried to reinstall grub with all default config files and then use

Code: Select all

GRUB_GFXPAYLOAD_LINUX="resolution"
in /etc/default/grub?
Debian Squeeze/Sid mixed system
2.6.32 amd64

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

Re: Grub2 and framebuffer

#42 Post by bugsbunny »

try adding nomodeset to the kernel parameters

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

#43 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
Raffles10
Posts: 191
Joined: 2008-12-09 16:36
Location: London, UK

Re: Grub2 and framebuffer

#44 Post by Raffles10 »

un1xer wrote:Have you tried to reinstall grub with all default config files and then use

Code: Select all

GRUB_GFXPAYLOAD_LINUX="resolution"
in /etc/default/grub?
Yes. "GRUB_GFXPAYLOAD_LINUX=1440x900" Isn't recognized, I just get the default resolution.
bugsbunny wrote:try adding nomodeset to the kernel parameters
:?:
llivv wrote:Have you tried upgrading to the 2.6.32-4 kernel?

Yeah things have been moving around inside
xserver
grub-pc
kernel
libc
initramfs-tools
etc .....
it is sid, isn't it?
Err.....no. It's Squeeze.
Debian Squeeze + KDE 4.4.4 + AMD Athlon™ 64 X2 Dual Core Processor 6000 + nVidia GeForce 8600

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

#45 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.

emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: Grub2 and framebuffer

#46 Post by emariz »

I want to add that setting the line GRUB_GFXPAYLOAD_LINUX= in /etc/default/grub correctly sets the text console frame buffer (to one of those available in grub > vbeinfo) if the graphical terminal is in use. This is, the line GRUB_TERMINAL=console must be commented. It's contradictory that one must enable a graphical terminal to set a text terminal.
Anyway, I don't use this option because the supported resolutions don't have the same ratio of the X resolution, making the default one the most readable. Also, I seldom use virtual terminals (all bar one are disabled) and will use Plymouth as soon as it's available.

plnick
Posts: 1
Joined: 2010-04-03 09:14

Re: Grub2 and framebuffer

#47 Post by plnick »

I got the same problem with the gfxpayload set (resolution 1680x1050x32) and my self compiled kernel with new versions of grub2. After several compiled kernels (try and error) this works for me:
Setting

Code: Select all

CONFIG_FB_EFI
to yes in kernel config

greetings

plnick

Japser
Posts: 173
Joined: 2008-02-13 13:21

Re: Grub2 and framebuffer

#48 Post by Japser »

For the record, I got a good resolution with

GRUB_GFXMODE=1024x768
GRUB_GFXPAYLOAD_LINUX=1024x768

in /etc/default/grub ( and an update-grub )

the trick was to do

hwinfo --framebuffer

which revealed that I did not have 1280x800 as an option.

hth, --Japser.

hbrand
Posts: 5
Joined: 2010-04-10 22:16

Re: Grub2 and framebuffer

#49 Post by hbrand »

Don't know if this helps, but here's what I've done in "testing" to get my personal background image to load and
it seems to be immune to all upgrades I seen so far (and I upgrade daily just for fun :) ), etc.:
I found that /etc/grub.d/05_debian_theme sources /usr/share/desktop-base/grub_background.sh (if it exists)
I created that file with the following:

Code: Select all

#! /bin/bash -e
#
# My /boot/grub.d/05_debian_theme extension
#
WALLPAPER="/boot/grub/sunset.png"
COLOR_NORMAL="black/black"
COLOR_HIGHLIGHT="magenta/black"
GRUB_TERMINAL_OUTPUT="gfxterm"

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: Grub2 and framebuffer

#50 Post by oOarthurOo »

Gonna try this stuff later tonight, but I'm wondering if this allows us to set a image that is behind the boot messages for the duration of the boot. gfpayloadkeep passes the display settings, but will it also pass the background image to allow the boot messages to scroll over top?

I think the Debian logo with the text scrolling past would look rather nice on bootup.

Post Reply