[Intel-gfx] Intel KMS and custom modelines?

David Härdeman david at hardeman.nu
Fri Sep 4 08:24:56 CEST 2009


I recently bought a HDMI capable receiver and now I have my Intel G45 
based HTPC connected through the receiver to my LCD tv using HDMI 
instead of a direct connection to the TV. This has brought loads of fun.

During X.org startup I experience the following problems:

a) Receiver off, tv off

No connected devices detected, x.org refuses to start (fixed by applying 
the patch from https://bugs.freedesktop.org/show_bug.cgi?id=14611). Is 
there any progress in getting that patch committed to the x.org git 
repo?

b) Receiver on, tv off

Receiver sends bogus edid information (a 1080i mode which the server 
seems to misinterpret as 1920x540), fixed by using a custom xorg.conf 
with sane modelines (attached).

Because of a) and b), I can't use kernel modesetting. Is there any way 
to force the use of a particular output (as in bug 14611) and a custom 
modeline with KMS?

-- 
David Härdeman
-------------- next part --------------
# xorg.conf (X.Org X Window System server configuration file)
#

Section "Device"
	Identifier	"Intel G45"
	Driver		"intel"
	Option		"DRI2" "true"
	Option          "AccelMethod" "UXA"
	Option		"ModeDebug" "true"
	Option		"IgnoreEDID" "true"
	Option		"monitor-HDMI-1" "HDMI TV"
	Option		"monitor-VGA" "Bogus"
EndSection

Section "Monitor"
	Identifier	"Bogus"
EndSection

Section "Monitor"
	Identifier	"HDMI TV"
	# 1920x1080p @ 50Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080p @ 60Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080p @ 24Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 24" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080p @ 23.976Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 23.976" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080i @ 50Hz (EIA/CEA-861B)
	Modeline "1920x1080 at 50i" 74.250 1920 2448 2492 2640 1080 1085 1095 1125 +hsync +vsync Interlace
	# 1920x1080i @ 60Hz (EIA/CEA-861B)
	Modeline "1920x1080 at 60i" 74.250 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
	# 1920x1080p @ 59.94Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 59.94" 148.350 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080i @ 59.94Hz (EIA/CEA-861B)
	Modeline "1920x1080 at 59.94i" 74.175 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
	# 1920x1080p @ 25Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 25" 74.250 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080p @ 29.97Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 29.97" 74.175 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	# 1920x1080p @ 30Hz (EIA/CEA-861B)
	ModeLine "1920x1080 at 30" 74.250 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	Option	"PreferredMode" "1920x1080 at 60"
	Option "enable" "true"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"HDMI TV"
	Device		"Intel G45"
	DefaultDepth  24
	SubSection "Display"
		Virtual 1920 1080
                Depth	24
		Modes "1920x1080 at 60" "1920x1080 at 50"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier "HDMI Layout"
	Screen "Default Screen"
EndSection



More information about the Intel-gfx mailing list