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 25AAC158008 for ; Thu, 15 Jun 2023 02:21:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A11F3E091D; Thu, 15 Jun 2023 02:21:34 +0000 (UTC) Received: from mp-relay-02.fibernetics.ca (mp-relay-02.fibernetics.ca [208.85.217.137]) (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 5C4E2E0903 for ; Thu, 15 Jun 2023 02:21:34 +0000 (UTC) Received: from mailpool-fe-02.fibernetics.ca (mailpool-fe-02.fibernetics.ca [208.85.217.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mp-relay-02.fibernetics.ca (Postfix) with ESMTPS id 27A2B760B3 for ; Thu, 15 Jun 2023 02:21:34 +0000 (UTC) Received: from localhost (mailpool-mx-02.fibernetics.ca [208.85.217.141]) by mailpool-fe-02.fibernetics.ca (Postfix) with ESMTP id 1847960927 for ; Thu, 15 Jun 2023 02:21:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at X-Spam-Flag: NO X-Spam-Score: -1.001 X-Spam-Level: X-Spam-Status: No, score=-1.001 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_40=-0.001] autolearn=no autolearn_force=no Received: from mailpool-fe-02.fibernetics.ca ([208.85.217.145]) by localhost (mail-mx-02.fibernetics.ca [208.85.217.141]) (amavisd-new, port 10024) with ESMTP id VtX6Ju6M-VGJ for ; Thu, 15 Jun 2023 02:21:33 +0000 (UTC) Received: from localhost (host-45-78-225-232.dyn.295.ca [45.78.225.232]) by mail.ca.inter.net (Postfix) with SMTP id 6683460509 for ; Thu, 15 Jun 2023 02:21:32 +0000 (UTC) Received: by localhost (sSMTP sendmail emulation); Wed, 14 Jun 2023 22:21:29 -0400 Date: Wed, 14 Jun 2023 22:21:29 -0400 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] can't start X as user Message-ID: Mail-Followup-To: gentoo-user@lists.gentoo.org References: <10289729.nUPlyArG6x@lenovo> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10289729.nUPlyArG6x@lenovo> X-Archives-Salt: ee53e4f5-3bf3-4918-b7b5-4bae06bd8d44 X-Archives-Hash: 8cc07dffbdd803b39044706754140165 230614 Michael wrote: > On Wednesday, 14 June 2023 01:21:53 BST Philip Webb wrote: >> My new machine has no problem with graphics using System Rescue etc >> nor using 'startx' as root with Gentoo, but it refuses to start as user. >> I've had a series of errors : >> parse_vt_settings : can't open /dev/tty0 (permission denied) >> after adding my user to 'tty input' in 'group' : >> can't open virtual console 7 : permission denied > Not sure if this is necessary: > > $ grep 'tty|input' /etc/group > tty:x:5: > input:x:97: My user is in 'tty wheel usb input video' (among others). > The elogind service ought to be in boot runlevel according to the wiki: > https://wiki.gentoo.org/wiki/Elogind#Configuration I've corrected that & checked that Pam is running & Udev is in 'sysinit'. >> 'xorg-server' has 'USE="elogind"'. >> In my current machine, there is a /dev/fb0 with permission 660 . >> but there is no such device in the new machine. Ditto for /dev/dri/card0 . > Have you followed this wiki page to configure your kernel, > include the appropriate firmware for your card(s), > set up INPUT_DEVICES & VIDEO_CARDS in make.conf, > emerged associated x11-base/xorg-drivers > and the x11-base/xorg-server packages before a reboot ? > https://wiki.gentoo.org/wiki/Xorg/Guide Yes. I have "evdev" + "radeon vesa" in 'make.conf'. 'xf86-video-ati/vesa' are installed, as is 'xorg-server' + all its requirements ("dependencies"). > There should be a fb0 device listed: > $ ls -l /dev/fb* > crw-rw---- 1 root video 29, 0 Jun 14 08:52 /dev/fb0 ANB5 has /dev/fb0 /dev/dri/card0 with 660 permitions, ANB6 hasn't (those are my names for the present + new machines). > You'll also need to have emerged a Desktop Environment > or at least a window manager: https://wiki.gentoo.org/wiki/Window_manager I've installed 'twm xterm' to test X for now. I will install KDE for regular use later. '.xinitrc' is #xscreensaver & numlockx exec dbus-launch --exit-with-session /usr/bin/twm ie the same as in ANB5, but substituting Twm for Plasma. 230614 Jack wrote : > what does /var/log/Xorg.0.log show ? It has these errors (EE) in the X log file : Failed to load module "fbdev" (does not exist) Open /dev/dri/card0 : no such directory or file VESA (0) : cannot read int vect Screens found, but none has a useable configuration Do I need 'fbdev' or 'card0' ? Whatever is "int vect" ? When I try to 'startx' as user, the log file is in ~/.local/share/xorg , which is also where it is in ANB5. When I try 'Xorg -configure', it produces nothing of use & dumps it in my home directory (ugh). I can probably cut the Gordian knot by emerging Xorg-server with 'suid'. How insecure is that for a single-user system in a house ? The Elogind approach has worked in ANB5 since Aug 2020. I can't make much of a useful comparison between the 2 machines, as ANB5 dates from 2015, ie long before the 'elogind' affair in 2020, & it has Nvidia graphics, whereas ANB6 has cutting-edge AMD. BTW System Rescue + Mint (live USB) load modules for AMDGPU, which seems to be the latest graphics offering ; I need to find some firmware to get it to work (enabling AMDGPU in the kernel causes the boot process to stall with a message re missing firmware). There are in fact 2 graphics tools in ANB6, one in the CPU (AMD), the other on the Mobo (Gigabyte). How can I tell which one the machine is trying to use ? I will continue to poke around, but further advice is very welcome. Please read my comments above carefully (smile). -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca