You are not logged in.

#1 2017-06-15 16:43:57

DanielH
Member
From: Mar del Plata, Argentina
Registered: 2014-03-11
Posts: 28

LXQt and SDDM shutdown/reboot issues

I'm running four Arch machines: three laptops (x86_64), all of them with LXQt DE launched from SDDM; and one very old desktop PC (i686) with spectrwm WM, launched by startx command.

Recently, only in my Arch + LXQt machines I'm experiencing a strange issue: when logged user requires shutdown or reboot executed from LXQt graphical menu, or by systemctl poweroff / reboot commands in qterminal, the systemd poweroff/reboot process is delayed, showing message "a stop job is running for Session c2 of user xx (Xs / 1min 30s)".

However, performing an user logout from LXQt menu, and afterwards executing poweroff/reboot command from SDDM-greeter buttons or from another tty, systemd goes ahead smoothly.

BTW: in my Arch + spectrwm machine I don't have this issue: $systemctl poweroff/reboot command in urxvt under user session performs its task without problems, user don't need to kill spectrwm nor switch to another tty to execute it.

I don't know if the shutdown/reboot issue resides in LXQt or in SDDM routines, but it seemed that user session isn't shutted/killed correctly from LXQt shutdown/reboot menu, and systemd waits to complete precaution time before kill LXQt/SDDM remaining processes.

To dodge this issue, I managed to don't show options other than Leave -> Logout on LXQt menu, but... it isn't a real solution: a logged user must be able to perform a shutdown or reboot command.

poweroff issue journalctl log:

