[ltp] problem with mergedfb on t40p - hsync and vrefresh out of range

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Fri, 20 Jan 2006 15:18:47 +0200


--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Thu, Jan 19, 2006 at 03:24:26PM -0500, Brad Langhorst wrote:
> I'm trying to get merged fb running on my t40p...

I have merged fb running on my T42.

> Anyway - the problem I'm having is that the external display reports
> that Hsync and Vrefresh are out of range (~53 and 50).
> I get that both from my LCD monitor (connected by VGA) and a CRT
> connected to same.

> Here is my config section:
> Section "Device"
>         Identifier      "ATI Technologies, Inc. Radeon Mobility 9000 M9
> (R250 Lf)"
>         Driver          "ati"
>         Screen          0
>         BusID           "PCI:1:0:0"
>         Option          "DynamicClocks" "On"
>         Option          "EnablePageFlip" "on"
>         Option          "EnableDepthMoves" "on"
>         Option          "AGPMode" "4"
> #       Option          "AGPFastWrite" "yes" #causes a serious system
> hang if enabled
>         Option          "RenderAccel" "on"
> #       Option          "MergedFB" "on"
>         Option          "CRT2Position" "RightOf"
>         Option          "CRT2Hsync" "30-60" #tried lots of these  -
> including commenting the whole line.
>         Option          "CRT2VRefresh" "60-75"
>         Option          "MetaModes"     "1400x1050-1024x768"
> 	#tried 1400x1050-640x480 too same problem
>         Option          "MergedNonRectangular"  "true"
> #       Option          "MonitorLayout" "LVDS, CRT"
> 	#tried LVDS, TMDS too
> #       Option          "IgnoreEDID" "true"

Did you try uncommenting IgnoreEDID?

> #       Option          "DDCMode" "true"
> EndSection

> here's the Xorg.0.log section that seems relevant.
> I don't know if those mode clock warnings are the source of my=20
> problem... but i can't seem to get rid of them.

