On 12/30/20 4:06 PM, Pierre Labastie via blfs-dev wrote:
On Wed, 2020-12-30 at 15:29 +0100, Tim Tassonis via blfs-dev wrote:
Hi all
I now seen to have everything in place for elogind and rootless X,
however, just calling startx still does not seem to work.
I get the following error on startx on the console:
[ 382.428] (EE) parse_vt_settings: Cannot open /dev/tty0
(Permission
denied)
If I just call
X vt7
I get:
[ 972.965] (EE) xf86OpenConsole: Cannot open virtual console 7
(Permission denied)
However, I get a success using:
startx -- vt1
, as /dev/tty1 seems to be my seat:
timtas@lfsda0:~$ loginctl
SESSION UID USER SEAT TTY
4 1000 timtas pts/0
7 1000 timtas seat0 tty1
So, is this all correct now, and I'm fine to go on?
Well, I've never have had to specify the vt with startx, so something
is weird. Just to check: what is your version of elogind, and if using
246.9.1, have you applied the sed?
sed -i '/running/,+1s:^://:' src/login/pam_elogind.c
Also, the seat is tty1, but even without elogind, /dev/tty1 would be
owned by you if logging in on it.
I was on 246.9.1, and actually did forget the patch. Applied it now, but
still the same errors.
Below is an excerpt of my Xorg.0.log, maybe something springs to mind to
somebody:
[ 6039.446] (II) systemd-logind: took control of session
/org/freedesktop/login1/session/_313
[ 6039.446] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 6039.447] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10
paused 0
[ 6039.448] (--) PCI:*(0@0:2:0) 1234:1111:1af4:1100 rev 2, Mem @
0xfd000000/16777216, 0xfebf0000/4096, BIOS @ 0x????????/131072
[ 6039.448] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file
or directory)
...
[ 6039.450] (II) FBDEV: driver for framebuffer: fbdev
[ 6039.450] (II) VESA: driver for VESA chipsets: vesa
[ 6039.450] (EE)
Fatal server error:
[ 6039.450] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission
denied)
[ 6039.450] (EE)
[ 6039.450] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 6039.450] (EE) Please also check the log file at
"/home/timtas/.local/share/xorg/Xorg.0.log" for additional information.
[ 6039.450] (EE)
[ 6039.450] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 6039.450] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 6039.451] (EE) Server terminated with error (1). Closing log file.
Otherwise, I'll just go on with gtk3, lxdm and xfce and see, if that's
ok then. I'm not sure, but maybe as soon as dbus_launch starts the
session, it will behave differently.
Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page