xfce4 reverts to mirrored dislays

Polytropon freebsd at edvax.de
Sat Jan 20 11:56:45 UTC 2018

On Sat, 20 Jan 2018 12:19:14 +0100, Per olof Ljungmark wrote:
> FreeBSD 11.1-STABLE #0 r326044
> nvidia-driver-384.98
> xfce4-settings-4.12.1
> File
> .config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
> Problem
> I use a dual monitor setup with "<property name="X" type="int"
> value="1920"/>", ie. with the second monitor 1920px to the right
> On every monitor power down, xfce4 decides that they are mirrored
> instead and changes the file displays.xml to value="0" for the right
> monitor and the file is overwritten.
> Tried
> - Setting ownership to the above file to root
> - Set the propery <channel name="displays" version="1.0"> to "locked"
> - Applied this patch to xfce4-settings-4.12.1:
> https://bugzilla.xfce.org/show_bug.cgi?id=14096
> https://git.xfce.org/xfce/xfce4-settings/commit?id=e128126f5e32c1018854403bb846cb9d6a091bb0
> - "metamodes" "DP-2: nvidia-auto-select +0+0, DP-3: nvidia-auto-select
> +1920+0" in xorg.conf (ignored by xfce apparently)
> - nvidia-settings
> - nvidia-xconfig
> .xinitrc has just "/usr/local/bin/startxfce4"
> None of the above changes the behaviour and I am out of ideas how to fix.
> Are there other files I am unaware of that could override displays.xml?
> Thankful for any hints on the subject...

You should be able to set "hard-coded defaults" in xorg.conf
or, as it is done today, in a file in the /usr/local/etc/xorg.conf.d
subdirectory. I'm not using a dual-screen setup at the moment,
but I did with two 21" CRTs (4:3) on a nVidia GeForce GPU. Here
is an example from the /etc/X11/xorg.conf file that could offer
some inspiration:

Section "ServerLayout"
	Identifier	"Layout0"
	InputDevice	"Mouse0"		"CorePointer"
	InputDevice	"Keyboard0"		"CoreKeyboard"
	Option		"DontZap"		"false"
	Screen	0	"Screen0"		0 0
	Screen	1	"Screen1"	LeftOf 	"Screen0"
	Option		"Xinerama"		"on"

Section "ServerFlags"
	Option		"DontVTSwitch"		"false"
	Option		"DontZoom"		"false"
	Option		"Xinerama"		"true"
	Option		"AIGLX"			"true"

Section "Monitor"
	Identifier	"Monitor0"
	VendorName	"Eizo"
	ModelName	"FlexScan F980"
	HorizSync	30.0 - 137.0
	VertRefresh	50.0 - 160.0
	Option		"DPMS"			"false"
	DisplaySize	410 305

Section "Monitor"
	Identifier	"Monitor1"
	VendorName	"Eizo"
	ModelName	"FlexScan F77S"
	HorizSync	30.0 - 137.0
	VertRefresh	50.0 - 160.0
	Option		"DPMS"			"false"
	DisplaySize	410 305

Section "Device"
	Identifier	"Card0"
	Driver		"nvidia"
	VendorName	"nVidia Corporation"
	BoardName	"G73 [GeForce 7600 GS]"
	BusID		"PCI:2:0:0"
	Screen		0
	Option		"NvAGP"			"3"
	Option		"UseEdid"		"FALSE"
	Option		"UseEdidDpi"		"FALSE"
	Option		"DPI"			"96 x 96"

Section "Screen"
	Identifier	"Screen0"
	Device		"Card0"
	Monitor		"Monitor0"
	DefaultDepth	24
	SubSection "Display"
		Viewport	0 0
		Depth		24
		Visual		"TrueColor"
		Modes		"1400x1050" "1152x864" "1024x768" "800x600" "640x480" "320x240"
	Option		"TwinView"
	Option		"TwinViewOrientation"	"LeftOf"
	Option		"ConnectedMonitor"	"CRT, CRT"

You will need to experiment with those settings. As I said,
this stuff was written a long time ago, for very special
hardware... ;-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list