Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#4190·noctalia

[BUG] Idle wakes screen back up after lock action

Author: BBaoVanCCreated Sep 1, 2026Updated Sep 29, 2026
Labelsbugniriarch-based

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia.

Bug description

I have my idle service configured so it first turns screen off, then locks, then finally suspends. I noticed recently that it starts waking up after the lock, and waiting for the timeout to happen again before proceeding to suspend.

This is different from #3165, because all the actions actually do fire properly. It just causes screen to wake for some reason.

Steps to reproduce

  1. Configure idle service to have a lock action that happens while screen is off
  2. Wait for screen to turn off (it does)
  3. Wait for lock action to trigger -> the screen wakes up
  4. For the suspend to happen, the timeout has to wait starting from 0

Idle service section in my config

toml
[idle]
behavior_order = ["screen_off", "lock", "suspend"]
pre_action_fade_seconds = 5.0
[idle.behavior.screen-off]
timeout = 300
action = "screen_off"
[idle.behavior.lock]
timeout = 305
action = "lock"
[idle.behavior.suspend]
timeout = 310
action = "command"
# this is just a thing that I use to only sleep on certain computers, based on hostname
command = "~/.config/noctalia/scripts/sleep.sh"

Expected behavior

  1. Screen turns off after 300 seconds
  2. After 5 seconds, it locks (no visible effect as the screen should be off)
  3. After 5 more seconds, the system suspends

Actual behavior

  1. Screen turns off after 300 seconds
  2. Locked 5 seconds later, but the screen turns back on
  3. Another 300 or so seconds later (I assume 310), suspend triggers

Logs / error output

00:13:25.802 [INF] [idle] idle behavior 'screen-off' pre-action fade 5000ms
00:13:30.802 [INF] [idle] idle behavior 'lock' joined active pre-action fade
00:13:30.812 [INF] [idle] idle behavior 'screen-off' triggered after pre-action fade
00:13:31.114 [INF] [idle] idle behavior 'lock' triggered after pre-action fade
00:13:31.114 [INF] [session] lock requested: compositor=Niri env_hint="niri:niri:niri" xdg_session_id=2 user=bbaovanc
00:13:31.116 [INF] [lockscreen] session lock requested
00:13:31.116 [INF] [session] lock: lock screen requested
00:13:31.117 [INF] [texcache] hit /home/bbaovanc/wallpapers/evgeny-matveev-f4hR4QdFP04-unsplash.jpg (refCount=3)
00:13:31.146 [INF] [texcache] hit /home/bbaovanc/wallpapers/evgeny-matveev-f4hR4QdFP04-unsplash.jpg (refCount=4)
00:13:31.162 [INF] [fingerprint] no fprintd device available: [org.freedesktop.DBus.Error.ServiceUnknown] The name is not activatable
00:13:31.162 [INF] [lockscreen] session is locked
00:18:31.320 [INF] [idle] idle behavior 'screen-off' pre-action fade 5000ms
00:18:36.320 [INF] [idle] idle behavior 'lock' joined active pre-action fade
00:18:36.438 [INF] [idle] idle behavior 'screen-off' triggered after pre-action fade
00:18:36.685 [INF] [idle] idle behavior 'lock' triggered after pre-action fade
00:18:36.685 [INF] [session] lock requested: compositor=Niri env_hint="niri:niri:niri" xdg_session_id=2 user=bbaovanc
00:18:36.685 [INF] [session] lock: lock screen requested
00:18:41.320 [INF] [idle] idle behavior 'suspend' pre-action fade 5000ms
00:18:46.443 [INF] [idle] idle behavior 'suspend' triggered after pre-action fade

Noctalia version

v5.0.0_beta.10-1

Compositor

Niri

Distribution

Arch-based

Environment information

Installation method: Arch package

Additional context

I bisected and found that 9691c87ddaef4e8234d733d568ecf3376aea2159 introduces this issue.

Source: noctalia-dev/noctalia

View original on GitHubView discussion on GitHub