canonical / lightdm

Display Manager
GNU General Public License v3.0
824 stars 138 forks source link

can't enter any window manager #181

Open energygreek opened 3 years ago

energygreek commented 3 years ago

hello, lightdm failed to startup any windown manager,

here is .xsession.error

I2021-03-19 22:35:19.246205 instance.cpp:1308] Override Disabled Addons: {}
I2021-03-19 22:35:19.248516 addonmanager.cpp:177] Loaded addon wayland
/etc/lightdm/Xsession: line 64: exec: bell-style: not found
I2021-03-19 22:35:19.254857 addonmanager.cpp:177] Loaded addon xcb
W2021-03-19 22:35:19.255178 xcbeventreader.cpp:34] XCB connection ":0" got error: 1
I2021-03-19 22:35:19.257528 addonmanager.cpp:177] Loaded addon quickphrase
I2021-03-19 22:35:19.257813 addonmanager.cpp:177] Loaded addon clipboard
I2021-03-19 22:35:19.258037 addonmanager.cpp:177] Loaded addon imselector
I2021-03-19 22:35:19.266272 addonmanager.cpp:177] Loaded addon keyboard
I2021-03-19 22:35:19.266556 addonmanager.cpp:177] Loaded addon waylandim
I2021-03-19 22:35:19.266755 addonmanager.cpp:177] Loaded addon unicode
I2021-03-19 22:35:19.267576 addonmanager.cpp:177] Loaded addon pinyinhelper
E2021-03-19 22:35:19.268912 addonloader.cpp:57] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2021-03-19 22:35:19.268999 addonmanager.cpp:271] Unloading addon pinyinhelper
I2021-03-19 22:35:19.269037 addonmanager.cpp:271] Unloading addon unicode
I2021-03-19 22:35:19.269069 addonmanager.cpp:271] Unloading addon waylandim
I2021-03-19 22:35:19.269098 addonmanager.cpp:271] Unloading addon keyboard
I2021-03-19 22:35:19.269262 addonmanager.cpp:271] Unloading addon imselector
I2021-03-19 22:35:19.269294 addonmanager.cpp:271] Unloading addon clipboard
I2021-03-19 22:35:19.269326 addonmanager.cpp:271] Unloading addon quickphrase
I2021-03-19 22:35:19.269546 addonmanager.cpp:271] Unloading addon xcb
I2021-03-19 22:35:19.269770 addonmanager.cpp:271] Unloading addon wayland

