From owner-freebsd-questions@freebsd.org Sat Jan 20 17:19:27 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 A99E6EBA517 for ; Sat, 20 Jan 2018 17:19:27 +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 6CE9182295 for ; Sat, 20 Jan 2018 17:19: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=1516468762; bh=qeEycu6Nm9kNE4liWp0KqnPGrKvC36PFQ3cfKbOuo90=; h=Subject:To:References:From:Date:In-Reply-To; b=1BZdJVmqTgS8LEJhpZuMyOSMy7Zvw88+/l+F7qrW4EUUV1TD0L8AMDMHNGRGUtSXA a6Vj14MMhGajIpOJVZtE0R3xmHJyUEVhRVCAnMAuaBtrBKHJK9e92Htp6MbDZS5N4B 2SiDzKW1VqiIKqBF2XGre1XS1nJHLTF6g5ge5Ln8= 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> <2c24a50e-c7d1-0841-bee6-9f015d48a927@nethead.se> <20180120170942.532834dd.freebsd@edvax.de> From: Per olof Ljungmark Message-ID: Date: Sat, 20 Jan 2018 18:19:20 +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: <20180120170942.532834dd.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 17:19:27 -0000 On 01/20/18 17:09, Polytropon wrote: > On Sat, 20 Jan 2018 16:46:16 +0100, Per olof Ljungmark wrote: >> 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? > > As root, chown the file to root:wheel, then make it r--/r--/r--, > and finally use chflags to apply the noschg flag. This should > make the file immutable to any write attempts. I did, but believe it not, the display still comes up mirrered and when I change it back to "Right-of" the file changes ownership to 644 and my username. Sigh. I think I'll open the bug upstream instead.