swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.77k stars 1.11k forks source link

Erratic behavior with DPMS on AMD GPU #4385

Open s-mcf opened 5 years ago

s-mcf commented 5 years ago

Turning off my monitors via DPMS causes strange behavior on my AMD R9 280X. It seems to be the same on both the amdgpu and radeon drivers. If the monitors have been asleep for a while (more than 60 seconds let's say), some or all of things things will happen when I jiggle the mouse or hit a keyboard key to wake the monitors back up:

The first four happen pretty much 100% of the time I wake my monitors up through my standard daily routine of just walking away from the computer and jiggling the mouse when I come back, and I can also trigger it on the default config with something like: swaymsg "output * dpms off"; swaylock -f; sleep 120; swaymsg "output * dpms on"

I'm not sleeping/suspending the machine and I don't turn off the monitors with their power button. I'm launching sway by typing exec sway at a tty.

s-mcf commented 5 years ago

This issue is still present in sway 1.2. Anything I can do to help debug this? It's 100% reproducible on my systems.

justinlovinger commented 4 years ago

I think I have the same issue. I've experienced it on Sway 1.4 and Sway 1.5 . I also noticed that, if I turn one of my two monitors off with dpms off, the output for that display periodically disappears for moments at a time. It disappears from swaymsg -t get_outputs and its workspaces appear on the other monitor. On one of the monitors, this seems to only occur as the monitor enters and exits powersaving mode. On the other monitor, these disappearing flashes occur during powersaving mode.

I'm not sure if the issue the issue only occurs with an AMD GPU, because I haven't used Sway on this machine without an AMD GPU.

aconitumnapellus commented 3 years ago

This issue is still present, i have a R9 290x and im running archlinux with the sway git build.