View Issue Details

IDProjectCategoryView StatusLast Update
0008381Kali LinuxGeneral Bugpublic2023-07-12 16:02
Reporterpkreuzt Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version2023.2 
Summary0008381: Sway WM doesn't start from LightDM with amdgpu card
Description

LightDM tries to start a X session? and Sway is unable to grab DRM backend. This seems to happen only with amdgpu, as another machine with Intel GPU with same config starts Sway just fine. Also starting Sway from tty (with amdgpu) works.

Relevant log portion from .xsession-errors appended.

On a sidenote, since Wayland sessions and specially Sway are getting somewhat mature, maybe it's time to think about some kali-desktop-sway package.

Attached Files
log.txt (3,177 bytes)   
Xsession: X session started for pavel at sáb 08 jul 2023 16:29:42 CEST
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
xrdb: Can't open display ''
xrdb: Can't open display ''
xhost:  unable to open display ""
Error opening display!
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting POWERSHELL_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting USER=pavel
dbus-update-activation-environment: setting GTK_CSD=0
dbus-update-activation-environment: setting XDG_SESSION_TYPE=wayland
dbus-update-activation-environment: setting DOTNET_CLI_TELEMETRY_OPTOUT=1
dbus-update-activation-environment: setting HOME=/home/pavel
dbus-update-activation-environment: setting DESKTOP_SESSION=sway
dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting COMMAND_NOT_FOUND_INSTALL_PROMPT=1
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting QT_QPA_PLATFORMTHEME=qt5ct
dbus-update-activation-environment: setting LOGNAME=pavel
dbus-update-activation-environment: setting GTK_IM_MODULE=ibus
dbus-update-activation-environment: setting QT_AUTO_SCREEN_SCALE_FACTOR=0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
dbus-update-activation-environment: setting _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting LANG=es_ES.UTF-8
dbus-update-activation-environment: setting POWERSHELL_UPDATECHECK=Off
dbus-update-activation-environment: setting LD_PRELOAD=libgtk3-nocsd.so.0
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=sway
dbus-update-activation-environment: setting XMODIFIERS=@im=ibus
dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/pavel
dbus-update-activation-environment: setting SHELL=/usr/bin/zsh
dbus-update-activation-environment: setting GDMSESSION=sway
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting QT_IM_MODULE=ibus
dbus-update-activation-environment: setting PWD=/home/pavel
dbus-update-activation-environment: setting CLUTTER_IM_MODULE=ibus
00:00:10.037 [ERROR] [wlr] [backend/backend.c:114] Timeout waiting session to become active
00:00:10.037 [ERROR] [wlr] [backend/backend.c:352] Failed to start a DRM session
00:00:10.037 [ERROR] [sway/server.c:56] Unable to create backend
log.txt (3,177 bytes)   

Activities

arnaudr

arnaudr

2023-07-12 03:04

manager   ~0018232

On a sidenote, since Wayland sessions and specially Sway are getting somewhat mature, maybe it's time to think about some kali-desktop-sway package.

It would be nice, but I personally don't use Sway, and I don't think anyone in the team does. But you're welcome to propose something and contribute !

pkreuzt

pkreuzt

2023-07-12 16:02

reporter   ~0018235

Extra log from LightDM

