Skip to contentSkip to conversation

Rivafb colors all messed up with 2.5.20-dj2.

DISCUSSION Miles Lane 2 participants 3 messages Jun 5, 2002 Framebuffer layer

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

For a long time, I have had messed up colors when I use rivafb.
In the past, just the penguin logo has been obviously messed up
(all purple). Now, all the colors are off. By running
"fbset -a 1600x1200-76" I am able to get the framebuffer colors
correctly set. Also, running this command gives me the desired refresh rate. I suspect I am using an incorrect boot parameter value. Can someone tell me what value to use
to get 1600x1200 @ 76Hz and 16-bit color?

From the kernel log:

rivafb: RIVA MTRR set to ON
Console: switching to colour frame buffer device 200x75
rivafb: PCI nVidia NV10 framebuffer ver 0.9.3 (GeForce-DDR, 32MB @ 0xE8000000)

"lspci -v" gives:

01:05.0 VGA compatible controller: nVidia Corporation GeForce 256 DDR (rev 10) (prog-if 00 [VGA])
Subsystem: VISIONTEK: Unknown device 000b
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at feaf0000 [disabled] [size=64K]
Capabilities: [60] Power Management version 1
Capabilities: [44] AGP version 2.0

My append= line includes "video=riva:1600x1200-16"

fbset -a (initial state at boot time with whacked colors):

mode "1600x1200-60"

    # D: 162.022 MHz, H: 75.010 kHz, V: 60.008 Hz
    geometry 1600 1200 1600 1200 16
    timings 6172 304 64 46 1 192 3
    hsync high
    vsync high
    accel true
    rgba 5/11,6/5,5/0,0/0

endmode

After running "fbset -a 1600x1200-76" (command gives desired state) I have:

mode "1600x1200-76"

    # D: 197.981 MHz, H: 95.183 kHz, V: 76.146 Hz
    geometry 1600 1200 1600 1200 8
    timings 5051 304 40 42 3 136 5
    accel true
    rgba 8/0,8/0,8/0,0/0

endmode

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

#1 lore raw
Quoted 8 lines · Miles Lane

For a long time, I have had messed up colors when I use rivafb. In the past, just the penguin logo has been obviously messed up (all purple). Now, all the colors are off. By running "fbset -a 1600x1200-76" I am able to get the framebuffer colors correctly set. Also, running this command gives me the desired refresh rate. I suspect I am using an incorrect boot parameter value. Can someone tell me what value to use to get 1600x1200 @ 76Hz and 16-bit color?

[...]

Quoted 1 line

My append= line includes "video=riva:1600x1200-16"

Modedb doesn't have a 1600x1200 76 Hz mode, but it does have 75 Hz. Please try `1600x1200@75-16' instead.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

author
#2 lore raw

2.5.20 + latest fbdev patch -- Rivafb appears to hang machine

In reply to Miles Lane

What happens is that when the rivafb driver is loaded, the video mode changes and the whole screen is covered with colored static which has areas that are primarily one or another color. It looks like the video mode is wrong. Note that with the same rivafb parameter value and running 2.5.20-dj2, I get a usable VT, but the colors are off.

I am booting with "video=riva:1600x1200-16"

This is an Athlon UP machine.

01:05.0 VGA compatible controller: nVidia Corporation GeForce 256 DDR (rev 10) (prog-if 00 [VGA])
Subsystem: VISIONTEK: Unknown device 000b
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at feaf0000 [disabled] [size=64K]
Capabilities: [60] Power Management version 1
Capabilities: [44] AGP version 2.0

Gnu C                  3.0.4
Gnu make               3.79.1
binutils               2.11.90.0.8
util-linux             2.11f
mount                  2.11g
modutils               2.4.14
e2fsprogs              1.26
reiserfsprogs          3.x.0j
pcmcia-cs              3.1.22
PPP                    2.4.1
isdn4k-utils           3.1pre1
Linux C Library        2.2.4
Dynamic linker (ldd)   2.2.4
Procps                 2.0.7
Net-tools              1.60
Console-tools          0.3.3
Sh-utils               2.0.11

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm