[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"full featured" XF86Config-4 for ATI M6



Hello !

Here is my current XF86Config-4. It features different layouts
allowing single head, dual head, cloning mode, etc. and you have to
choose one (by default, this is the first one).  To choose a layout,
just add '-layout "Dual"' (for example) to the X server (not to startx
if you use startx : "startx -- -layout ...").

For this to work on an iBook 2 with ATI M6 (not tested with M7), you
need this package :
 hi  xserver-xfree86-dri-trunk   2003.08.07-1                The XFree86 X server [DRI trunk]

It is available with the following lines in your sources.list :

deb http://people.debian.org/~daenzer/dri-trunk-sid/ ./
deb-src http://people.debian.org/~daenzer/dri-trunk-sid/ ./

Here are the different layouts (from the simplier to the more complex
one) :

 - Single. This a single headed layout, just the more usual one. Only
   the internal flat panel is used. Since DDC is broken with a M6, you
   need to add a modeline (you can get it with fbset -x on a
   console). This layout uses the framebuffer device.
 - Cloning. This layout provides two heads in cloning mode. The
   overlay is on the external head (playing video on the flat panel is
   not possible using XVideo, it will only be displayed on the
   external screen). Since DDC is broken, MonitorLayout and following
   options are used to tell what kind of external screen is
   attached. The current options are suitable for any screen able to
   do 1024x768 (and so for a videoprojector). But the refresh rate is
   very low (60 Hz), so it is not very comfortable to work with. This
   mode is aimed at presentation with a videoprojector. The
   framebuffer is not used any more.
 - Dual. This layout provides true dual head mode. XVideo extension
   can be used on the internal panel _and_ on the external screen (not
   both at the same time). DRI is disabled on both display (don't know
   if there is a work around). Again, the refresh rate is low since I
   use this mode for presentation with a videoprojector too.
 - Dual 1280x1024. Same as above, except the second head uses
   1280x1024 mode. You have to provide a correct modeline (this one is
   for an Eizo Flexsan L685 in analog mode). See this URL to generate
   such a modeline :
      <URL:http://koala.ilog.fr/cgi-bin/nph-colas-modelines>
   You can use any resolution you want, even 1024x768 at higher rates
   than in the precedent setup (just name it 1024x768hi for example).

You may add more layouts. I am working on a snippet of code to allow
to select the wanted layout from GDM.

Make sure that the /etc/X11/XF86Config-4 is not
managed by debconf (removes the lines about debconf at the beginning),
otherwise, your changes will be wiped out at next upgrade.

And, thanks to Michel Daenzer and other XFree86 developers. :)

Section "ServerFlags"
	Option	     "BlankTime"	"3"
	Option	     "StandbyTime"	"7"
	Option	     "SuspendTime"	"10"
	Option	     "OffTime"		"15"
EndSection

Section "Files"
#	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
#	Load	"freetype"
        Load    "xtt"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Laptop Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"macintosh"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"ATI M6 Alone"
	Driver		"ati"
        Option     	"AGPMode" "1"
        Option     	"UseFBDev" "true"
	VendorName  	"ATI"
	BoardName   	"Radeon Mobility M6 LY"
	BusID       	"PCI:0:16:0"
EndSection

Section "Device"
	Identifier	"ATI M6 Cloning"
	Driver		"ati"
        Option     	"AGPMode" "1"
        Option     	"UseFBDev" "false"
	Option		"MonitorLayout" "LVDS,CRT"
	Option		"CloneHSync"	"30.0-100.0"
	Option		"CloneVRefresh"	"50.0-160.0"
	Option		"OverlayOnCRTC2"
	VendorName  	"ATI"
	BoardName   	"Radeon Mobility M6 LY"
	BusID       	"PCI:0:16:0"
	Screen 0
EndSection

Section "Device"
	Identifier	"ATI M6 Internal"
	Driver		"ati"
        Option     	"AGPMode" "1"
        Option     	"UseFBDev" "false"
	Option		"MonitorLayout" "LVDS,CRT"
	VendorName  	"ATI"
	BoardName   	"Radeon Mobility M6 LY"
	BusID       	"PCI:0:16:0"
	Screen 0
EndSection

Section "Device"
	Identifier	"ATI M6 External"
	Driver		"ati"
        Option     	"AGPMode" "1"
        Option     	"UseFBDev" "false"
	Option		"MonitorLayout" "LVDS,CRT"
	VendorName  	"ATI"
	BoardName   	"Radeon Mobility M6 LY"
	BusID       	"PCI:0:16:0"
	Screen 1
EndSection

Section "Monitor"
	Identifier	"IDFP"
	HorizSync       30-100
	VertRefresh     50-160
	Option		"DPMS"

Mode "1024x768"
   # D: 65.003 MHz, H: 48.365 kHz, V: 60.006 Hz
   DotClock 65.004
   HTimings 1024 1048 1184 1344
   VTimings 768 771 777 806
   Flags    "-HSync" "-VSync"    # Warning: XFree86 doesn't support accel
EndMode
EndSection

Section "Monitor"
	Identifier	"CRT"
	HorizSync       30-100
	VertRefresh     50-160
	Option		"DPMS"

Mode "1024x768"
   # D: 65.003 MHz, H: 48.365 kHz, V: 60.006 Hz
   DotClock 65.004
   HTimings 1024 1048 1184 1344
   VTimings 768 771 777 806
   Flags    "-HSync" "-VSync"    # Warning: XFree86 doesn't support accel
EndMode

Mode "1280x1024"
   # D: 134.21 MHz, H: ???? kHz, V: 73 Hz
   DotClock 134.21
   HTimings 1280 1336 1616 1728
   VTimings 1024 1026 1038 1064
   Flags    "-HSync" "-VSync"    # Warning: XFree86 doesn't support accel
EndMode
EndSection

Section "Screen"
	Identifier	"Screen Alone On DFP"
	Device		"ATI M6 Alone"
	Monitor		"IDFP"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
		Virtual		1024 768
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Screen On DFP"
	Device		"ATI M6 Internal"
	Monitor		"IDFP"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
		Virtual		1024 768
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Screen On CRT"
	Device		"ATI M6 External"
	Monitor		"CRT"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "640x480"
		Virtual		1024 768
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Screen On CRT 1280x1024"
	Device		"ATI M6 External"
	Monitor		"CRT"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1024x768" "800x600" "640x480"
		Virtual		1280 1024
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Dual 1280x1024"
	Screen		"Screen On DFP"
	Screen		"Screen On CRT 1280x1024" LeftOf "Screen On DFP"
	InputDevice	"Laptop Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "ServerLayout"
	Identifier	"Dual"
	Screen		"Screen On DFP"
	Screen		"Screen On CRT" LeftOf "Screen On DFP"
	InputDevice	"Laptop Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "ServerLayout"
	Identifier	"Single"
	Screen		"Screen Alone On DFP"
	InputDevice	"Laptop Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "ServerLayout"
	Identifier	"Cloned"
	Screen		"Screen Alone On DFP"
	InputDevice	"Laptop Keyboard"
	InputDevice	"Configured Mouse"
EndSection


Section "DRI"
	Mode	0666
EndSection


-- 
BOFH excuse #256:
You need to install an RTFM interface.



Reply to: