glazewm icon indicating copy to clipboard operation
glazewm copied to clipboard

[BUG] Preventing the display to turn off in lock screen

Open kimagin opened this issue 1 year ago • 11 comments

Normal behavior

When you hit win+L or manually lock windows 11, the default behavior is to turn of the screen after about 30 seconds. This is particularly important for the desktop users with an OLED display as the background is static and it can destroy the hardware.

The issue

While GlazeWM is running, if the user lock the window, after about 30 seconds, the screen turns black for a brief moment, but it loops back into the login screen. This infinit loop, prevents the screen to go to sleep mode.

Temporary solution

If you simply turn off GlazeWM by right clicking on the taskbar icons or via windows task manager, the issue will be resolved and the screen behaves as it should.

kimagin avatar Jan 23 '24 21:01 kimagin

I am noticing this behavior as well. Windows 11

Garulf avatar Jan 24 '24 15:01 Garulf

Fixed in the latest v2.1.1 release 🎉

lars-berger avatar Jan 24 '24 20:01 lars-berger

Can we open this back up? This issue is still occurring with a fresh install.

Happening here, Windows 11, multiple monitors.

katawajojo avatar Feb 05 '24 07:02 katawajojo

Same here, W11. I have an external monitor connected to a laptop. Laptop refuses to go to sleep even if the external monitor is powered off. I have to manually kill glazewm.

Kirupakaran avatar Mar 06 '24 05:03 Kirupakaran

This just happened to me about 11 times today at work.

Windows 11 22H2 + Windows 11 22H3 VM (VMWare Workstation Pro 17)

txj-xyz avatar Mar 06 '24 21:03 txj-xyz

Since my last reply, I just came into the office, both my laptop + second monitor were off.

CPU Usage was around 85% on idle from GlazeWM, once I rebooted the program everything was OK except all my window positions and layouts

txj-xyz avatar Mar 07 '24 14:03 txj-xyz

Noticing it here as well on Windows 11 23H2.

AfzGit avatar Apr 18 '24 14:04 AfzGit

Issue is very much unfixed. Screen is turning off momentarily, just to wake up right after. And lock screen only shows the wallpaper, no text with it. I'm using it on Windows 11 23H2 too.

thespeck avatar Jun 13 '24 15:06 thespeck

@thespeck The project is currently under a re-write so don't expect it to be fixed soon.

https://github.com/glzr-io/glazewm/issues/604

Lets hope it's fixed in the rewrite.

AfzGit avatar Jun 14 '24 03:06 AfzGit

I think I found a solution for this bug. GlazeWM should ignore Windows lock screen and not try to manage it. Adding the following lines to %USERPROFILE%\.glaze-wm\config.yaml should fix the problem.

window_rules:
  # Windows Lock Screen should be ignored.
  - command: "ignore"
    match_process_name: "/LockApp/"

thespeck avatar Jun 14 '24 11:06 thespeck

I think I found a solution for this bug. GlazeWM should ignore Windows lock screen and not try to manage it. Adding the following lines to %USERPROFILE%\.glaze-wm\config.yaml should fix the problem.

window_rules:
  # Windows Lock Screen should be ignored.
  - command: "ignore"
    match_process_name: "/LockApp/"

Works! Had to add this and then restart my PC. This looks like something that needs to be added in by default in the config YAML.

AfzGit avatar Jun 14 '24 12:06 AfzGit

I think I found a solution for this bug. GlazeWM should ignore Windows lock screen and not try to manage it. Adding the following lines to %USERPROFILE%\.glaze-wm\config.yaml should fix the problem.

window_rules:
  # Windows Lock Screen should be ignored.
  - command: "ignore"
    match_process_name: "/LockApp/"

Thanks for sharing this btw 🙌 It's been added as a built-in rule in v3

lars-berger avatar Aug 18 '24 06:08 lars-berger