Shell wedges alive while idle-locked: IPC keeps serving stale lock state, the session-lock client dies, and omarchy-restart-shell refuses to recover
System details
Omarchy 4.0.2-1, Quickshell 0.3.1-1, Hyprland 0.56.2-1, 1password 8.12.34-35, linux 7.1.9-arch1-2.
Laptop, hybrid GPU: Intel CometLake-H UHD (i915, eDP-1) + NVIDIA GTX 1650 Mobile (nvidia-open-dkms). Single internal display, no external monitor. Wayland, uwsm session.
What's wrong
Twice in one night, quickshell wedged while the session was idle-locked. The process stayed alive and its IPC kept answering, but it stopped logging entirely and its ext-session-lock client died — leaving Hyprland's crashed-lockscreen failsafe on screen until morning.
The dangerous part is that IPC keeps serving the lock state the shell last reached, so the shell reports a healthy, secure lock long after its locker is gone:
$ omarchy-shell lock status
{"locked":true,"requested":true,"pending":false,"sessionLocked":true,
"secure":true,"realScreens":1,...,"lastEvent":"secure=true",
"lastEventAt":"2026-09-06T16:02:06.569Z"} <- 4h39m stale
omarchy-restart-shell then refuses to recover it. Its guard reads exactly that status to decide whether a live locker is worth preserving:
Refusing to restart Omarchy shell while the session is locked.
So the documented way out of the failsafe is blocked by the very state it exists to clear. The wedge is in the event loop, not the IPC thread, so a dead locker is indistinguishable from a healthy one over IPC. Short of patching a copy of the script, the only way back in is a reboot.
Occurrences
Both times: shell alive, solitaryBlockedBy contains LOCK, zero log lines afterwards.
| locked at | last log line | silent for | shell PID | |
|---|---|---|---|---|
| 1 | 20:14:16 | 20:36:43 | 5h16m | 20183 |
| 2 | 02:02:06 | 02:13:08 | 4h39m | 267461 |
No suspend was involved in either — the last suspend was hours before (PM: suspend exit at 20:01:13). The system journal has nothing at all in the surrounding minute in either case.
What is not the trigger
Both wedges end on an identical pair of lines, which looks like a smoking gun and is not one:
1password[1401]: Lock state changed: Locked
omarchy-shell[...]: WARN quickshell.dbus.properties: Error updating property
:1.41/StatusNotifierItem/org.kde.StatusNotifierItem:IconName
omarchy-shell[...]: WARN quickshell.dbus.properties: QDBusError(
"org.freedesktop.DBus.Error.Failed", "error occurred in Get")
:1.41 is 1Password, whose tray icon changes as it auto-locks. But this pair fires on all seven idle lock-timeouts across the two nights, including the five the shell survived. It is simply the last thing logged in every idle-lock cycle, so it is also the last thing logged before silence. Recording it here so nobody else spends time on it.
I could not find anything that distinguishes the two wedges from the five healthy locks. The trigger remains unidentified; the reproducer is only "leave the session idle-locked and wait", which hit twice in two nights here.
Relationship to #10108
Related but distinct. #10108 is IPC-dead (omarchy-shell is not responding), follows an S3 resume on a single-GPU NVIDIA desktop, leaves a stale background layer covering the desktop, and fails restart with An instance of this configuration is already running.
Here IPC stays alive and answers, there is no suspend, the visible result is Hyprland's lock failsafe rather than a stale wallpaper, and restart fails by refusing rather than aborting. The common thread is a quickshell that wedges without dying, so the supervision path never fires.
Suggested fix for the recovery half
Whatever causes the wedge, being unable to recover from it without a reboot seems worth fixing on its own. A --force flag on omarchy-restart-shell that skips the live-locker guard and goes straight to its existing relock path is enough — someone looking at the failsafe knows the lock screen is dead even when IPC insists otherwise. PR to follow.
Hit this twice in one evening on very similar hardware. Adding data rather than opening a third issue, since this and #10108 already bracket the failure.
Same class, one distinguishing difference: in both of my cases the lock surface stayed intact — an ordinary, correctly focused password box, not Hyprland's lockdead failsafe. Your client died and left the failsafe up; mine did not. With misc:lockdead_screen_delay = 1000 a dead client would have raised the failsafe within a second, so the shell was still presenting its last committed frame. The visible result is worse than a broken-looking screen: nothing indicates anything is wrong, so the natural reaction is to keep typing.
Both times the only way out was a hard power-off.
Environment
Omarchy 4.0.2-1, Quickshell 0.3.1-1, Hyprland 0.56.2-1, nvidia-open-dkms / nvidia-utils 610.57.04-1, linux 7.1.9-arch1-2. Laptop, hybrid: Intel Arrow Lake iGPU (i915, single internal eDP-1) + NVIDIA RTX 5070 Mobile. Wayland, uwsm session. misc:allow_session_lock_restore = true. Notably the shell renders on the iGPU (renderD129 → i915); only Hyprland holds /dev/nvidia0.
Suspend duration is the only variable that separates good from bad
Unlike your case, mine always followed a suspend — and every lid-close cycle in the retained journal splits cleanly by duration:
| Suspended for | Outcome |
|---|---|
| 8m 45s | unlocked normally |
| 29m 34s | unlocked normally |
| 2h 50m 38s | wedged, hard reset |
| 3h 11m 56s | wedged, hard reset |
A healthy cycle logs the unlock 9s after resume. A wedged one is identical up to resume, then silent forever:
19:02:44 omarchy lock lock-requested
19:02:44 omarchy lock lock-pending: screen-stabilizing
19:02:44 omarchy lock secure=true
19:02:44 kernel: PM: suspend entry (s2idle)
22:14:39 systemd-logind: Lid opened.
22:14:40 kernel: PM: suspend exit
(omarchy-shell never logs again)
22:15:18 systemd-logind: Power key pressed short.
The rest of the session resumed correctly, which is worth stressing: Hyprland re-read the keyboard and pushed a fresh keymap to Xwayland 3s after lid-open, NetworkManager reassociated, Syncthing reconnected, Tailscale logged time jump detected (slept 3h11m54s). The compositor was alive and receiving my keystrokes; it just had nowhere to deliver them. No core dump, so no fatal signal.
I diffed the kernel resume path line by line between a good 30-minute resume and a bad 3-hour one — identical. The only PM: errors are spd5118 DDR5 SPD-hub resume failures (-6), and those appear in the successful resumes too, so they are not implicated.
Two things that may save others time
1. omarchy-restart-shell needs to SIGKILL before relaunching. Your report and #10108 document it failing in opposite ways for the same root reason — you get "Refusing to restart Omarchy shell while the session is locked" because IPC still answers secure: true; #10108 gets "An instance of this configuration is already running" because the wedged pid never exits. Killing the process first collapses both: with the pid gone there is no instance to collide with and no stale IPC to be believed, and omarchy-restart-shell then sees a lock with no locker — exactly the case it is written for — and re-takes it. That one ordering change to the stock command would turn this from "reboot" into "one command", without needing to detect anything.
2. Quickshell installs its own SIGABRT handler and re-execs. Anyone reaching for SIGABRT to force a core dump should know the core is written by a forked child under a different pid than the one signalled (I signalled 46522; the 30.6 MB core landed under 50832), while the main process re-execs and re-locks. So coredumpctl info <pid> reports "No coredumps found" while the dump exists — query by executable instead. This is presumably the same crash-handler re-exec that omarchy-restart-shell's own comments already mention.
On detecting this automatically
I built a poll-based watchdog before reading this issue, and your line —
The wedge is in the event loop, not the IPC thread, so a dead locker is indistinguishable from a healthy one over IPC.
— invalidated the approach, so it is worth recording what does not work. An IPC ping only catches the #10108 mode. The obvious fallback, treating a stale lock status.lastEventAt as the signal, is also useless: a healthy locked session emits no lock events either. Locally a perfectly good lock ran 6h11m between secure=true and unlocked, which is indistinguishable from a wedge by that measure.
What does work regardless of mode is a keybind, because Hyprland itself never wedged in any observed case. A bind declared with locked = true is still delivered while the session lock is up, so a key can invoke recovery from the frozen lock screen with no detection required. I have that bound, with the combo drawn on the lock screen itself — and it has to be rendered unconditionally, since a wedged shell produces no new frames and anything not already on screen will never appear. Verified end-to-end on a genuinely locked session: the bind fired, the shell was killed and relaunched, the session re-locked, and the password worked.
Happy to open a PR for the omarchy-restart-shell kill escalation if that is wanted.
What I do not have yet
A capture from an actual wedge. Both instances predate any instrumentation and the shell's log.qslog lives on tmpfs, so both hard resets destroyed it — which I suspect is why the trigger is still unidentified across all three reports. I now capture that ring buffer, per-thread wchan, thread CPU, and a forced core on detection, and will follow up here with real data the next time it happens rather than more inference.
Thanks — this is the most useful thing anyone has added to this issue, and the suspend-duration table is the first hard signal any of the three reports has produced. Nearly identical hardware here (Intel Arrow Lake iGPU + RTX 5070 Mobile, same 7.1.9-arch1-2, shell on the iGPU, uwsm), so I'll take the correlation seriously.
Your point that killing the process first collapses both failure modes is right, and I've now verified the mechanism locally. Two things I found while implementing it that should go into the PR, because neither is obvious from reading the script:
1. quickshell kill cannot be the escalation — it has no signal option
quickshell kill --help exposes only instance selectors (--id, --pid, --config, --path), no signal. It is IPC-mediated, and omarchy-restart-shell's own comment at that line ("only returns once it has fully exited") is describing cooperative behaviour. So in your wedge mode it cannot be serviced at all: timeout 5 fires, the while loop exits nonzero and silently, and the relaunch at the next line collides with the live pid — which is exactly #10108's message. The escalation has to be a real kill -TERM → kill -KILL by pid after that loop, not a flag on it.
2. A bare SIGKILL races the supervisor, so omarchy-launch-shell has to be stopped first
This one bit me. The shell is not a bare process — omarchy-launch-shell supervises it, and its loop relaunches on any nonzero exit, up to 5 attempts in 60s. SIGKILL is a nonzero exit, so killing only the shell hands you a supervisor-spawned instance ~1s later, which then collides with omarchy-restart-shell's own hyprctl dispatch exec_cmd relaunch.
The ordering that works: kill -TERM the supervisor first. Its stop trap sets terminating=1 and forwards TERM to the shell, so when the shell finally dies — including by our SIGKILL — run_shell returns, the loop sees terminating and exits 0 instead of relaunching. Then SIGKILL the shell, then the supervisor unwinds on its own.
A gotcha for anyone finding these pids: the supervisor's comm is omarchy-launch-, not bash — bash renames itself to the script basename and TASK_COMM_LEN truncates it at 15 chars. pgrep -x bash finds nothing. Matching /proc/<pid>/cmdline, or just taking the shell's PPid, both work.
On your other points
- The
SIGABRTre-exec / forked-child core. Confirmed useful —coredumpctl info <pid>reporting nothing while a core exists under a different pid would have cost me an evening. Worth putting in the docs, not just this thread. - The
locked = truekeybind. Agreed this is the only thing that works across both modes, and your reasoning about why detection can't work matches mine — I had also convinced myself a stalelastEventAtwas the answer before noticing a healthy lock is equally silent. Rendering the combo unconditionally on the lock surface is the detail I would have got wrong. - Your intact lock surface vs. my failsafe. Agreed these are two presentations of one bug, and yours is the nastier one to be on the receiving end of. I have no evidence either way yet on whether the trigger is shared.
PR
Please do open it — I have not started one, and you have the better test cases. If it helps, my local recovery script now implements exactly the ordering above (supervisor TERM → cooperative kill → shell TERM → shell KILL → stock script, which then takes its "locker is dead" branch unaided because the dead pid answers no IPC). Happy to hand that over or review.
One caveat on my end: I have verified the process/parentage handling against a healthy session, not yet against a live wedge — like you, I am waiting for the next one. I have the shell's ring buffer, per-thread wchan and a forced core being captured on trigger now, so I should have something concrete to post next time rather than more inference.
I read this report and the thread, and checked the restart, launcher and lock code on quattro (3882c27cf). I also ran the recovery path on a worker VM with Quickshell 0.3.1 and Hyprland 0.56.2.
The wedge itself was not reproduced. It needs hours idle-locked or suspended, and so far it has only been seen on hybrid NVIDIA laptops. Nothing in either report tells the two wedges apart from the healthy locks, so its cause is still open. A capture from the next occurrence, like the one @rogerfsh describes, is what would move it.
The refusal is confirmed in the source. bin/omarchy-restart-shell:29-35 decides whether a live locker is worth preserving only from the shell's own lock status, and it refuses on secure or requested. The one thing Hyprland reports is LOCK in solitaryBlockedBy (bin/omarchy-hyprland-session-locked), and that stays set after the lock client dies. So there is no second source that can tell a dead locker from a live one. A shell that answers IPC with stale state blocks recovery, exactly as described.
A way back in without a reboot, tested on the worker: from a TTY or over ssh, kill the shell process itself (not omarchy-launch-shell):
pkill -KILL -x quickshell
The launcher sees the shell exit with status 137 and relaunches it. The new shell finds the stranded lock (shell/plugins/lock/Service.qml:115-132) and locks again. On the worker, the password prompt was back about 2 seconds after the kill and the lock reported secure=true. All of this has shipped since v4.0.0, so it applies to 4.0.2. If the launcher is gone too, omarchy-restart-shell works after the kill: with the shell dead, nothing answers lock status, so the guard passes and the script takes its dead-locker path.
Removing the guard alone would not be enough. quickshell kill asks the instance to exit over IPC and sends no signal. A shell that cannot tear down survives it, and the relaunch's -n then exits 0 without starting anything, which is the failure #10108 describes. A complete fix needs both a way past the guard and a signal escalation. #10108 is related but not the same change, so it stays its own issue.
There are three open pull requests on this path, each taking a different approach: #10547 by @codemonkey76 adds --force, #12983 adds a SIGTERM/SIGKILL fallback after the IPC kill, and #11240 moves the locker into its own shell. All three currently conflict with quattro. Which approach to take is the maintainer's decision. #10547 will get its own review.
A second opinion came from Codex at medium effort. It agreed with the reading of the guard and the workaround, though its independence is not guaranteed. It contributed the point above that quickshell kill sends no signal and that the -n relaunch then starts nothing.
This is waiting on the maintainer.