From owner-freebsd-questions@freebsd.org Sat Jan 20 15:46:28 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 38C40EB4978 for ; Sat, 20 Jan 2018 15:46:28 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F145E7ED08 for ; Sat, 20 Jan 2018 15:46:27 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1516463183; bh=xMqaci4/Tvag5MHmOdpZCDGTgkhJgp0af8gjB2ZpJo8=; h=Subject:To:References:From:Date:In-Reply-To; b=uam+PmcU/B6mSg9UQTOkSGsH5PTkX3FJoqsXUC4HPRWOezfdn8HAxgsaSrDnV/l9I dDu5bV4sZ/JUFjIciIA/BuqLflojGam2ASxAZ/nKst+ElX8+Ab9ehdoTWikZoLARIH jHdS/cioDqMORlvS1w1XT5ncbAXlryD75NS1rogI= Subject: Re: xfce4 reverts to mirrored dislays To: freebsd-questions@freebsd.org References: <20180120125636.6ad88128.freebsd@edvax.de> <20180120134001.65ddb697@archlinux.localdomain> <20180120141518.7a85ed99@planb.netng.org> From: Per olof Ljungmark Message-ID: <2c24a50e-c7d1-0841-bee6-9f015d48a927@nethead.se> Date: Sat, 20 Jan 2018 16:46:16 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180120141518.7a85ed99@planb.netng.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 15:46:28 -0000 On 01/20/18 14:15, Vladimir Botka wrote: > On Sat, 20 Jan 2018 13:40:01 +0100 > Ralf Mardorf via freebsd-questions > wrote: > >> On Linux I'm using a xorg.conf, as well as a script based upon >> xrandr, ... > > +1. FWIW, example of xrandr: > > xrandr --output VGA-1 --mode 1680x1050 --pos 0x0 --rotate > left --output LVDS-1 --off --output HDMI-3 --off --output > HDMI-2 --off --output HDMI-1 --off --output DP-3 --off > --output DP-2 --off --output DP-1 --primary --mode 1920x1080 > --pos 1050x600 --rotate normal > > There is a GUI (x11/arandr) to make the configuration easier. > Thank you all for your suggestions - the basic problem must be in xfce4-settings and it looks like one has to work around it - a little surprised that the bug in displays.c is marked "Solved" though - I did patch displays.c and reinstall it. https://bugzilla.xfce.org/show_bug.cgi?id=14096 https://git.xfce.org/xfce/xfce4-settings/commit?id=e128126f5e32c1018854403bb846cb9d6a091bb0 Let me clarify the problem: When I start X all is dandy, likewise if I exit X and come back. *But*, if I leave my workplace with X running long enough for the monitors to power down, when they are powered up again the display is mirrored and ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml is overwritten no matter how I try to make it read only. Not sure what script could help me with this? Is there a known way to lock this file? Thanks, //per