From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22103 invoked from network); 22 May 2022 16:33:34 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 22 May 2022 16:33:34 -0000 Received: (qmail 765 invoked by uid 89); 22 May 2022 16:33:59 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 757 invoked from network); 22 May 2022 16:33:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1653237210; x= 1653323610; bh=5tZTC35P341ktDOBEAqZc80a4aQz57WS0UROx/1lVW0=; b=l 2DQBMsp7MVc5p//wRzwp2Am7+6PgvE5j6+M66cpYuaTwg0BrcB6hR06nJm7oRXLb 7hSTUSysSi6AabVuCcZeziuBSMsz9dRvt0zGNtAkFvdn+buCEkbn5k3Poaske2ny qCPpFtVaDdlw17TjQuDLozYPqFdOwhlPxPBc6s+n5GWBvvIaaV/E19zSq3CyzTAt 3jvpQbnAC19/Kg6mbn33WS69GUoMNTQOyYpLRQsg1AKlssEmZzeGuWiB3CZJ05yi 6O4p++ExHUpx+yy8MtfOMlQhN9h/xp7SnUjecrUECdtkXSCYEztjGrHkgubuR4Wq 0Er1rQL8a007QBAcENvnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1653237210; x=1653323610; bh=5 tZTC35P341ktDOBEAqZc80a4aQz57WS0UROx/1lVW0=; b=B6xinu79Zctbym6b6 k05FUAw07WbZCrmQOHEKYCEeEG7M4pgJ4wvy1F2fQhkHKPbTbSSgUeQ+0uRUBbRD +7/qNU6HdIKFZQF83t+Hd1Kh5hJvM892C1yZfVab4BinnJ2+yAb7gdUqI7kjT4Az MHEYLE+ZsR8bYpGpVoE/4fZBLmP84b2h8Klisxil9mul1ehpXoV6HquS9gl0IOCX xP2F2VK0E0dVIGY/1olYIQk3U2cfrJPLcnqmpn6K6zJ87uoIUkN8AxTqSrPTy0xd sy8u5Ds0s7PVI7BlEaMbj6pw0PbY1zb7MqoURGhaCJut0DCdHtkkfUWUt9/Ep/fm Zt1yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrieekgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhes shhhohhllhgrnhgurdhorhhgqeenucggtffrrghtthgvrhhnpeefhfevtdetgfehveeuhf efleekhfefgeekuddugeegheeggeegtdegieeileeigfenucffohhmrghinhepghhithhh uhgsrdgtohhmpdhsrhdrhhhtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Subject: Re: s6 xinit replacement? To: supervision@list.skarnet.org References: <3VJC4G8PXTKVS.3RQFDLXYQABMW@oak.localdomain> <727c2c8b-2b5e-24b4-f9e5-17e651217cc9@sholland.org> From: Samuel Holland Message-ID: <60132934-81ef-0647-d3b2-6f07f5386ee3@sholland.org> Date: Sun, 22 May 2022 11:33:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 5/22/22 10:07 AM, Guillermo wrote: > Hello, Samuel. > > El sáb, 14 may 2022 a las 23:44, Samuel Holland escribió: >> >> X is started at boot from my user supervision tree[1], which is started by the >> user-* services in my system supervision tree[2]. >> >> [1]: https://github.com/smaeul/rc-user >> [2]: https://github.com/smaeul/rc > > I had a look at your s6-rc service definitions, and it seems that you > don't have one for the system-wide message bus (D-Bus) and elogind. > That, in addition to having the tmpfs whose path is stored in > XDG_RUNTIME_DIR mounted by a "user-setup@" system service, > makes me think that you are not running those. On the other hand, IIUC > the Xorg process is part of a supervision tree that runs with your > (unprivileged) user and is launched by service "user-services@ user>", and I suppose that Xorg is not a suid binary, so unless you do Yes, all of those inferences are correct. > something else, your Xorg*.log file should contain something like: > > (EE) systemd-logind: failed to get session: PID does not > belong to any known session > ... > (EE) open /dev/dri/card0: Permission denied > ... > (EE) Screen(s) found, but none have a usable configuration. > > So, what did you do? Did you also grant your user privileges for > opening the /dev/dri/card* character special files? Yes, I do that the "old-fashioned" way, by adding my user to the `video` group. There's a rule shipped by default with udev that changes the group of the DRM devices: SUBSYSTEM=="drm", KERNEL!="renderD*", GROUP="video" For multi-user systems, I would probably use something like seatd: https://git.sr.ht/~kennylevinsen/seatd Regards, Samuel