Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130842 - svgalib on nVidia GeForce MX 4000 is geting maximal VertRefresh wrong
Summary: svgalib on nVidia GeForce MX 4000 is geting maximal VertRefresh wrong
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 08:47 UTC by Honza
Modified: 2006-07-16 00:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Honza 2006-04-22 08:47:48 UTC
svgalib on nVidia GeForce MX 4000 is geting maximal VertRefresh wrong. My monitor can do 160Hz so I had 160Hz there (with GeForce 200MX). Now with GeForce MX 4000 svgalib sets 200Hz 512x384 mode unless I set it to lower value like 80Hz (then 140Hz is used).

svgalib 1.9.21 and svgalib 1.9.24 was tested.
Comment 1 Honza 2006-04-22 09:06:57 UTC
Update: it's also true about HorizSync. Only way to stop it from using 96kHz for 1072x600 (highest mode of vgatest available) was setting maximal horizsync to 47kHz ... (original value and limit of monitor is 95kHz).
Comment 2 Honza 2006-04-22 09:10:11 UTC
Just in case:
lspci -v:

00:00.0 Host bridge: VIA Technologies, Inc. K8T800Pro Host Bridge
        Subsystem: VIA Technologies, Inc. Unknown device 3282
        Flags: bus master, 66MHz, medium devsel, latency 8
        Memory at d0000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [80] AGP version 3.0
        Capabilities: [50] Power Management version 2
        Capabilities: [60] HyperTransport: Slave or Primary Interface
        Capabilities: [58] HyperTransport: Interrupt Discovery and Configuration

01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 4000 AGP 8x] (rev c1) (prog-if 00 [VGA])
        Subsystem: ASUSTeK Computer Inc. Unknown device 8193
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
        Memory at cc000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at cdee0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0
Comment 3 SpanKY gentoo-dev 2006-04-22 10:09:50 UTC
you'll have better luck if you try posting to the svgalib group upstream:
http://groups.google.com/group/svgalib
Comment 4 Honza 2006-04-22 10:32:47 UTC
Thanks for tip. This is how I think bugzilla should work - if you can't help, at least you know & tell who can.
Comment 5 Honza 2006-04-24 12:44:10 UTC
UPDATE: Its not only VertRefresh and HorizSync. Svgalib simply can't detect some frequency correctly and everything is double of what it thinks is setting. 
Recomended by developer: this is probably incorrect PLL frequency detection. You can add in the file svgalib-1.9.24/src/drivers/nv3.c in line 817:

PLL_INPUT_FREQ *= 2 ;

(end of recomend)
I suppose there should be some "if" around it, but don't know what and don't have enough cards to test. I hope developer HAVE enough cards (or reports of).
Comment 6 SpanKY gentoo-dev 2006-07-16 00:09:22 UTC
upstream's business