...
Jun 12 09:56:08 hardwork systemd-logind[385]: System is powering down.
Jun 12 09:56:08 hardwork systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Jun 12 09:56:08 hardwork systemd[1]: Stopping CUPS Scheduler...
Jun 12 09:56:08 hardwork systemd[1]: Removed slice system-getty.slice.
Jun 12 09:56:08 hardwork systemd[1]: Stopped target Sound Card.
Jun 12 09:56:08 hardwork systemd[1]: Stopped target Graphical Interface.
Jun 12 09:56:08 hardwork systemd[1]: Stopped target Multi-User System.
Jun 12 09:56:08 hardwork systemd[1]: Stopped target Login Prompts.
Jun 12 09:56:08 hardwork systemd[1]: Stopping RealtimeKit Scheduling Policy Service...
Jun 12 09:56:08 hardwork connman-vpnd[435]: Terminating
Jun 12 09:56:08 hardwork connman-vpnd[435]: ens2 {remove} index 2
Jun 12 09:56:08 hardwork systemd[1]: Stopping ConnMan VPN service...
Jun 12 09:56:08 hardwork connman-vpnd[435]: wls3 {remove} index 3
Jun 12 09:56:08 hardwork systemd[1]: Stopping Authorization Manager...
Jun 12 09:56:08 hardwork connman-vpnd[435]: Exit
Jun 12 09:56:08 hardwork systemd[489]: Stopping Sound Service...
Jun 12 09:56:08 hardwork systemd[490]: pam_unix(systemd-user:session): session closed for user daniel
Jun 12 09:56:08 hardwork systemd[489]: Stopping Virtual filesystem service...
Jun 12 09:56:08 hardwork systemd[489]: Stopping D-Bus User Message Bus...
Jun 12 09:56:08 hardwork systemd[489]: Stopping Virtual filesystem service - digital camera monitor...
Jun 12 09:56:08 hardwork systemd[489]: Stopped target Default.
Jun 12 09:56:08 hardwork systemd[489]: Stopping Virtual filesystem service - disk device monitor...
Jun 12 09:56:08 hardwork lxqt-panel[526]: LXQt-Volume: Context connection failed or terminated lets try to reconnect
Jun 12 09:56:08 hardwork systemd[489]: Stopped Virtual filesystem service - disk device monitor.
Jun 12 09:56:08 hardwork systemd[489]: Stopped Virtual filesystem service - digital camera monitor.
Jun 12 09:56:08 hardwork pcmanfm-qt[523]: aboutToQuit
Jun 12 09:56:08 hardwork systemd[489]: Stopped D-Bus User Message Bus.
Jun 12 09:56:08 hardwork systemd[1]: Stopping User Manager for UID 1000...
Jun 12 09:56:08 hardwork systemd[1]: Stopping Manage, Install and Generate Color Profiles...
Jun 12 09:56:08 hardwork systemd[1]: Stopping Save/Restore Sound Card State...
Jun 12 09:56:08 hardwork systemd[1]: Stopped target Timers.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Daily man-db cache update.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Daily verification of password and group files.
Jun 12 09:56:08 hardwork systemd[489]: Stopped Sound Service.
Jun 12 09:56:08 hardwork systemd[1]: Stopping Daemon for power management...
Jun 12 09:56:08 hardwork sddm[401]: Authentication error: "Process crashed"
Jun 12 09:56:08 hardwork sddm[401]: Auth: sddm-helper crashed (exit code 15)
Jun 12 09:56:08 hardwork sddm[401]: Authentication error: "Process crashed"
Jun 12 09:56:08 hardwork sddm[401]: Auth: sddm-helper exited with 15
Jun 12 09:56:08 hardwork systemd[1]: Stopping Session c2 of user daniel.
Jun 12 09:56:08 hardwork systemd[1]: Stopping Disk Manager...
Jun 12 09:56:08 hardwork systemd[1]: Removed slice system-systemd\x2dcoredump.slice.
Jun 12 09:56:08 hardwork unknown[622]: udisks daemon version 2.6.5 exiting
Jun 12 09:56:08 hardwork sddm[401]: Socket server stopping...
Jun 12 09:56:08 hardwork sddm[401]: Socket server stopped.
Jun 12 09:56:08 hardwork sddm[401]: Display server stopping...
Jun 12 09:56:08 hardwork lxqt-session[496]: The X11 connection broke (error 1). Did the X11 server die?
Jun 12 09:56:08 hardwork systemd[1]: Stopped Daily rotation of log files.
Jun 12 09:56:08 hardwork systemd[1]: Stopped target System Time Synchronized.
Jun 12 09:56:08 hardwork systemd[1]: Stopping Simple Desktop Display Manager...
Jun 12 09:56:08 hardwork systemd[1]: Starting Generate shutdown-ramfs...
Jun 12 09:56:08 hardwork systemd[1]: Unmounted /run/user/1000/gvfs.
Jun 12 09:56:08 hardwork systemd[1]: Stopped CUPS Scheduler.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Authorization Manager.
Jun 12 09:56:08 hardwork systemd[1]: Stopped RealtimeKit Scheduling Policy Service.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Disk Manager.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Manage, Install and Generate Color Profiles.
Jun 12 09:56:08 hardwork systemd[489]: Stopped Virtual filesystem service.
Jun 12 09:56:08 hardwork systemd[489]: Stopped target Basic System.
Jun 12 09:56:08 hardwork systemd[489]: Stopped target Timers.
Jun 12 09:56:08 hardwork systemd[489]: Stopped target Paths.
Jun 12 09:56:08 hardwork systemd[489]: Stopped target Sockets.
Jun 12 09:56:08 hardwork systemd[489]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Jun 12 09:56:08 hardwork systemd[489]: Closed D-Bus User Message Bus Socket.
Jun 12 09:56:08 hardwork systemd[489]: Closed Sound System.
Jun 12 09:56:08 hardwork systemd[489]: Closed GnuPG network certificate management daemon.
Jun 12 09:56:08 hardwork systemd[489]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jun 12 09:56:08 hardwork systemd[489]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Jun 12 09:56:08 hardwork systemd[489]: Closed GnuPG cryptographic agent and passphrase cache.
Jun 12 09:56:08 hardwork systemd[489]: Reached target Shutdown.
Jun 12 09:56:08 hardwork systemd[1]: Stopped ConnMan VPN service.
Jun 12 09:56:08 hardwork systemd[489]: Starting Exit the Session...
Jun 12 09:56:08 hardwork systemd[489]: Received SIGRTMIN+24 from PID 687 (kill).
Jun 12 09:56:08 hardwork systemd[1]: Stopped Daemon for power management.
Jun 12 09:56:08 hardwork systemd[1]: Stopped User Manager for UID 1000.
Jun 12 09:56:08 hardwork systemd[1]: Stopped Save/Restore Sound Card State.
Jun 12 09:56:08 hardwork lxqt-runner[674]: QXcbConnection: Could not connect to display :0
Jun 12 09:56:08 hardwork systemd[1]: Requested transaction contradicts existing jobs: Transaction is destructive.
Jun 12 09:56:08 hardwork systemd[1]: systemd-coredump.socket: Failed to queue service startup job (Maybe the service file is missing or not a non-template unit?): Transaction is destructive.
Jun 12 09:56:10 hardwork mkinitcpio[679]: ==> Starting build: none
Jun 12 09:56:10 hardwork mkinitcpio[679]:   -> Running build hook: [sd-shutdown]
Jun 12 09:56:10 hardwork mkinitcpio[679]: ==> Build complete.
Jun 12 09:56:08 hardwork systemd[1]: systemd-coredump.socket: Unit entered failed state.
Jun 12 09:56:08 hardwork systemd-coredump[697]: Failed to send coredump datagram: Broken pipe
Jun 12 09:56:08 hardwork sddm[401]: Display server stopped.
Jun 12 09:56:08 hardwork sddm[401]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Jun 12 09:56:08 hardwork sddm[401]: Removing display ":0" ...
Jun 12 09:56:08 hardwork sddm[401]: Adding new display on vt 1 ...
Jun 12 09:56:08 hardwork sddm[401]: Display server starting...
Jun 12 09:56:08 hardwork sddm[401]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{792ba65b-8ecf-449e-af63-026c882a956d} -background none -noreset -displayfd 19 vt1
Jun 12 09:56:09 hardwork lxqt-panel[526]: The X11 connection broke: I/O error (code 1)
Jun 12 09:56:09 hardwork systemd[1]: Started Generate shutdown-ramfs.
Jun 12 09:56:09 hardwork sddm[401]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Jun 12 09:56:09 hardwork sddm[401]: Display server started.
Jun 12 09:56:09 hardwork sddm[401]: Socket server starting...
Jun 12 09:56:09 hardwork sddm[401]: Socket server started.
Jun 12 09:56:09 hardwork sddm[401]: Greeter starting...
Jun 12 09:56:09 hardwork sddm[401]: Adding cookie to "/var/run/sddm/{792ba65b-8ecf-449e-af63-026c882a956d}"
Jun 12 09:56:09 hardwork sddm[401]: Signal received: SIGTERM
Jun 12 09:56:09 hardwork sddm[401]: Socket server stopping...
Jun 12 09:56:09 hardwork sddm[401]: Socket server stopped.
Jun 12 09:56:09 hardwork sddm[401]: Display server stopping...
Jun 12 09:56:09 hardwork sddm-helper[771]: [PAM] Starting...
Jun 12 09:56:09 hardwork sddm-helper[771]: [PAM] Authenticating...
Jun 12 09:56:09 hardwork sddm-helper[771]: [PAM] returning.
Jun 12 09:56:10 hardwork sddm[401]: Display server stopped.
Jun 12 09:56:10 hardwork sddm[401]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Jun 12 09:56:10 hardwork sddm[401]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
Jun 12 09:56:10 hardwork systemd[1]: Stopped Simple Desktop Display Manager.
Jun 12 09:57:38 hardwork systemd[1]: session-c2.scope: Stopping timed out. Killing.
Jun 12 09:57:38 hardwork systemd[1]: session-c2.scope: Killing process 526 (lxqt-panel) with signal SIGKILL.
Jun 12 09:57:39 hardwork kernel: wls3: deauthenticating from 64:66:b3:50:c2:a6 by local choice (Reason: 3=DEAUTH_LEAVING)
Jun 12 09:57:39 hardwork kernel: IPv6: ADDRCONF(NETDEV_UP): wls3: link is not ready
Jun 12 09:57:39 hardwork wpa_supplicant[434]: wls3: CTRL-EVENT-DISCONNECTED bssid=64:66:b3:50:c2:a6 reason=3 locally_generated=1
Jun 12 09:57:39 hardwork wpa_supplicant[434]: nl80211: deinit ifname=wls3 disabled_11b_rates=0
Jun 12 09:57:39 hardwork wpa_supplicant[434]: wls3: CTRL-EVENT-TERMINATING
Jun 12 09:57:38 hardwork connmand[384]: Terminating
Jun 12 09:57:38 hardwork systemd[1]: session-c2.scope: Killing process 732 (menu-cached) with signal SIGKILL.
Jun 12 09:57:38 hardwork connmand[384]: Remove interface ens2 [ ethernet ]
Jun 12 09:57:38 hardwork systemd[1]: Stopped Session c2 of user daniel.
Jun 12 09:57:38 hardwork connmand[384]: Remove interface wls3 [ wifi ]
Jun 12 09:57:38 hardwork systemd[1]: session-c2.scope: Unit entered failed state.
Jun 12 09:57:39 hardwork connmand[384]: ens2 {remove} index 2
Jun 12 09:57:38 hardwork systemd[1]: Removed slice User Slice of daniel.
Jun 12 09:57:39 hardwork connmand[384]: wls3 {remove} index 3
Jun 12 09:57:38 hardwork systemd[1]: Stopping Permit User Sessions...
Jun 12 09:57:39 hardwork connmand[384]: Exit
Jun 12 09:57:38 hardwork systemd[1]: Stopping Login Service...
Jun 12 09:57:38 hardwork systemd[1]: Stopped Permit User Sessions.
Jun 12 09:57:38 hardwork systemd[1]: Stopped target Network.
Jun 12 09:57:38 hardwork systemd[1]: Stopping WPA supplicant...
Jun 12 09:57:38 hardwork systemd[1]: Stopping Connection service...
Jun 12 09:57:38 hardwork systemd[1]: Stopped target Remote File Systems.
Jun 12 09:57:38 hardwork systemd[1]: Stopped WPA supplicant.
Jun 12 09:57:38 hardwork systemd[1]: Stopped Login Service.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Connection service.
Jun 12 09:57:39 hardwork systemd[1]: Stopping D-Bus System Message Bus...
Jun 12 09:57:39 hardwork systemd[1]: Stopped D-Bus System Message Bus.
Jun 12 09:57:39 hardwork systemd[1]: Failed to propagate agent release message: Connection reset by peer
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Basic System.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Slices.
Jun 12 09:57:39 hardwork systemd[1]: Removed slice User and Session Slice.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Sockets.
Jun 12 09:57:39 hardwork systemd[1]: Closed CUPS Scheduler.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Paths.
Jun 12 09:57:39 hardwork systemd[1]: Stopped CUPS Scheduler.
Jun 12 09:57:39 hardwork systemd[1]: Closed D-Bus System Message Bus Socket.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target System Initialization.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Encrypted Volumes.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Update is Completed.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Rebuild Journal Catalog.
Jun 12 09:57:39 hardwork systemd[1]: Stopping Load/Save Random Seed...
Jun 12 09:57:39 hardwork systemd[1]: Stopped Rebuild Dynamic Linker Cache.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Apply Kernel Variables.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Rebuild Hardware Database.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Load Kernel Modules.
Jun 12 09:57:39 hardwork systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:acpi_video0...
Jun 12 09:57:39 hardwork systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Jun 12 09:57:39 hardwork systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Jun 12 09:57:39 hardwork systemd[1]: Stopping Network Time Synchronization...
Jun 12 09:57:39 hardwork systemd[1]: Stopped Load/Save Random Seed.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Network Time Synchronization.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Jun 12 09:57:39 hardwork systemd[1]: Removed slice system-systemd\x2dbacklight.slice.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Create Volatile Files and Directories.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Local File Systems.
Jun 12 09:57:39 hardwork systemd[1]: Unmounting /boot...
Jun 12 09:57:39 hardwork systemd[1]: Unmounting /home...
Jun 12 09:57:39 hardwork systemd[1]: Unmounting /run/user/1000...
Jun 12 09:57:39 hardwork systemd[1]: Unmounting Temporary Directory...
Jun 12 09:57:39 hardwork systemd[1]: Unmounted /run/user/1000.
Jun 12 09:57:39 hardwork systemd[1]: Unmounted Temporary Directory.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Swap.
Jun 12 09:57:39 hardwork systemd[1]: Deactivating swap /swapfile...
Jun 12 09:57:39 hardwork systemd[1]: Deactivated swap /swapfile.
Jun 12 09:57:39 hardwork systemd[1]: Unmounted /boot.
Jun 12 09:57:39 hardwork systemd[1]: Stopped File System Check on /dev/disk/by-uuid/5d008159-6aa0-4e91-a03b-3a0a24aef656.
Jun 12 09:57:39 hardwork systemd[1]: Unmounted /home.
Jun 12 09:57:39 hardwork systemd[1]: Reached target Unmount All Filesystems.
Jun 12 09:57:39 hardwork systemd[1]: Stopped File System Check on /dev/disk/by-uuid/06310634-a30f-43ac-bca7-5c331e49b37e.
Jun 12 09:57:39 hardwork systemd[1]: Removed slice system-systemd\x2dfsck.slice.
Jun 12 09:57:39 hardwork systemd[1]: Stopped target Local File Systems (Pre).
Jun 12 09:57:39 hardwork systemd[1]: Stopped Create Static Device Nodes in /dev.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Create System Users.
Jun 12 09:57:39 hardwork systemd[1]: Stopped Remount Root and Kernel File Systems.
Jun 12 09:57:39 hardwork systemd[1]: Reached target Shutdown.
Jun 12 09:57:39 hardwork systemd[1]: Reached target Final Step.
Jun 12 09:57:39 hardwork systemd[1]: Starting Power-Off...
Jun 12 09:57:39 hardwork systemd[1]: Shutting down.
Jun 12 09:57:39 hardwork kernel: systemd-shutdow: 53 output lines suppressed due to ratelimiting
Jun 12 09:57:40 hardwork systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Jun 12 09:57:40 hardwork systemd-journald[177]: Journal stopped

