From owner-freebsd-questions@freebsd.org Sat Jan 20 16:09:51 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 AFD68EB65C8 for ; Sat, 20 Jan 2018 16:09:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (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 1898E7FBE5 for ; Sat, 20 Jan 2018 16:09:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.18.98]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPA (Nemesis) id 0M4NmW-1f2JEA3Nq0-00ygmR; Sat, 20 Jan 2018 17:09:42 +0100 Date: Sat, 20 Jan 2018 17:09:42 +0100 From: Polytropon To: Per olof Ljungmark Cc: freebsd-questions@freebsd.org Subject: Re: xfce4 reverts to mirrored dislays Message-Id: <20180120170942.532834dd.freebsd@edvax.de> In-Reply-To: <2c24a50e-c7d1-0841-bee6-9f015d48a927@nethead.se> References: <20180120125636.6ad88128.freebsd@edvax.de> <20180120134001.65ddb697@archlinux.localdomain> <20180120141518.7a85ed99@planb.netng.org> <2c24a50e-c7d1-0841-bee6-9f015d48a927@nethead.se> 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:B1sFXhFfpCXJ7SAiHIS/QgXicfxV4oaS6hElniukjxaqgtsx0OP 6lN7soMRL43NkiO7yXEZ9wCbkdXl4lpZhYJ6bQ1QjkD/VTMaqeNqDqmkwEmbTEQXNPX5NhZ ZJGQjjNoaKFlGA1KHKbVllLSgH0rssrxKhu1Y+E2nnrEKtCuWGh2N446ENkrBa/dTdOB0WZ a82bx3sZfDtseS2m03lUg== X-UI-Out-Filterresults: notjunk:1;V01:K0:WGclZBFl0Fs=:rxfQeqf18C10ScGny1fdwl lmrySO2AZVWYqnCm+JOM2/y9fBTx5Kwyjfk6ls1oljfreqi07CNUaeRTA2TPKcbert9thtMwh 7Q6pr250Z0VhlHPQPDnef5spBxuMM3A0YeQOf11iPwXWkzwJ2aSg4z4XVshvg66C846svP+Yh FTrCP0ld0d4eupYcE13Jb66jU5Zz1foKDB1VtrIFW9+TsnJ9fYd5mo7froYOtE0W5AqmAGWxb dJnd6WCP3qCGmyMAtFJmCuWjJANOaJ+rMeUi3HuPHBpLwzzbXlfqoHdtngjTq4eu8nyQMG3+b 20W7QS79Wfl8eJRy8AmGuYlqlWoUMkI5yrMUDmqdCLQDXd1vBVgXdNN/6p7WCn4z024nnGxaa JbLiaZeGOJCRJZ0IKTEgosAyDPdejcK5O8WbEJ7IXPZ4PT8wb5VWuXo17JI24d8ZoiFVOTX9K xyOyEJg4XxxgamAwPDMS1eW9QwnWJZZ6oHLvyObrReyv+bsKExDhMCLUtVNDyWGXodky6hkCg YF6OrAhuglRQONVwr46epOdzF7zLKZAQGp5+rxHY/q+1qt1/4OfiBFny3G/PSGUTuLWeO820U F04KCvjT7fSnbblHQqnOpqfYEl182EBq2SFrnlpsLMW0Pv+IgSx+xDcshPKLXNUSLL5BaAyi3 YCw4+ehr61NUMKO0hB05KVywddicsNeza9GFbv/Nv8WyvBIxvRbTz5/QLJ3mtu6d42oW4jvPS 8/Vv/Tbv95l5qjZyhdPzc3xyUwFwIwi++GCwoInpat5MakQH2mS14caInjo= 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 16:09:51 -0000 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...