Screen turns black sporadically
The screen turns black sporadically, either every few seconds or every few minutes, this becomes more often when using full screen windows.
I am using Arch with hyprland window manager CPU: Intel(R) Core(TM) Ultra 9 285H (16) @ 5.40 GHz GPU: Intel Arc Pro 130T/140T @ 2.35 GHz [Integrated] discrete GPU is a NVIDIA 5080 mobile Linux 7.0.5-arch1-1-g14
Hey which hyprland version are you using. And what hyproled command? This is very strange
Hi, thanks for the quick answer, I use hyprland version 0.55.4-1, however the problem happens since months, just I haven't thought until now about opening an issue here.
I run it from the keybinding like this: bind = , XF86TouchpadToggle, exec, ~/.config/hypr/scripts/oled_shift.sh bind = SHIFT , XF86TouchpadToggle, exec,hyproled off; pkill -f oled_shift.sh
which calls: ╰─ cat ~/.config/hypr/scripts/oled_shift.sh #!/bin/bash while true; do hyprctl --instance 0 dispatch -- exec "hyproled -s" sleep 20 done
However, running ╰─ watch -n 20 hyproled -s from the terminal gives almost no troubles, it only happened once in 2 days that the screen turned black, but it was after locking it, so maybe something went wrong in the background (maybe double process started somehow)
By the way, running just #!/bin/bash
while true; do hyproled -s sleep 20 done
It seems like that if with the previous sh the screen becomes black while having the browser in full screen, with the current one, the screen becomes black if I have the desktop with no windows in full screen, let me know if there is any diagnostic you want me to run. additional context: i found there was a broken instance of eww in the background, removing that seems to make the problem better and have the black screen happen less often
always glad to see people finding my publications useful :)
please try this version below. It has a lock mechanism to prevent race conditions. I have a feeling that you have multiple loops running + calling hyproled. Especially since your sleep is only 20 seconds it could lead to some overlaps where the shader is written by multiple calls and thus corrupt the shared which leads to black screen.
https://github.com/mklan/hyproled/blob/lock.file-improvements/hyproled
Still happening also with that version, the screen becomes black only if I am on firefox on youtube, if i am on a page without video it works fine.
by the way, even just calling hyproled, so without refreshing it, with firefox/chrome the screen turns black after few seconds
that is really odd. maybe NVIDIA is messing something up with wayland again =/. let's see if more users are affected