> (II) RADEON(0): EDID data from the display on port 2---------------------=
--
> (II) RADEON(0): Manufacturer: PTS  Model: 614  Serial#: 5506
> (II) RADEON(0): Year: 2003  Week: 43
> (II) RADEON(0): EDID Version: 1.3
> (II) RADEON(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
> (II) RADEON(0): Sync:  Separate
> (II) RADEON(0): Max H-Image Size [cm]: horiz.: 28  vert.: 21
> (II) RADEON(0): Gamma: 1.80
> (II) RADEON(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
> (II) RADEON(0): First detailed timing not preferred mode in violation of
> standard!(II) RADEON(0): redX: 0.555 redY: 0.328   greenX: 0.296 greenY:
> 0.582
> (II) RADEON(0): blueX: 0.156 blueY: 0.132   whiteX: 0.310 whiteY: 0.330
> (II) RADEON(0): Supported VESA Video Modes:
> (II) RADEON(0): 720x400@70Hz
> (II) RADEON(0): 640x480@60Hz
> (II) RADEON(0): 640x480@72Hz
> (II) RADEON(0): 640x480@75Hz
> (II) RADEON(0): 800x600@60Hz
> (II) RADEON(0): 800x600@72Hz
> (II) RADEON(0): 800x600@75Hz
> (II) RADEON(0): 1024x768@60Hz
> (II) RADEON(0): 1024x768@70Hz
> (II) RADEON(0): 1024x768@75Hz
> (II) RADEON(0): Manufacturer's mask: 0
> (II) RADEON(0): Supported additional Video Mode:
> (II) RADEON(0): clock: 78.8 MHz   Image Size:  285 x 214 mm
> (II) RADEON(0): h_active: 1024  h_sync: 1040  h_sync_end 1136
> h_blank_end 1312 h_border: 0
> (II) RADEON(0): v_active: 768  v_sync: 769  v_sync_end 772 v_blanking:
> 800 v_border: 0
> (II) RADEON(0): Monitor name: PZ456
> (II) RADEON(0): Ranges: V min: 60  V max: 75 Hz, H min: 30  H max: 60
> kHz, PixClock max 80 MHz

In other words, the monitor definitely supports 1024x768.

> (II) RADEON(0): Validating CRTC2 modes for MergedFB ------------
> (II) RADEON(0): CRT2 Monitor: Using hsync range of 30.00-60.00 kHz
> (II) RADEON(0): CRT2 Monitor: Using vrefresh range of 60.00-75.00 Hz
> (II) RADEON(0): Clock range:  20.00 to 350.00 MHz
> (II) RADEON(0): Not using default mode "1024x768" (vrefresh out of range)
> (WW) (1024x768,CRT2 Monitor) mode clock 94.5MHz exceeds DDC maximum 80MHz
> (II) RADEON(0): Not using default mode "1024x768" (hsync out of range)
> (II) RADEON(0): Not using default mode "1024x768" (bad mode
> clock/interlace/doublescan)
> (II) RADEON(0): Not using default mode "1024x768" (bad mode
> clock/interlace/doublescan)
> (II) RADEON(0): Not using default mode "1024x768" (bad mode
> clock/interlace/doublescan)
> (II) RADEON(0): Total of 17 CRTC2 modes found for MergedFB------------
> (II) RADEON(0): Modes for CRT1: ********************

But X is unable to pick a working mode.

You might be able to solve this by providing a custom modeline.  You
have all the timings:

> (II) RADEON(0): clock: 78.8 MHz   Image Size:  285 x 214 mm
> (II) RADEON(0): h_active: 1024  h_sync: 1040  h_sync_end 1136
> h_blank_end 1312 h_border: 0
> (II) RADEON(0): v_active: 768  v_sync: 769  v_sync_end 772 v_blanking:
> 800 v_border: 0

This would translate to

  Modeline "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800

(this mode needs 60 kHz hsync (78.8*1000/1312) and 75 Hz vrefresh
(60*1000/800)).

Since with MergedFB there is no Monitor section for the second monitor,
I suppose this Modeline would go to the Modes section.

I have no idea if that will actually work, or not.  I'm out of my depth
here.

> (**) RADEON(0):  Default mode "1024x768": 85.0 MHz (scaled from 0.0
> MHz), 53.1 kHz, 50.0 Hz
> (II) RADEON(0): Modeline "1024x768"   84.96  1024 1472 1512 1600  768
> 1052 1053 1062(**) RADEON(0):  Default mode "1152x864": 85.0 MHz (scaled
> from 0.0 MHz), 53.1 kHz, 50.0 Hz
> (**) RADEON(0):  Default mode "1024x768": 78.8 MHz, 60.1 kHz, 75.1 Hz
> (II) RADEON(0): Modeline "1024x768"   78.80  1024 1040 1136 1312  768
> 769 772 800 +hsync +vsync

Hey, this is almost the same modeline.  Why is it rejected for CRT2?

> (**) RADEON(0):  Default mode "1024x768": 75.0 MHz, 56.5 kHz, 70.1 Hz

It fits within the hsync and vrefresh ranges, and the dot clock is not
too high.  I do not understand.

> (II) RADEON(0): Modeline "1024x768"   75.00  1024 1048 1184 1328  768
> 771 777 806 -hsync -vsync
> (**) RADEON(0):  Default mode "1024x768": 65.0 MHz, 48.4 kHz, 60.0 Hz
> (II) RADEON(0): Modeline "1024x768"   65.00  1024 1048 1184 1344  768
> 771 777 806 -hsync -vsync

Marius Gedminas
--=20
11. Are you at least tracking the number of users of retchmail?

As far as I know, retchmail has exactly three users.=20
	-- http://open.nit.ca/wiki/index.php?page=3DRetchMail

--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD0OM3kVdEXeem148RAr9XAJ9f8Y4lfdTvDk05IJZzJtsgJdFI4ACgid/d
gSaL3IIXFLVflHBn5P4tdbc=
=AZ20
-----END PGP SIGNATURE-----

--17pEHd4RhPHOinZp--