------- radeon_mergedfb.c ------- --- /tmp/geta502 Mon Jun 19 13:36:46 2006 +++ /tmp/getb502 Mon Jun 19 13:36:46 2006 @@ -209,6 +209,12 @@ mode->VSyncEnd += dy; mode->VTotal += dy; + /* This is needed for not generating negative refesh rates in xrandr with the + faked DotClock below + */ + if (!(mode->VRefresh)) + mode->VRefresh = mode->Clock * 1000.0 / mode->HTotal / mode->VTotal + 0.5; + /* Provide a sophisticated fake DotClock in order to trick the vidmode * extension to allow selecting among a number of modes whose merged result * looks identical but consists of different modes for CRT1 and CRT2