[kde-linux] Re: Request for multiple monitor xorg.conf files?

Duncan 1i5t5.duncan at cox.net
Tue Jun 28 11:00:18 UTC 2011


Mark Knecht posted on Mon, 27 Jun 2011 09:30:38 -0700 as excerpted:

> If anyone has a few minutes to forward me a working xorg.conf file for
> your dual (or more) monitor setup I'd very appreciate it.

OK, try #3.  It turns out that the text post that I had intended to
accompany those files, and that I was waiting to see if it showed up,
didn't post after all, because the current implementation only posts the
binaries and throws away the text when it has files to post.

Luckily I saved the message to my drafts folder before posting, or I'd be
rewriting the entire thing for a THIRD time now, instead of just revising
it a bit from the second try.

But I'm thru playing with my new toy for now, and this time will simply
include the files as inline text.  They're short enough to do so and
anyone regularly following this list is surely used to 200+ line posts
from me by now.


I actually don't use an xorg.conf file per se any more, using separate
section files in /etc/X11/xorg.conf.d/ instead.  And those by themselves
don't form a complete xorg.conf file in its traditional sense, either, as
they only cover sections that I need to customize from the built-in xorg
defaults, which remain quite appropriate for most sections, needing no
changes and therefore no repeats simply listing the builtin defaults.

FWIW, radeon hd4650 card, rv730 chip, native kernel/mesa/xorg drivers,
classic not gallium as gallium crashes here (probably doesn't properly
support agp), kms not ums, which I've not used since the kms option made
its way into the main kernel.

So it's those xorg.conf.d files that I'll post.  There are five of them.
The scheme I use denotes my custom files using my initials (jed), since
certain packages, the syntouch driver package I use on my netbook (but not
on my workstation with the multiple monitors config, so its file won't be
posted), for instance, drop their own files in this dir as well.  So all
five files are of the pattern jed.*.conf.  In alpha order:

jed.agp.conf

Section "Device"
	Identifier	"AGP"
	Driver		"Radeon"
	Option		"Monitor-DVI-0"		"D0"
	Option		"Monitor-DVI-1"		"D1"
	Option		"Monitor-DIN"		"offdev.din"
	Option		"ColorTiling"		"On"
	Option		"SwapbuffersWait"	"Off"
	Option		"EXAVSync"		"Off"
EndSection


The above file contains my device section.  It's named agp since that's the
bus my graphics card is located on.  If I had more graphics cards, as I did
long ago, their configs might be in jed.pci.conf, since they'd be on the
pci buses.

This section is critical to a modern multi-monitor, single graphics card,
config.  Other than the section and endsection lines, there are eight
lines, identifier (considered mandatory tho as this is the only device
section, it's picked up automatically by the default screen and
serverlayout sections, not posted as they're xorg-builtin), the driver
line (radeon, as mentioned), three option lines matching the card outputs
to the associated monitor sections, and three driver-specific option
lines.

jed.modes.conf

# ViewSonic	VX2250
# Specs		Min	Max
# Vert		50	75
# Horiz		24	82
# PxClk			210

Section "Modes"
	Identifier	"ExtraModes"

	# from the cvt application

	# from http://old.koalateam.com/cgi-bin/nph-colas-modelines
	#ModeLin "name"		clock	width	x	x	x	height	y	y	y	#Refresh
	ModeLine "1280x720"	98.49	1280	1336	1616	1728	720	722	734	760	#75Hz
	ModeLine "1024x576"	65.04	1024	1072	1312	1408	576	578	590	616	#75Hz
	ModeLine "960x540"	64.8	960	1024	1320	1440	540	543	561	600	#75Hz
	ModeLine "800x450"	41.16	800	840	1040	1120	450	452	464	490	#75Hz
	ModeLine "640x360"	26.88	640	672	832	896	360	362	374	400	#75Hz

	# from http://xtiming.sourceforge.net/cgi-bin/xtiming.pl

EndSection


The above file is simply an extra modes section, containing additional
modelines giving me more resolution options at the low end.  It has little
to do with multi-monitors (except to note that several monitor sections can
reference it, both my active ones do as the monitors are the same make and
model) so is of little interest here except for completeness.  Never-
the-less, it contains comments referencing three separate ways to generate
modelines should you want more, and the timing specs needed to plug into
the modeline generators to get something actually usable for my monitors.
So it could be of interest to anyone looking for that sort of info.

jed.monitors.conf

Section "Monitor"
	Identifier	"D0"
	Option		"Below"			"D1"
	Gamma		1.35
	UseModes	"ExtraModes"
EndSection
Section "Monitor"
	Identifier	"D1"
	Gamma		1.35
	UseModes	"ExtraModes"
EndSection


This one contains the monitors sections for my two active monitors.  They're
identical except for the relative positioning option in one.  They're
important for a modern multi-monitor setup, but only because they're
referenced by name by the device section and due to the positioning
option.  Otherwise they're pretty standard, and indeed, they only contain
three other lines, mandatory id, optional gamma, optional usemodes
reference to the modes section found in the jed.modes.conf file listed
above.

jed.offdev.conf

Section "InputClass"
        Identifier	"offdev.mouse"
        MatchIsPointer	"1"
        MatchDevicePath	"/dev/input/mouse*|/dev/input/mice"
	Option		"Ignore"
EndSection
Section "InputClass"
        Identifier	"offdev.spkr"
        MatchProduct	"PC Speaker"
        MatchDevicePath	"/dev/input/event*"
        Option		"Ignore"
EndSection
Section "Monitor"
	Identifier	"offdev.din"
	Option		"Ignore"
EndSection


This contains specifically deactivated devices, two inputclass sections
disabling mouse/mice (since I use the evdev driver instead of the legacy
mouse driver, thus /dev/input/event* devices instead of /dev/input/mouse*
and /dev/input/mice) and the pc speaker device (presumably an input device
since in some cases it could act as a mic), and one monitor section,
disabling the unused s-video din output.  These aren't really necessary
but they do shutup the xorg log complaints I otherwise see when no driver
can be matched to them.  So this files unimportant for the current
discussion and only included for completeness.

jed.serverflags.conf

Section "ServerFlags"
	Option		"DontZap"	"0"
EndSection


Unsurprisingly, this contains the serverflags section.  There's only one
difference from the defaults and thus only one line other than the
section/endsection lines, reenabling the traditional ctrl-alt-backspace
xorg zapper that's now disabled by default.  As such, it's unimportant for
the current discussion, but someone frustrated by the castrated modern
functionality and thus wishing to know how to do that might find it
useful.


So the important files for the current discussion are jed.agp.conf and
jed.monitors.conf.  The others are only for the curious and for
completeness.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




More information about the kde-linux mailing list