You are not logged in.
Hi there,
I installed a fresh arch and played around with X + i3 a bit but decided I wanted xfce. So I also insalled xfce4 and xfce4-goodies. From a tty after I log in startxfce4 runs fine, but I am unable to get xdm-archlinux working correctly.
What follows is hopefully some relevant info:
[fivo@fivoxps ~]$ cat .xsession
startxfce4[fivo@fivoxps ~]$ cat .xsession-errors
/usr/bin/startxfce4: X server already running on display :0
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS insteadDo I need to set these env vars somewhere explicitly? In my tty session they are set.
[fivo@fivoxps ~]$ systemctl status xdm-archlinux
× xdm-archlinux.service - X-Window Display Manager
Loaded: loaded (/usr/lib/systemd/system/xdm-archlinux.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Sat 2021-12-25 11:18:38 CET; 5min ago
Process: 492 ExecStart=/usr/bin/xdm -nodaemon -config /etc/X11/xdm/archlinux/xdm-config (code=exited, status=0/SUCCESS)
Main PID: 492 (code=exited, status=0/SUCCESS)
CPU: 20ms
Dec 25 11:18:23 fivoxps systemd[1]: Starting X-Window Display Manager...
Dec 25 11:18:38 fivoxps systemd[1]: xdm-archlinux.service: Failed with result 'protocol'.
Dec 25 11:18:38 fivoxps systemd[1]: Failed to start X-Window Display Manager.I have the service enabled via
systemctl enable xdm-archlinuxThe dbus service is active and healthy.
Also when I run
sudo /usr/bin/xdm -nodaemon -config /etc/X11/xdm/archlinux/xdm-configI am getting to the login screen, but after I login I get
Unable to contact settings server
Could not connect: connection refusedLet me know if you need anything else.
Last edited by fivo (2021-12-25 12:52:10)
Offline
/usr/bin/startxfce4: X server already running on display :0There is a running X11 server when you try to do this.
Dec 25 11:18:38 fivoxps systemd[1]: Failed to start X-Window Display Manager.But apparently not from here.
From a tty after I log in startxfce4 runs fine
Maybe this is why?
Do I need to set these env vars somewhere explicitly?
No.xdm fallback runs your ~/.xinitrc but iirc unlike startx already imports the environment w/o having to add it there (include the system scripts, see the last link below - 2nd note)
stat ~/.xsessionSanity check: do you need a DM or do you maybe want to auto-login to a locked xfce sesssion?
Edit: also how did you start i3 so far?
Last edited by seth (2021-12-25 13:52:44)
Offline
There is a running X11 server when you try to do this.
Yes but from where? I thought xinit settings are not taken into account for xdm, juxt xsession.
My .xinitrc looks like this and answering you last question I would start i3 just with startx
[fivo@fivoxps ~]$ cat .xinitrc
export GDK_SCALE=2
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_SCALE_FACTOR=1.2
export MOZ_USE_XINPUT2=1
xautolock -time 15 -locker i3lock &
xrdb .Xresources
exec i3
-[fivo@fivoxps ~]$ stat .xsession
File: .xsession
Size: 11 Blocks: 8 IO Block: 4096 regular file
Device: 254,0 Inode: 5781828 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ fivo) Gid: ( 1000/ fivo)
Access: 2021-12-25 02:22:55.396640613 +0100
Modify: 2021-12-25 01:29:39.249944059 +0100
Change: 2021-12-25 02:14:59.326647696 +0100
Birth: 2021-12-25 01:29:39.249944059 +0100Sanity check: do you need a DM or do you maybe want to auto-login to a locked xfce sesssion?
I would like a display manager. I currently do auto-login via .bash_profile and startxcfe4, as I did not get xdm to work.
Last edited by fivo (2021-12-25 15:17:41)
Offline
Yes but from where?
The process list might shed some light - did you maybe startx automatically from your bashrc?
iirc. xdm uses ~./xinitrc if there's no ~/.xsession
Edit: and that would not cause XDM to fail, the session is started by XDM.
Last edited by seth (2021-12-25 18:40:36)
Offline