/var/log/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=873
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+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: _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: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+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 /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 879: /usr/bin/X :0 -seat seat0 -auth /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.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User jimery added
[+1.37s] DEBUG: Got signal 10 from process 879
[+1.37s] DEBUG: XServer 0: Got signal from X server :0
[+1.37s] DEBUG: XServer 0: Connecting to XServer :0
[+1.43s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.43s] DEBUG: Session pid=892: Started with service 'lightdm-greeter', username 'lightdm'
[+1.44s] DEBUG: Session pid=892: Authentication complete with return value 0: Success
[+1.44s] DEBUG: Seat seat0: Session authenticated, running command
[+1.44s] DEBUG: Session pid=892: Running command /usr/bin/lightdm-gtk-greeter
[+1.44s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+1.44s] DEBUG: Session pid=892: Logging to /var/log/lightdm/seat0-greeter.log
[+1.47s] DEBUG: Activating VT 7
[+1.47s] DEBUG: Activating login1 session c1
[+1.47s] DEBUG: Seat seat0 changes active session to c1
[+1.47s] DEBUG: Session c1 is already active
[+1.64s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+1.84s] DEBUG: Greeter start authentication for jimery
[+1.84s] DEBUG: Session pid=911: Started with service 'lightdm', username 'jimery'
[+1.85s] DEBUG: Session pid=911: Got 1 message(s) from PAM
[+1.85s] DEBUG: Prompt greeter with 1 message(s)
[+3.90s] DEBUG: Continue authentication
[+3.91s] DEBUG: Session pid=911: Authentication complete with return value 0: Success
[+3.91s] DEBUG: Authenticate result for user jimery: Success
[+3.91s] DEBUG: User jimery authorized
[+3.92s] DEBUG: Greeter requests session openbox
[+3.92s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+3.92s] DEBUG: Terminating login1 session c1
[+3.92s] DEBUG: Session pid=892: Sending SIGTERM
[+3.94s] DEBUG: Greeter closed communication channel
[+3.94s] DEBUG: Session pid=892: Exited with return value 0
[+3.94s] DEBUG: Seat seat0: Session stopped
[+3.94s] DEBUG: Seat seat0: Greeter stopped, running session
[+3.94s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+3.94s] DEBUG: Session pid=911: Running command /etc/lightdm/Xsession /usr/bin/openbox-session
[+3.94s] DEBUG: Creating shared data directory /var/lib/lightdm-data/jimery
[+3.94s] DEBUG: Session pid=911: Logging to .xsession-errors
[+3.97s] DEBUG: Activating VT 7
[+3.97s] DEBUG: Activating login1 session 3
[+3.97s] DEBUG: Seat seat0 changes active session to 
[+3.97s] DEBUG: Seat seat0 changes active session to 3
[+3.97s] DEBUG: Session 3 is already active
[+4.11s] DEBUG: Session pid=911: Exited with return value 127
[+4.11s] DEBUG: Seat seat0: Session stopped
[+4.11s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+4.11s] DEBUG: Sending signal 15 to process 879
[+4.54s] DEBUG: Process 879 exited with return value 0
[+4.54s] DEBUG: XServer 0: X server stopped
[+4.54s] DEBUG: Releasing VT 7
[+4.54s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+4.54s] DEBUG: Seat seat0: Display server stopped
[+4.54s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+4.54s] DEBUG: Seat seat0: Creating greeter session
[+4.54s] DEBUG: Seat seat0: Creating display server of type x
[+4.54s] DEBUG: Using VT 7
[+4.54s] DEBUG: Seat seat0: Starting local X display on VT 7
[+4.54s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+4.54s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+4.54s] DEBUG: XServer 0: Launching X Server
[+4.54s] DEBUG: Launching process 930: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+4.54s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+5.58s] DEBUG: Got signal 10 from process 930
[+5.58s] DEBUG: XServer 0: Got signal from X server :0
[+5.58s] DEBUG: XServer 0: Connecting to XServer :0
[+5.63s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+5.63s] DEBUG: Session pid=941: Started with service 'lightdm-greeter', username 'lightdm'
[+5.64s] DEBUG: Session pid=941: Authentication complete with return value 0: Success
[+5.64s] DEBUG: Seat seat0: Session authenticated, running command
[+5.64s] DEBUG: Session pid=941: Running command /usr/bin/lightdm-gtk-greeter
[+5.64s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+5.64s] DEBUG: Session pid=941: Logging to /var/log/lightdm/seat0-greeter.log
[+5.66s] DEBUG: Activating VT 7
[+5.66s] DEBUG: Activating login1 session c2
[+5.66s] DEBUG: Seat seat0 changes active session to c2
[+5.66s] DEBUG: Session c2 is already active
[+5.76s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+5.82s] DEBUG: Greeter start authentication for jimery
[+5.82s] DEBUG: Session pid=961: Started with service 'lightdm', username 'jimery'
[+5.83s] DEBUG: Session pid=961: Got 1 message(s) from PAM
[+5.83s] DEBUG: Prompt greeter with 1 message(s)
[+13.93s] DEBUG: Seat seat0 changes active session to 
[+17.32s] DEBUG: Seat seat0 changes active session to 4
[+157.50s] DEBUG: Seat seat0 changes active session to c2
[+157.50s] DEBUG: Session c2 is already active
[+159.71s] DEBUG: Continue authentication
[+159.74s] DEBUG: Session pid=961: Authentication complete with return value 0: Success
[+159.74s] DEBUG: Authenticate result for user jimery: Success
[+159.74s] DEBUG: User jimery authorized
[+159.75s] DEBUG: Greeter requests session openbox
[+159.75s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+159.75s] DEBUG: Terminating login1 session c2
[+159.76s] DEBUG: Session pid=941: Sending SIGTERM
[+159.78s] DEBUG: Greeter closed communication channel
[+159.78s] DEBUG: Session pid=941: Exited with return value 0
[+159.78s] DEBUG: Seat seat0: Session stopped
[+159.78s] DEBUG: Seat seat0: Greeter stopped, running session
[+159.78s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+159.79s] DEBUG: Session pid=961: Running command /etc/lightdm/Xsession /usr/bin/openbox-session
[+159.79s] DEBUG: Creating shared data directory /var/lib/lightdm-data/jimery
[+159.79s] DEBUG: Session pid=961: Logging to .xsession-errors
[+159.83s] DEBUG: Activating VT 7
[+159.83s] DEBUG: Activating login1 session 5
[+159.83s] DEBUG: Seat seat0 changes active session to 
[+159.83s] DEBUG: Seat seat0 changes active session to 5
[+159.83s] DEBUG: Session 5 is already active
[+159.88s] DEBUG: Session pid=961: Exited with return value 127
[+159.88s] DEBUG: Seat seat0: Session stopped
[+159.88s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+159.88s] DEBUG: Sending signal 15 to process 930
[+160.31s] DEBUG: Process 930 exited with return value 0
[+160.31s] DEBUG: XServer 0: X server stopped
[+160.31s] DEBUG: Releasing VT 7
[+160.31s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+160.31s] DEBUG: Seat seat0: Display server stopped
[+160.31s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+160.31s] DEBUG: Seat seat0: Creating greeter session
[+160.31s] DEBUG: Seat seat0: Creating display server of type x
[+160.31s] DEBUG: Using VT 7
[+160.31s] DEBUG: Seat seat0: Starting local X display on VT 7
[+160.31s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+160.31s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+160.31s] DEBUG: XServer 0: Launching X Server
[+160.31s] DEBUG: Launching process 1049: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+160.31s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+161.43s] DEBUG: Got signal 10 from process 1049
[+161.43s] DEBUG: XServer 0: Got signal from X server :0
[+161.43s] DEBUG: XServer 0: Connecting to XServer :0
[+161.48s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+161.48s] DEBUG: Session pid=1060: Started with service 'lightdm-greeter', username 'lightdm'
[+161.50s] DEBUG: Session pid=1060: Authentication complete with return value 0: Success
[+161.50s] DEBUG: Seat seat0: Session authenticated, running command
[+161.50s] DEBUG: Session pid=1060: Running command /usr/bin/lightdm-gtk-greeter
[+161.50s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+161.50s] DEBUG: Session pid=1060: Logging to /var/log/lightdm/seat0-greeter.log
[+161.53s] DEBUG: Activating VT 7
[+161.53s] DEBUG: Activating login1 session c3
[+161.53s] DEBUG: Seat seat0 changes active session to c3
[+161.53s] DEBUG: Session c3 is already active
[+161.64s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+161.70s] DEBUG: Greeter start authentication for jimery
[+161.70s] DEBUG: Session pid=1080: Started with service 'lightdm', username 'jimery'
[+161.71s] DEBUG: Session pid=1080: Got 1 message(s) from PAM
[+161.71s] DEBUG: Prompt greeter with 1 message(s)
[+163.84s] DEBUG: Seat seat0 changes active session to 4
[+423.81s] DEBUG: Seat seat0 changes active session to 
[+426.88s] DEBUG: Seat seat0 changes active session to 6
[+432.57s] DEBUG: Seat seat0 changes active session to 4
[+434.02s] DEBUG: Seat seat0 changes active session to 6
[+437.48s] DEBUG: Seat seat0 changes active session to 4
[+438.82s] DEBUG: Seat seat0 changes active session to 6
[+446.76s] DEBUG: Seat seat0 changes active session to 4
[+450.80s] DEBUG: Seat seat0 changes active session to 6
[+454.42s] DEBUG: Seat seat0 changes active session to 4
[+464.10s] DEBUG: Seat seat0 changes active session to 6
[+469.10s] DEBUG: Seat seat0 changes active session to 4
[+470.58s] DEBUG: Seat seat0 changes active session to 6
[+478.02s] DEBUG: Seat seat0 changes active session to 4
[+480.28s] DEBUG: Seat seat0 changes active session to 6
[+604.42s] DEBUG: Seat seat0 changes active session to 4

