From owner-freebsd-questions@freebsd.org Sat Jan 20 11:56:45 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7981ECC7A8 for ; Sat, 20 Jan 2018 11:56:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59A2975EE0 for ; Sat, 20 Jan 2018 11:56:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.18.98]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.167]) with ESMTPA (Nemesis) id 0MRvfZ-1eEQ3A0P8L-00Ssn4; Sat, 20 Jan 2018 12:56:37 +0100 Date: Sat, 20 Jan 2018 12:56:36 +0100 From: Polytropon To: Per olof Ljungmark Cc: freebsd-questions@freebsd.org Subject: Re: xfce4 reverts to mirrored dislays Message-Id: <20180120125636.6ad88128.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:PjEQB5YDcvczwzqpcDu7U/iOuifzKq93M3Un837QDReQYNKYKM0 sOrlA4QLQmgnGuVuE8pXU6Aw8okjInHi+HCwwu5Mv2iiAeECz89KYSe55pzsH+H13rKztMD PXbVRCU3VRO6bur3TZUVQabKDNaa5mc8SiCCCSDN1k7LsQbXxdj6UN+MDlxvPRr9HUKN3Bg AhO+cYubqyDcJzQiuzHLA== X-UI-Out-Filterresults: notjunk:1;V01:K0:1N8zjMC7nGY=:NMCVvEoh/L59R46pxPGYYl 7vLAWiyG050DRxBW4MyBtRvnOuRp+Ggq1bhyXPpUtA66o1jfHpJApK7o2/6hBPMvYG9ASyFLb g+6m5zuAdEI/l0/r6mv20k7oOPasWxkSUgGkIigi6lfZ/+btOD/uYHXmZDJ87Cr9BQOGgyq56 LL/w0vfbqhRslfJYB12hMtt8Kt87D5Dvx44EBP9xEkaI93hBExAXqO5nG6JRTSy0oKz9Zl78R EX83sLiSdbDkLyrx1N9GkmBzuT5UyDU4941QuACN8qW4NIfNTqWL8JJyZB9cZVOFnUz2lKIqp hJEIXYqFBggW36M6IbFpIoCtGafFUW/ttATHKGI3WyBKRIsOMh7ngkCuciolt7GwRM6lbP73F l51BiCA2J2bj1tyc1tDDIVObseI2LDdbFOwlzZydajQXbEk4wWNslLogaN2+Hd6w/yJQd93M+ Wb633GNeSpcVJ+n8zb46GY/zCEp5f2v8NB9aKVHtanlSt4nriGlkLexBJxOGrKbNgKTHtaIrr xCWFz3opQ8kThlFYhNJlVBFUjbGCw7G/6pDqDh9LaIBC2Wq4KaAr0tc7QxXci/EIBt5DTzXgQ 45jyf7/Z1+4/sPjdyNreDou2zJKRGqfKSquQ3R49vBD4RkNfs1C2CRs2jy7dAHnOwStPDmIb5 FfboTM/SQ6G4UbaP3uOlMbNMEz3QMiQshOwMCkEtCJsIEiHx7MUwYZjKt+MMDV/w/4O4VG7Vy A4rzzpkqaKTcJSZB7a/sMriyP5qZHKyVRsyHwA5sMifVY5kYtdy0OIXvrv8= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 11:56:45 -0000 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 " 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 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" EndSection Section "ServerFlags" Option "DontVTSwitch" "false" Option "DontZoom" "false" Option "Xinerama" "true" Option "AIGLX" "true" EndSection 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 EndSection 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 EndSection 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" EndSection 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" EndSubSection Option "TwinView" Option "TwinViewOrientation" "LeftOf" Option "ConnectedMonitor" "CRT, CRT" EndSection You will need to experiment with those settings. As I said, this stuff was written a long time ago, for very special hardware... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...