Framebuffer setting issue

Gregory <[email protected]> Thu, 2 Apr 2009 17:25:43 +0200 (CEST)
Newsgroups gmane.linux.fbdev.user
Message-ID <14116886.4644691238685943487.JavaMail.root@spooler2-g27.priv.proxad.net>
Hi dear list,

Hope everyone doing well...

I came to you about an issue that I'm facing... the fbset -i results are not the same as my grub.conf and fbsplashd and fbcondecor don't like that!!

let me explain:

1. My kernel parameters is the following: 
kernel /boot/kernel-2.6.27-gentoo-r7-v4 root=/dev/hdb3 panic=10 console=tty1 video=radeonfb:1024x768-32@60,mtrr:3,ywrap quiet ro splash=silent,theme:natural_gentoo

See that my fb is configured to use radeonfb in 1024x768, with 32Bpp @60 Hz... (Note that even with uvesafb, or vesafb with vga=0x318, the results are the same)

2. Here is my fbset -i:
mode "1280x1024-60"
    # D: 108.003 MHz, H: 63.983 kHz, V: 60.021 Hz
    geometry 1280 1024 1280 1024 8
    timings 9259 248 48 38 1 112 3
    hsync high
    vsync high
    rgba 8/0,8/0,8/0,0/0
endmode

Frame buffer device information:
    Name        : ATI Radeon 5964
    Address     : 0xd0000000
    Size        : 67108864
    Type        : PACKED PIXELS
    Visual      : PSEUDOCOLOR
    XPanStep    : 8
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 1280
    MMIO Address: 0xe4020000
    MMIO Size   : 16384
    Accelerator : Unknown (38)

You see that the resolution is not good and the RGBA not good too! It's not what the we should expect with my kernel parameters, right?

3. here is my workaround: "fbset -depth 32"
Without workaround: 
pym ~ # splash_manager -c set --tty=1 -t natural_gentoo
No 8bpp silent picture specified in the theme.
No 8bpp verbose picture specified in the theme.
No 8bpp silent picture specified in the theme.
/usr/bin/splash_manager: line 168:  5253 Segmentation fault      ${spl_decor} -c setpic -t "${theme}" --tty="${tty}"
FBIOCONDECOR_SETSTATE failed, error code 22.

With workaround:
pym ~ # fbset -depth 32
pym ~ # splash_manager -c set --tty=1 -t natural_gentoo

pym ~ #
pym ~ #
==> see? No Warning/errors messages...

and the fbset -i after workaround:
mode "1280x1024-60"
    # D: 108.003 MHz, H: 63.983 kHz, V: 60.021 Hz
    geometry 1280 1024 1280 1024 32
    timings 9259 248 48 38 1 112 3
    hsync high
    vsync high
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : ATI Radeon 5964
    Address     : 0xd0000000
    Size        : 67108864
    Type        : PACKED PIXELS
    Visual      : DIRECTCOLOR
    XPanStep    : 8
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 5120
    MMIO Address: 0xe4020000
    MMIO Size   : 16384
    Accelerator : Unknown (38)

See? The RGBA is good now!

So, where I'm wrong? How can I fix the problem? because my workaround could only be applied after booting, so no splash during boot ;(... it's ok for fbcondecor but... it's 50% of the solution...

Thanks a lot

--
- GreG

"Long days and pleasant nights, gunsliger"


------------------------------------------------------------------------------