I'm not sure, but look at lines 38-41, 49, 79-81, and specially at 111-112 (1:38 minutes between them): I think there are the clues.

Is anyone suffering similar troubles? Could anyone confirm my suspection?
Must I file a bug to LXQt or/and SDDM developers? I'm pretty sure that isn't a Arch Linux bug...

Best regards,
DanielH

P.S.: forgive me my bad english, I'm argentinian and only speak spanish.

Offline

#2 2017-06-19 07:48:54

ArthurBorsboom
Member
Registered: 2014-05-20
Posts: 55

Re: LXQt and SDDM shutdown/reboot issues

Hi Daniel,

I believe I am experiencing the same issue and I have filed a bug report at the LXQt site.
Maybe you can add your experiences and information to it, increasing the need for a fix and adding hopefully missing information?

lxqt-panel: reboot takes a long time

Best regards,
Arthur.

Offline

#3 2017-06-25 14:29:30

DanielH
Member
From: Mar del Plata, Argentina
Registered: 2014-03-11
Posts: 28

Re: LXQt and SDDM shutdown/reboot issues

@Arthur:

First of all, please forgive me for my delayed reply to your tips on this bug.
Thanks for your advise!

Now I'm following https://github.com/lxde/lxqt/issues/1311 , it seems a very complicated issue and out of my knowledge scope...

I'm still dodging this bug, closing LXQt session by Logout and then shutting down my system by Poweroff button in SDDM greeter.
BTW: one of my notebooks, wich have SDDM and automatic login, I had to disable Relogin in /etc/sddm.conf to allow execute Logout properly:

# Whether sddm should automatically log back into sessions when they exit
Relogin=false
....

I hope LXQt developers can solve this issue soon.

LXQt is my last choice on DE, I've already used KDE, GNOME, MATE, XFCE (bloated and heavy things, I think).
LXQT is lightweight, visually clean, and Qt based: the vast majority of apps that I use runs using Qt(4|5) framework.
A very few exceptions: KiCAD, Arduino, Audacity, Usbpicprog (for my work); Chromium (rarely, I prefer Qupzilla), Linphone, Xsane, galculator, gucharmap, blueman (general usage).

Best regards,
Daniel.

Offline

Board footer

Powered by FluxBB