You are not logged in.
I triggered again this problem today after I tried to run "sudo doublecmd" from double's commander command prompt(I shouldn't but I did!).
But I had this problem some other times in the past which caused from other reasons. The situation is the same though. The problem is that the desktop locked and seems that all tasks get a paused signal and nothing works except the mouse cursor which can move normally but no click registered. I can login to another tty. The first thing I try is to run htop and try to kill the effective task. This time I tried to kill sudo and doublecmd, but I couldn't until I ran htop as root. But this didn't unlock the desktop because all other tasks are paused. So I started to select tasks in htop and select the sigcont. But usually there are a lot of tasks and this takes a lot of time. This time I did it for about 50 and I managed to logout the session.
So, is any better and faster way to get out of this situation and without the need to logout?
(this time it happens with cinnamon, but I had the same problem with xfce or openbox in the past)
Last edited by zaxdan69 (2022-12-17 11:16:02)
Offline
I'd first and foremost check why "sudo something" stops a lot of processes (some TSTP?)
How do you start the session and what's the output of "loginctl session-status"
"killall -u zaxdan69 -s SIGCONT" should™ continue all processes of that user, but I don't understand "the need to logout" - why do you "need" to logout?
You just want to continue the processing of your session err… processes, don't you?
Offline
I used "sudo" from double commander's command line, not the terminal, so there wasn't a prompt to input my password. It was my mistake. The important is how to get out from this situation if happens again(because it happened to me some other times in the past).
I start the session via xinit and here is the output of "loginctl session-status":
6 - archuser (1000)
Since: Sat 2022-12-17 11:27:06 EET; 53min ago
Leader: 18500 (login)
Seat: seat0; vc1
TTY: tty1
Service: login; type x11; class user
State: active
Unit: session-6.scope
├─18500 "login -- archuser"
├─18527 -bash
├─18599 /bin/sh /usr/bin/startx
├─18614 xinit /home/archuser/.xinitrc -- /home/archuser/.xserverrc :1 vt1 -keeptty -auth /tmp/serverauth.dKADNcvQhJ
├─18615 /usr/lib/Xorg -nolisten tcp :1 vt1 -keeptty -auth /tmp/serverauth.dKADNcvQhJ vt1
├─18640 sh /home/archuser/.xinitrc
├─18647 dbus-run-session cinnamon-session
├─18648 dbus-daemon --nofork --print-address 4 --session
├─18649 cinnamon-session
├─18658 /usr/lib/gvfsd
├─18665 /usr/lib/at-spi-bus-launcher
├─18669 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 10 --address=unix:path=/run/user/1000/at-spi/bus_1
├─18680 /usr/lib/at-spi2-registryd --use-gnome-session
├─18687 csd-screensaver-proxy
├─18688 csd-wacom
├─18689 csd-housekeeping
├─18690 csd-print-notifications
├─18691 csd-automount
├─18692 csd-a11y-settings
├─18693 csd-media-keys
├─18694 csd-xsettings
├─18699 csd-keyboard
├─18704 csd-background
├─18708 csd-color
├─18711 csd-power
├─18712 csd-clipboard
├─18745 /usr/lib/gvfs-udisks2-volume-monitor
├─18756 /usr/lib/dconf-service
├─18769 /usr/lib/cinnamon-settings-daemon/csd-printer
├─18785 /usr/lib/gvfsd-burn --spawner :1.1 /org/gtk/gvfs/exec_spaw/0
├─18792 /usr/lib/gvfs-mtp-volume-monitor
├─18798 cinnamon-launcher
├─18822 cinnamon --replace
├─18855 /usr/lib/gvfsd-metadata
├─18858 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
├─18859 /usr/bin/cmst -w15
├─18860 /usr/bin/python /usr/bin/blueman-applet
├─18861 /usr/lib/evolution-data-server/evolution-alarm-notify
├─18862 /usr/lib/geoclue-2.0/demos/agent
├─18863 python3 /home/useful/pysnoozeshutdown/snoozeShutdown.py
├─18868 pamac-tray
├─18873 /usr/lib/xdg-desktop-portal
├─18875 /bin/bash /usr/lib/huiontablet/huiontablet.sh
├─18883 zeitgeist-datahub
├─18886 pasystray
├─18887 /usr/lib/xdg-document-portal
├─18888 xpad
├─18890 /usr/bin/gnome-pie
├─18896 cinnamon-killer-daemon
├─18899 birdtray
├─18900 /usr/lib/xdg-permission-store
├─18918 /usr/bin/conky ">>/dev/null" "2>&1"
├─18921 /usr/bin/zeitgeist-daemon
├─18926 /usr/lib/huiontablet/huionCore -d
├─18935 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
├─18953 /usr/lib/xdg-desktop-portal-gtk
├─18955 /usr/lib/zeitgeist/zeitgeist-fts
├─19007 /usr/lib/evolution-source-registry
├─19054 /usr/lib/goa-daemon
├─19059 /usr/lib/pxgsettings org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.ftp org.gnome.system.proxy.socks
├─19074 /usr/lib/goa-identity-service
├─19095 /usr/lib/evolution-calendar-factory
├─19107 /usr/lib/evolution-addressbook-factory
├─19141 /usr/lib/xapps/sn-watcher/xapp-sn-watcher
├─19155 /usr/bin/python /usr/bin/blueman-tray
├─19201 /usr/lib/huiontablet/huiontablet -d
├─19331 /usr/bin/python3 /usr/share/system-config-printer/applet.py
├─19380 /usr/lib/thunderbird/thunderbird
├─19486 /usr/lib/thunderbird/thunderbird -contentproc -childID 1 -isForBrowser -prefsLen 24084 -prefMapSize 240526 -jsInitLen 277540 -parentBuildID 20221213212050 -appDir /usr/lib/thunderbird 19380 tab
├─19550 /usr/lib/thunderbird/thunderbird -contentproc -childID 2 -isForBrowser -prefsLen 26875 -prefMapSize 240526 -jsInitLen 277540 -parentBuildID 20221213212050 -appDir /usr/lib/thunderbird 19380 tab
├─19576 /usr/lib/thunderbird/thunderbird -contentproc -childID 3 -isForBrowser -prefsLen 26932 -prefMapSize 240526 -jsInitLen 277540 -parentBuildID 20221213212050 -appDir /usr/lib/thunderbird 19380 tab
├─19725 /usr/lib/firefox/firefox
├─19825 /usr/lib/firefox/firefox -contentproc -parentBuildID 20221216153905 -prefsLen 36312 -prefMapSize 241285 -appDir /usr/lib/firefox/browser {a804b276-11a2-457d-a298-85fe96229cfc} 19725 true socket
├─19857 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 37233 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {439fe244-d33f-4bd1-8649-7f3dccf412e3} 19725 true tab
├─19888 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 37595 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {89ed95bd-2a49-462a-bd67-ff936a582cfd} 19725 true tab
├─19892 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 37595 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {d6a44330-5583-4b2f-ab88-7ff5d4cb1829} 19725 true tab
├─19896 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 37595 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {dd2d82c1-d974-4dfe-b98d-7614dbc1fc2f} 19725 true tab
├─19900 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 37595 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {75743330-102c-4e57-ad24-006b610c4c8f} 19725 true tab
├─19912 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 37595 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {fad92ca4-f426-402a-8471-2e7b29620ec8} 19725 true tab
├─20074 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 42132 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {71699930-7d7a-4dee-b670-1e58cde8ad07} 19725 true tab
├─20228 /usr/lib/firefox/firefox -contentproc -childID 10 -isForBrowser -prefsLen 42283 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {e09689f7-1190-4b08-8616-cc0ab8de6a2b} 19725 true tab
├─20298 /usr/lib/firefox/firefox -contentproc -childID 11 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {655cd1c8-6892-4908-9211-25985214ffea} 19725 true tab
├─20336 /usr/lib/firefox/firefox -contentproc -parentBuildID 20221216153905 -sandboxingKind 0 -prefsLen 42293 -prefMapSize 241285 -appDir /usr/lib/firefox/browser {59c5dd98-0346-448e-8825-31217dc0ea4f} 19725 true utility
├─23078 /usr/lib/firefox/firefox -contentproc -childID 20 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {710fa53a-e539-4cd7-a449-d171838b1929} 19725 true tab
├─23314 /usr/lib/firefox/firefox -contentproc -childID 22 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {b1e31e74-8b9f-4797-9204-84886a619aed} 19725 true tab
├─23426 /usr/bin/wezterm-gui
├─23438 -bash
├─23787 /usr/lib/doublecmd/doublecmd --service 23718
├─23938 /usr/lib/firefox/firefox -contentproc -childID 23 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {d9d5a32f-08bf-4f72-afd2-fafdaad8e29f} 19725 true tab
├─24431 /usr/lib/firefox/firefox -contentproc -childID 24 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {3eb0b533-d8b5-4ccc-9ed4-60fe58b514ec} 19725 true tab
├─24782 /usr/lib/firefox/firefox -contentproc -childID 25 -isForBrowser -prefsLen 42293 -prefMapSize 241285 -jsInitLen 246772 -parentBuildID 20221216153905 -appDir /usr/lib/firefox/browser {107cd874-5e01-430f-82ae-f6f4d2b913ac} 19725 true tab
└─25039 loginctl session-status
Δεκ 17 12:05:01 archlinux-pc1 sudo[23575]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Δεκ 17 12:05:01 archlinux-pc1 sudo[23575]: archuser : TTY=pts/0 ; PWD=/home/archuser ; USER=root ; COMMAND=/usr/bin/nano /usr/share/polkit-1/actions/doublecmd.policy
Δεκ 17 12:05:01 archlinux-pc1 sudo[23575]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Δεκ 17 12:05:56 archlinux-pc1 sudo[23575]: pam_unix(sudo:session): session closed for user root
Δεκ 17 12:05:59 archlinux-pc1 polkit-agent-helper-1[23660]: pam_systemd_home(polkit-1:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Δεκ 17 12:06:05 archlinux-pc1 pkexec[23655]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Δεκ 17 12:06:05 archlinux-pc1 pkexec[23655]: archuser: Executing command [USER=root] [TTY=/dev/pts/0] [CWD=/home/archuser] [COMMAND=/usr/bin/doublecmd]
Δεκ 17 12:06:52 archlinux-pc1 polkit-agent-helper-1[23793]: pam_systemd_home(polkit-1:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Δεκ 17 12:06:58 archlinux-pc1 pkexec[23787]: pam_unix(polkit-1:session): session opened for user root(uid=0) by (uid=1000)
Δεκ 17 12:06:58 archlinux-pc1 pkexec[23787]: archuser: Executing command [USER=root] [TTY=unknown] [CWD=/home/archuser] [COMMAND=/usr/lib/doublecmd/doublecmd --service 23718]I needed to logout because I didn't unpaused all tasks(was to many) in htop, so there are some still in paused state and I didn't want to waste more time. I'm using a custom application for logout/reboot etc which autostarts and stays in system tray. So when I get access to this app I logout and re-login.
EDIT:
I tested the "killall.." command you posted by intentionally lock the desktop again and works after I successfully kill the infected command(sudo in this case). Thanks!
Last edited by zaxdan69 (2022-12-17 11:15:41)
Offline
├─18500 "login -- archuser"
├─18527 -bash
├─18599 /bin/sh /usr/bin/startx
├─18614 xinit /home/archuser/.xinitrc -- /home/archuser/.xserverrc :1 vt1 -keeptty -auth /tmp/serverauth.dKADNcvQhJ
├─18615 /usr/lib/Xorg -nolisten tcp :1 vt1 -keeptty -auth /tmp/serverauth.dKADNcvQhJ vt1
├─18640 sh /home/archuser/.xinitrcI suspect the bash - startx - xinit allows to leak signals into the parenting shell.
What if you cut out startx and "exec xinit"?
Also, though likely not related
dbus-run-session cinnamon-sessionYou should™ not dbus-run-anything here, please see the 2nd not in the last link below and compare that to your xinitrc.
Offline
I used wiki's suggestion(If I remeber well because past a long time after I configure it) to autostart X, but I changed it now to "exec xinit".
I'm using dbus-run-session because I used to have 2 different Xservers running and file select dialogs and notifications opened in the wrong x-session.
Offline