Thread (13 messages) 13 messages, 7 authors, 2002-11-21

Re: Status of radeonfb in 2.5?

From: Antonino Daplas <hidden>
Date: 2002-10-18 21:47:12

On Thu, 2002-10-17 at 04:55, Nicholas Wourms wrote:
B) Does anyone have a painless, yet precise way of 
generating modelines for fb.modes if you are using 
XFree-4.2?  I only ask because the XFree modelines are all 
determined by i2c DDC probing, thus there are none in the 
XF86Config file.  The modeline output captured in the log 
XFree.0.log is not the same output which modeline2fb 
expects.  Anyhow, I've tried using some of the information 
in the log, but I always get funky results.  I may be 
looking in the wrong place, but the documentation for both 
the fbdev kernel drivers and the X drivers are sorely out of 
date, so please excuse me if this is a question that has 
previously been answered.  I just need some formulae to 
convert values between what shows up in XFree.0.log when i2c 
DDC probes for the modelines and what needs to go in 
fb.modes.  Thanks in advance!
Not necessarily painless...

Given timings in X modeline format (you can generate with xvidtune):

"XRESxYRES"     MHZ   XACTIVE FP_X HSYNC BP_X    YACTIVE  FP_Y  VSYNC 
BP_Y +hsync +vsync

Then timings in fb.mode:

mode "XRESxYRES MHZ"
    # D: "MHZ, H: HorizSync kHz, V: VertRefresh Hz
    geometry xres yres vxres vyres bpp
    timings pixclock left right upper lower hsync vsync
    hsync high
    vsync high
endmode

where:

pixclock = 1000000/MHZ
left = BP_X - HSYNC
right = FP_X - XACTIVE
upper = BP_Y - VSYNC
lower = FP_Y - YACTIVE
hsync = HSYNC - FP_X
vsync = VSYNC - FP_Y

What you need to concentrate on is the timings field of fb.modes. This
also assumes that the driver actually reads the timings field.  Some
drivers disregard those values (considers only xres and yres) then
configure their own timings.

Tony



-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help