Niri loses input randomly after loading some time on my laptop #72
Labels
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 9 minutes 35 seconds
Due date
Vylpes
9 minutes 35 seconds
No due date set.
Dependencies
No dependencies set
Reference
Vylpes/dotfiles#72
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Also seems to very quickly some back after waiting from sleep
Investigation notes (from desktop session + synced dotfiles)
I can't reproduce on this machine (desktop), so this is config + symptom analysis for the laptop.
Symptom pattern
Works for ~1 minute → keyboard and trackpad die → sleep/wake briefly restores input → dies again.
That pattern usually means something re-applies a bad state on a timer (idle lock / monitor power-off / input grab), not a one-shot startup race.
Strongest suspect: DMS idle / lock / DPMS
You're running DankMaterialShell (
dms.service) on niri. DMS owns idle → lock → monitor-off viaIdleMonitor. There are known DMS+niri issues around lock + powered-off monitors not waking cleanly, and stuck input after sleep.On the synced
settings.jsonhere, idle timeouts are unset (defaults to Never /0). Please check on the laptop under DMS Settings → Power & Sleep whether Lock / Turn off monitors is set to ~1 minute on battery.Quick checks when it next dies (from a phone SSH / another TTY):
If restarting DMS restores input → it's DMS grab/lock related.
If Ctrl+Alt+F3 still works but niri doesn't → seat/compositor input path.
If TTY switch also dead → kernel/libinput/hardware.
Config smells in the current niri setup
spawn-at-startup "waybar"is still enabled while DMS is the shell/bar. That should be removed so only DMS runs.dms/outputs.kdlonly definesDP-4/DP-5(desktop monitors). Fine if ignored on laptop, but laptop should have its owneDP-1profile (yadm class/hostname) so DMS doesn't keep rewriting desktop outputs onto the laptop.dms/input.kdlexists but is notincluded inconfig.kdl.swaylockbind still present + DMSSuper+Shift+Zlock.Next experiments on the laptop
systemctl --user stop dms(or mask) and see if input still dies after ~1 min.spawn-at-startup "waybar"and retest.dms doctor -vC+ the journal snippet above when it happens.Happy to turn the config cleanups into a PR once we confirm which experiment fixes it.
Update: switched from DMS to Noctalia
I've moved the shell from DankMaterialShell to Noctalia (
noctalia5.2.1) to test whether DMS idle/lock/DPMS was causing the input freeze.spawn-at-startup "noctalia"dms.serviceis no longer in useIf the keyboard/trackpad stop responding after ~1 minute was DMS-related, this should fix it. Will retest on the laptop and report back.
Note: Noctalia also has its own idle/lock handling — if the issue persists, check those timeouts next before assuming it's niri itself.