[Bug 1208268] New: xdm does not launch configured default-xsession.desktop
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 Bug ID: 1208268 Summary: xdm does not launch configured default-xsession.desktop Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.5 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: mrmazda@earthlink.net QA Contact: gfx-bugs@suse.de Found By: --- Blocker: --- Created attachment 864904 --> http://bugzilla.opensuse.org/attachment.cgi?id=864904&action=edit .tgz of journalctl -b with cmdline including debug rd.debug https://paste.opensuse.org/pastes/7d8d9da97046 contains a journal produced without debug rd.debug on kernel cmdline (28 day expire). Original summary: xdm does not launch configured default-xsession.desktop # inxi -GSxxz System: Kernel: 5.14.21-150500.39-default arch: x86_64 bits: 64 compiler: gcc v: 7.5.0 Console: pty pts/1 (vt 7) DM: XDM Distro: openSUSE Leap 15.5 Alpha Graphics: Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu v: kernel arch: GCN-2 ports: active: DP-1, DVI-D-1, HDMI-A-1, VGA-1 empty: none bus-ID: 00:01.0 chip-ID: 1002:130f Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1 Screen-1: 0 s-res: 7840x1440 s-dpi: 120 Monitor-1: DVI-D-1 mapped: DVI-D-0 pos: primary,left model: NEC EA243WM res: 1920x1200 dpi: 94 diag: 612mm (24.1") Monitor-2: DP-1 mapped: DisplayPort-0 pos: center-r model: Acer K272HUL res: 2560x1440 dpi: 109 diag: 686mm (27") Monitor-3: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Dell P2213 res: 1680x1050 dpi: 90 diag: 558mm (22") Monitor-4: VGA-1 mapped: VGA-0 pos: center-l model: Lenovo L2251x Wide res: 1680x1050 dpi: 90 diag: 559mm (22") API: OpenGL v: 4.6 Mesa 22.3.4 renderer: AMD Radeon R7 Graphics (kaveri LLVM 15.0.7 DRM 3.49 5.14.21-150500.39-default) direct-render: Yes ## installation is a zypper dup from an unpreserved 15.4. # inxi -C CPU: Info: quad core model: AMD A10-7850K Radeon R7 12 Compute Cores 4C+8G bits: 64 type: MT MCP cache: L2: 4 MiB Speed (MHz): avg: 1700 min/max: 1700/4000 cores: 1: 1700 2: 1700 3: 1700 4: 1700 # ll /usr/share/xsessions/ total 16 drwxr-xr-x 2 root root 2048 Feb 14 19:34 . drwxr-xr-x 175 root root 6144 Feb 14 19:27 .. lrwxrwxrwx 1 root root 42 Jan 27 00:54 default.desktop -> /etc/alternatives/default-xsession.desktop lrwxrwxrwx 1 root root 13 Apr 22 2022 icewm-session.desktop -> icewm.desktop -rw-r--r-- 1 root root 2498 Apr 22 2022 icewm.desktop lrwxrwxrwx 1 root root 15 Jan 27 00:56 kde-plasma.desktop -> plasma5.desktop -rw-r--r-- 1 root root 2975 Jan 27 00:44 plasma5.desktop # update-alternatives --config default-displaymanager There are 2 choices for the alternative default-displaymanager (providing /usr/lib/X11/displaymanagers/default-displaymanager). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/X11/displaymanagers/xdm 10 auto mode 1 /usr/lib/X11/displaymanagers/console 5 manual mode * 2 /usr/lib/X11/displaymanagers/xdm 10 manual mode Press <enter> to keep the current choice[*], or type selection number: # update-alternatives --config default-xsession.desktop There are 2 choices for the alternative default-xsession.desktop (providing /usr/share/xsessions/default.desktop). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/share/xsessions/plasma5.desktop 25 auto mode 1 /usr/share/xsessions/icewm-session.desktop 15 manual mode * 2 /usr/share/xsessions/plasma5.desktop 25 manual mode Press <enter> to keep the current choice[*], or type selection number: # head /usr/share/xsessions/default.desktop [Desktop Entry] Type=XSession Exec=/usr/bin/startplasma-x11 TryExec=/usr/bin/startplasma-x11 DesktopNames=KDE Name=Plasma (X11) # rpm -qa | grep -i dm- xdm-1.1.11-150400.23.6.x86_64 mdadm-4.2-150500.1.8.x86_64 # journalctl -b | grep aile # boot without cmdline debug rd.debug Feb 14 20:58:55 ara88 systemd[1]: haveged.service: Failed with result 'exit-code'. # journalctl -b | grep aile | wc -l # boot with cmdline debug rd.debug 1745 # cat .xsession-errors-:0 Environment variable $XAUTHORITY not set, ignoring. warning: output DP-1 not found; ignoring warning: output VGA-1 not found; ignoring warning: output DVI-D-1 not found; ignoring warning: output HDMI-1 not found; ignoring gpg-connect-agent: no gpg-agent running in this session gpg-connect-agent: no gpg-agent running in this session # Starting in multi-user.target, startx /usr/bin/startice produces a normally working session. Starting in multi-user.target, startx /usr/bin/startplasma-x11 produces in journal: kapplymousethem[864]: segfault at 0 ip 00007f413f8e0640 sp 00007ffc20ad6c48 error 4 in libQt5Gui.so.5.15.2[7f413f758000+6f1000] kcminit_startup[900]: segfault at 0 ip 00007f59a42a8640 sp 00007fffea85f5d8 error 4 in libQt5Gui.so.5.15.2[7f59a4120000+6f1000] which reinstalling libQt5Gui5 fails to fix. Problem Manifestation: Starting in graphical target, login with alternatives default set to either plasma or icewm results in an Xterm with no window decorations, no toolbar, pale gray background, and no response to mouse clicks anywhere. If with update-alternatives I have default on plasma, it causes popup window reporting kglobalaccel5 segfault. Dismissal produces a ksplashqml segfault report. Dismissal leaves a black screen with mouse pointer and nothing else. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |IN_PROGRESS Flags| |needinfo?(mrmazda@earthlink | |.net) --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> --- We already ship Leap 15.5? Where did you find it? -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c2 --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- I would suggest to run 'icewm' in the xterm without decorations (xdm session with default desktop set to icewm). We need to know why even this fails. Plasma desktop as reported here here looks rather broken to me. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c3 Felix Miata <mrmazda@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mrmazda@earthlink | |.net) | --- Comment #3 from Felix Miata <mrmazda@earthlink.net> --- /usr/bin/icewm in the xterm adds window decorations and IceWM toolbar. Apps I tried from the IceWM menu work normally. .xsession-errors-:0 updates to same as in comment #0. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c4 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(mrmazda@earthlink | |.net) --- Comment #4 from Stefan Dirsch <sndirsch@suse.com> --- Looks like xdm prefers (via /etc/X11/xinit/xinitrc.common) plasma*.desktop over icewm*.desktop over default.desktop (*.desktop), if $WINDOWMANAGER isn't set. So in theory it should try to start the command in the Exec line of plasma5.desktop, which would be /usr/bin/startplasma-x11 Not sure why it would ever try to use the command of the Exec line of default.desktop, which I guess would be /usr/bin/startice. But on icewm of Leap 15.4 it seems to be /usr/bin/icewm-session. Now I'm confused. I can't find a startice command on my system. Whatever I suggest to try this icewm command as well in your simple xterm. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c5 --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> --- Then you could also try patching /etc/X11/xinit/xinitrc.common, i.e. adding the default.desktop as first priority about line 80 (symbolic, not a real patch!) - # Pick a session description file. - for file in ${dir}/{plasma*,kde*,gnome*,xfce*,lxde*,icewm*,*}.desktop + # Pick a session description file. + for file in ${dir}/{default,plasma*,kde*,gnome*,xfce*,lxde*,icewm*,*}.desktop -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c6 Felix Miata <mrmazda@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@suse.com Flags|needinfo?(mrmazda@earthlink |needinfo?(sndirsch@suse.com |.net) |) --- Comment #6 from Felix Miata <mrmazda@earthlink.net> --- # echo $PATH /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin # which startice /usr/local/bin/startice # cat /usr/local/bin/startice #!/bin/sh WINDOWMANAGER=/usr/bin/icewm startx # which k5start /usr/local/bin/k5start # cat /usr/local/bin/k5start #!/bin/sh WINDOWMANAGER=startplasma-x11 startx # Booted to graphical with IceWM as default xsession and logging in on XDM, in the Xterm that opens, running startice or /usr/local/startice replaces the gray screens and Xterm with a fresh IceWM session with toolbar and black desktop background. Exiting that session returns the gray backgrounds and Xterm. Running k5start instead, klauncher reports segfault. Booting after causing: # ls -Gg /etc/X11/xinit/xinitrc.common -rw-r--r-- 1 5186 Feb 15 14:23 /etc/X11/xinit/xinitrc.common # grep }.desktop /etc/X11/xinit/xinitrc.common for file in ${dir}/{default,plasma*,kde*,gnome*,xfce*,lxde*,icewm*,*}.desktop # didn't change behavior. XDM still starts X as described in comment #0: # ps -A ... 786 ? 00:00:00 xdm 788 tty7 00:00:00 X 846 ? 00:00:00 xdm 861 ? 00:00:00 xconsole 870 ? 00:00:00 systemd 871 ? 00:00:00 (sd-pam) 877 ? 00:00:00 xterm ... # After trying to reproduce this on another host, I did some more digging around and found the following: # journalctl | grep deprecated Oct 26 18:17:21 ara88 udevadm[532]: systemd-udev-settle.service is deprecated. Please fix display-manager.service not to pull it in. Oct 27 11:37:47 ara88 udevadm[533]: systemd-udev-settle.service is deprecated. Please fix display-manager.service not to pull it in. Oct 27 11:43:18 ara88 udevadm[530]: systemd-udev-settle.service is deprecated. Please fix display-manager.service not to pull it in. Oct 27 11:46:27 ara88 udevadm[530]: systemd-udev-settle.service is deprecated. Please fix display-manager.service not to pull it in. Feb 14 19:24:39 ara88 [RPM][6901]: erase dracut-mkinitrd-deprecated-055+suse.294.gc5bc4bb5-150400.3.8.1.x86_64: success Feb 14 19:24:39 ara88 [RPM][6901]: install dracut-mkinitrd-deprecated-055+suse.345.g8b8708cb-150500.1.2.x86_64: success Feb 14 19:24:39 ara88 [RPM][6901]: erase dracut-mkinitrd-deprecated-055+suse.294.gc5bc4bb5-150400.3.8.1.x86_64: success Feb 14 19:24:39 ara88 [RPM][6901]: install dracut-mkinitrd-deprecated-055+suse.345.g8b8708cb-150500.1.2.x86_64: success Feb 14 20:58:57 ara88 udevadm[524]: systemd-udev-settle.service is deprecated. Please fix display-manager.service not to pull it in. # systemctl restart xdm Failed to restart xdm.service: Unit systemd-udev-settle.service is masked. # Above reminded me I did what the journal wanted - wrongly. I disabled systemd-udev-settle.service and masked it, then forgot about it. # rpm -qf /usr/lib/systemd/system/systemd-udev-settle.service udev-249.14-150400.8.19.1.x86_64 # systemctl cat xdm.service # /usr/lib/systemd/system/display-manager.service [Unit] Description=X Display Manager Requires=var-run.mount Conflicts=getty@tty7.service plymouth-quit.service After=ypbind.service gpm.service time-sync.target winbind.service acpid.service Wants=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service After=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service getty@tty7.service plymouth-quit.service OnFailure=plymouth-quit.service [Service] Type=forking PIDFile=/run/displaymanager.pid ExecStart=/usr/lib/X11/display-manager start ExecStop=/usr/lib/X11/display-manager stop ExecReload=/usr/lib/X11/display-manager reload KillMode=process [Install] WantedBy=graphical.target Alias=xdm.service # /etc/systemd/system/display-manager.service.d/override.conf [Unit] After=systemd-udev-settle.service Requires=systemd-udev-settle.service # Override.conf created 2021-08-21: https://bugzilla.opensuse.org/show_bug.cgi?id=1188954#c17 So I tried getting rid of it and rebooting: # systemctl cat xdm.service # /usr/lib/systemd/system/display-manager.service [Unit] Description=X Display Manager Requires=var-run.mount Conflicts=getty@tty7.service plymouth-quit.service After=ypbind.service gpm.service time-sync.target winbind.service acpid.service Wants=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service After=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service getty@tty7.service plymouth-quit.service OnFailure=plymouth-quit.service [Service] Type=forking PIDFile=/run/displaymanager.pid ExecStart=/usr/lib/X11/display-manager start ExecStop=/usr/lib/X11/display-manager stop ExecReload=/usr/lib/X11/display-manager reload KillMode=process [Install] WantedBy=graphical.target Alias=xdm.service # systemctl cat display-manager.service # /usr/lib/systemd/system/display-manager.service [Unit] Description=X Display Manager Requires=var-run.mount Conflicts=getty@tty7.service plymouth-quit.service After=ypbind.service gpm.service time-sync.target winbind.service acpid.service Wants=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service After=remote-fs.target dbus.socket systemd-user-sessions.service systemd-logind.service getty@tty7.service plymouth-quit.service OnFailure=plymouth-quit.service [Service] Type=forking PIDFile=/run/displaymanager.pid ExecStart=/usr/lib/X11/display-manager start ExecStop=/usr/lib/X11/display-manager stop ExecReload=/usr/lib/X11/display-manager reload KillMode=process [Install] WantedBy=graphical.target Alias=xdm.service # Login from XDM still is starting as described in comment #0, even with: # head -n6 /etc/alternatives/default-xsession.desktop [Desktop Entry] Type=XSession Exec=/usr/bin/startplasma-x11 TryExec=/usr/bin/startplasma-x11 DesktopNames=KDE Name=Plasma (X11) :( Unless you have suggestions how to find what needs fixing, I'm ready to trash this installation, install 15.5b anew, and close this. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c7 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(sndirsch@suse.com |needinfo?(mrmazda@earthlink |) |.net) --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- Using your own scripts located in /usr/local/bin makes no sense, when already running on a Xserver, since they'll try to run another Xserver with startx. I would have hoped that after this change in /etc/X11/xinit/xinitrc.common when having configured to use icewm as default, /usr/bin/icewm-session would have been started. Oh well. Seems I need to try a 15.5b myself. Is this the image you tried? https://get.opensuse.org/leap/15.5/#download -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c8 Felix Miata <mrmazda@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mrmazda@earthlink | |.net) | --- Comment #8 from Felix Miata <mrmazda@earthlink.net> --- (In reply to Stefan Dirsch from comment #7)
Using your own scripts located in /usr/local/bin makes no sense, when already running on a Xserver, since they'll try to run another Xserver with startx.
I only use my startice script from a multi-user boot, or to start an additional X session on :1 after there's already a running session on :0. "Starting in multi-user.target, startx /usr/bin/startice produces a normally working session" in comment #0 is a typo. s/bin\/startice/bin\/startx/. /usr/bin/startice doesn't exist. /usr/local/bin/startice does exist.
Is this the image you tried?
No. Quoting comment #0: "## installation is a zypper dup from an unpreserved 15.4." Before comment #6 I tried to reproduce on a different PC that had had TDM installed along with Plasma and IceWM. I couldn't reproduce by switching to XDM from TDM with update-alternatives, so I uninstalled TDM, and still could not reproduce. Just now I completed another zypper dup from 15.4 to 15.5 on a different PC, used update-alternatives to switch defaults to XDM and IceWM (from KDM3 & KDE3), and it too works as expected: # inxi -Saz --vs --zl --hostname inxi 3.3.25-00 (2023-02-07) System: Host: ab85m Kernel: 5.14.21-150500.39-default arch: x86_64 bits: 64 compiler: gcc v: 7.5.0 parameters: BOOT_IMAGE=/boot/vmlinuz root=LABEL=<filter> noresume ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0 video=1440x900@60 Desktop: IceWM v: 1.4.2 info: icewmtray vt: 7 dm: XDM Distro: openSUSE Leap 15.5 Alpha -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1208268 http://bugzilla.opensuse.org/show_bug.cgi?id=1208268#c9 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |WORKSFORME --- Comment #9 from Stefan Dirsch <sndirsch@suse.com> --- Ok. So not reproducable. Closing as such. Not sure why, but then it's not necessary to adjust /etc/X11/xinit/xinitrc.common -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com