/var/log/seat0-greeter.log

** Message: 22:35:20.926: Starting lightdm-gtk-greeter 2.0.8 (Jul  4 2020, 16:10:34)
** Message: 22:35:20.928: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf

** (lightdm-gtk-greeter:1065): WARNING **: 22:35:21.025: [PIDs] Failed to execute command: /usr/libexec/at-spi-bus-launcher

** (lightdm-gtk-greeter:1065): WARNING **: 22:35:21.027: [PIDs] Failed to execute command: systemd

** (lightdm-gtk-greeter:1065): WARNING **: 22:35:21.077: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files

(lightdm-gtk-greeter:1065): Gtk-WARNING **: 22:35:21.092: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)
  1. the Xsession get an argument "bell-stype", but not the expected wm i choosed when login. i have tried different wm: openbox, i3-wm, notion, all failed when using lightdm.
  2. Appending "exec openbox-session" to ~/.xprofile can be a workaround which is what i did in the past, but now i want to switch wm when logging.
5.11.7-arch1-1
lightdm 1.30.0

thank you !

energygreek commented 3 years ago

lightdm/x-1.log

Unrecognized option: vt7
use: X [:<display>] [option]
-a #                   default pointer acceleration (factor)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
-br                    create root window with black background
+bs                    enable any backing store support
-bs                    disable any backing store support
-c                     turns off key-click
c #                    key-click volume (0-100)
-cc int                default color visual class
-nocursor              disable the cursor
-core                  generate core dump on fatal error
-displayfd fd          file descriptor to write display number to when ready to connect
-dpi int               screen resolution in dots per inch
-dpms                  disables VESA DPMS monitor control
-deferglyphs [none|all|16] defer loading of [no|all|16-bit] glyphs
-f #                   bell base (0-100)
-fc string             cursor font
-fn string             default font name
-fp string             default font path
-help                  prints message with these options
+iglx                  Allow creating indirect GLX contexts
-iglx                  Prohibit creating indirect GLX contexts (default)
-I                     ignore all remaining arguments
-ld int                limit data space to N Kb
-lf int                limit number of open files to N
-ls int                limit stack space to N Kb
-nolock                disable the locking mechanism
-maxclients n          set maximum number of clients (power of two)
-nolisten string       don't listen on protocol
-listen string         listen on protocol
-noreset               don't reset after last client exists
-background [none]     create root window with no background
-reset                 reset after last client exists
-p #                   screen-saver pattern duration (minutes)
-pn                    accept failure to listen on all ports
-nopn                  reject failure to listen on all ports
-r                     turns off auto-repeat
r                      turns on auto-repeat
-render [default|mono|gray|color] set render color alloc policy
-retro                 start with classic stipple and cursor
-s #                   screen-saver timeout (minutes)
-seat string           seat to run on
-t #                   default pointer threshold (pixels/t)
-terminate             terminate at server reset
-to #                  connection time out
-tst                   disable testing extensions