Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erratic behavior with DPMS on AMD GPU #4385

Open
s-mcf opened this issue Jul 27, 2019 · 3 comments
Open

Erratic behavior with DPMS on AMD GPU #4385

s-mcf opened this issue Jul 27, 2019 · 3 comments

Comments

@s-mcf
Copy link

s-mcf commented Jul 27, 2019

  • Sway Version: 1.0
    (I'm on Arch and pacman claims sway 1.1.1-3 is installed, but swaymsg -t get_version gives 1.0)

  • Debug Logs: https://gist.github.com/darkengine-io/a88d898fd269fa7d316a25303bfd8c58
    There are two debug files attached to this gist. In the first one, only swaybg has crashed and my background has disappeared. In the second one, sway became completely unresponsive and I had to switch to a tty and kill it.

  • Configuration File: default configuration

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:

  • swaylock crashes
  • swaybg crashes
  • swaybar crashes
  • the apps that I have open crash
  • sway itself becomes unresponsive (rare)

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
Copy link
Author

s-mcf commented Sep 9, 2019

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants