From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6AC90158003 for ; Fri, 16 Jun 2023 12:59:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DE61E0976; Fri, 16 Jun 2023 12:59:11 +0000 (UTC) Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F406EE094E for ; Fri, 16 Jun 2023 12:59:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id C030961C06 for ; Fri, 16 Jun 2023 14:59:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4nFV32q2D30 for ; Fri, 16 Jun 2023 14:59:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1686920347; bh=0fdu/1xRZTqB6R1ODVwHFzOCQtMyWl1CkRQNQVk+s8A=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Ro2cb+G2Ejmf2HH7IihFH4gWBYTq0D8aM44FY01Oa/y5lCeRBWMS/u2mWFNNe8mlQ sH1Cuac56n/iTZtee/calZfFQe1uiCnxKlYuAed6wYlDsFc5S+ygF8cam5Kmbi2MTb q9qUwVjIlWnyO1/5uryDzISyDyCWVZ9e8REXNDtZ3MRoqDht+XtSCzYVMPwWAyxtp/ 0erOyJbqi6qYZJksjAflh3yLev1PfBCIB9wIkvwrIGU6D5PVYbQRp+E9zIV6YQMP7h RPLxFHpivwstTPqzreloAchNXyB0OfJn/Ac5GSqhcsrf9ATp40T5Zxv+mC3rItHFFf QfyBXwR9OQGdA== Message-ID: Date: Fri, 16 Jun 2023 14:59:06 +0200 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [gentoo-user] can't start X as user To: gentoo-user@lists.gentoo.org References: <10289729.nUPlyArG6x@lenovo> Content-Language: en-US From: =?UTF-8?Q?Bj=c3=b6rn_Fischer?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 11140455-e021-493c-84e2-d75682f732d1 X-Archives-Hash: 68cbbb7324c751408a3d35d5737494da Hi Philip, > My user is in 'tty wheel usb input video' (among others). that shoud suffice. You need to use '-keeptty' for xinit and preselect a TTY. For myself I have put this into my bashrc and it works quite well: xinit () { local VT; local DISPLAY; VT=vt$(tty | sed 's/.*tty//'); DISPLAY=:$(pgrep -cf 'X.*keeptty.*vt'); /usr/bin/xinit -- $DISPLAY -keeptty -wr $VT } Cheers Björn