lightdm.log (8,054 bytes)   
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=93887
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[+0.00s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 93894: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.16s] DEBUG: Seat seat0 changes active session to 3
[+0.64s] DEBUG: Got signal 10 from process 93894
[+0.64s] DEBUG: XServer 0: Got signal from X server :0
[+0.64s] DEBUG: XServer 0: Connecting to XServer :0
[+0.64s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.64s] DEBUG: Session pid=93911: Started with service 'lightdm-greeter', username 'lightdm'
[+0.65s] DEBUG: Session pid=93911: Authentication complete with return value 0: Success
[+0.65s] DEBUG: Seat seat0: Session authenticated, running command
[+0.65s] DEBUG: Session pid=93911: Running command /usr/sbin/lightdm-gtk-greeter
[+0.65s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+0.65s] DEBUG: Session pid=93911: Logging to /var/log/lightdm/seat0-greeter.log
[+0.69s] DEBUG: Activating VT 7
[+0.69s] DEBUG: Activating login1 session c5
[+0.69s] DEBUG: Seat seat0 changes active session to c5
[+0.69s] DEBUG: Session c5 is already active
[+0.83s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+1.11s] DEBUG: Greeter start authentication
[+1.11s] DEBUG: Session pid=93944: Started with service 'lightdm', username '(null)'
[+1.11s] DEBUG: Session pid=93944: Got 1 message(s) from PAM
[+1.11s] DEBUG: Prompt greeter with 1 message(s)
[+4.97s] DEBUG: Seat seat0 changes active session to 14
[+27.92s] DEBUG: Seat seat0 changes active session to c5
[+27.92s] DEBUG: Session c5 is already active
[+29.82s] DEBUG: Greeter start authentication for pavel
[+29.82s] DEBUG: Session pid=93944: Sending SIGTERM
[+29.82s] DEBUG: Session pid=93981: Started with service 'lightdm', username 'pavel'
[+29.82s] DEBUG: Session pid=93944: Terminated with signal 15
[+29.82s] DEBUG: Session: Failed during authentication
[+29.82s] DEBUG: Seat seat0: Session stopped
[+29.83s] DEBUG: Session pid=93981: Got 1 message(s) from PAM
[+29.83s] DEBUG: Prompt greeter with 1 message(s)
[+36.76s] DEBUG: Continue authentication
[+38.56s] DEBUG: Session pid=93981: Authentication complete with return value 0: Success
[+38.56s] DEBUG: Authenticate result for user pavel: Success
[+38.56s] DEBUG: User pavel authorized
[+38.61s] DEBUG: Greeter requests session sway
[+38.61s] DEBUG: Seat seat0: Creating display server of type wayland
[+38.61s] DEBUG: Using VT 8
[+38.61s] DEBUG: Seat seat0: Display server ready, running session
[+38.61s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+38.61s] DEBUG: Session pid=93981: Running command /etc/X11/Xsession sway
[+38.61s] DEBUG: Creating shared data directory /var/lib/lightdm/data/pavel
[+38.61s] DEBUG: Session pid=93981: Logging to .xsession-errors
[+38.66s] DEBUG: Activating VT 8
[+39.02s] DEBUG: Seat seat0: Stopping greeter
[+39.02s] DEBUG: Terminating login1 session c5
[+39.02s] DEBUG: Session pid=93911: Sending SIGTERM
[+39.02s] DEBUG: Activating login1 session 17
[+39.03s] DEBUG: Seat seat0 changes active session to 17
[+39.03s] DEBUG: Session 17 is already active
[+39.05s] DEBUG: Greeter closed communication channel
[+39.05s] DEBUG: Session pid=93911: Exited with return value 0
[+39.05s] DEBUG: Seat seat0: Session stopped
[+39.05s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+39.05s] DEBUG: Sending signal 15 to process 93894
[+39.17s] DEBUG: Process 93894 exited with return value 0
[+39.17s] DEBUG: XServer 0: X server stopped
[+39.17s] DEBUG: Releasing VT 7
[+39.17s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+39.17s] DEBUG: Seat seat0: Display server stopped
[+48.99s] DEBUG: Session pid=93981: Exited with return value 1
[+48.99s] DEBUG: Seat seat0: Session stopped
[+48.99s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+48.99s] DEBUG: Seat seat0: Display server stopped
[+48.99s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+48.99s] DEBUG: Seat seat0: Creating greeter session
[+48.99s] DEBUG: Seat seat0: Creating display server of type x
[+48.99s] DEBUG: Using VT 7
[+48.99s] DEBUG: Seat seat0: Starting local X display on VT 7
[+48.99s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+48.99s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+48.99s] DEBUG: XServer 0: Launching X Server
[+48.99s] DEBUG: Launching process 94091: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+48.99s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+48.99s] DEBUG: Releasing VT 8
[+49.15s] DEBUG: Seat seat0 changes active session to 3
[+49.62s] DEBUG: Got signal 10 from process 94091
[+49.62s] DEBUG: XServer 0: Got signal from X server :0
[+49.62s] DEBUG: XServer 0: Connecting to XServer :0
[+49.63s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+49.63s] DEBUG: Session pid=94111: Started with service 'lightdm-greeter', username 'lightdm'
[+49.64s] DEBUG: Session pid=94111: Authentication complete with return value 0: Success
[+49.64s] DEBUG: Seat seat0: Session authenticated, running command
[+49.64s] DEBUG: Session pid=94111: Running command /usr/sbin/lightdm-gtk-greeter
[+49.64s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+49.64s] DEBUG: Session pid=94111: Logging to /var/log/lightdm/seat0-greeter.log
[+49.83s] DEBUG: Activating VT 7
[+49.83s] DEBUG: Activating login1 session c6
[+49.83s] DEBUG: Seat seat0 changes active session to c6
[+49.83s] DEBUG: Session c6 is already active
[+50.02s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+50.31s] DEBUG: Greeter start authentication
[+50.31s] DEBUG: Session pid=94303: Started with service 'lightdm', username '(null)'
[+50.32s] DEBUG: Session pid=94303: Got 1 message(s) from PAM
[+50.32s] DEBUG: Prompt greeter with 1 message(s)
[+52.34s] DEBUG: Seat seat0 changes active session to 14
lightdm.log (8,054 bytes)   

Issue History

Date Modified Username Field Change
2023-07-08 15:12 pkreuzt New Issue
2023-07-08 15:12 pkreuzt File Added: log.txt
2023-07-12 03:04 arnaudr Note Added: 0018232
2023-07-12 16:02 pkreuzt File Added: lightdm.log
2023-07-12 16:02 pkreuzt Note Added: 0018235