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
Screen won't turn on after resume from sleep #7228
Comments
I sometimes have a similar issue, and a workaround for me is to run |
I have the same issue. But with sway
I have a total different setup than the OP. I have two monitor on a desktop computer, AMD GPU + AMD CPU. On Archlinux too. On linux-zen. Sway from repo not AUR.
I suspend my computer with I can type my password to unlock and after that I switch to TTY2 with |
Fairly certain this is an amdgpu driver issue introduced in 6.0, at least that's when my issues started. There's several open issues about suspend resume failures, eg. https://gitlab.freedesktop.org/drm/amd/-/issues/2213, but some date prior to 6.0 so I'm not really sure which issues or fixes are related to my problem. But I am sure it's not sway's fault. |
I got the same issue after update wlroots to 0.16.0 today, sway is 1.7. |
Hm, I can't reproduce, that just works for me. In any case, it's a separate issue. Can you open a wlroots issue about it with full debug logs and ideally https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/DRM-Debugging? |
Looks like you are right. |
This feels like a generic Linux 6 series bug. Also reported in the Fedora community (for Intel, AMD and systems without dedicated GPU like mine). |
I figured out that this issue is related to the following lines in my sway config, and commenting them out mitigates the issue:
Where Since I removed this, I entered sleep by closing the laptop's lid many times and did not have the issue. However, this is obviously not ideal since I won't be able to close the lid of the laptop and have the laptops screen turn off when docked. I guess I could resolve the issue with some kind of advanced scripting, but still, I believe the above should work as it did on my previous laptop (with 9th gen Intel GPU). Is there something that I could do to gather further logs from when reproducing this issue? Would recent debug (or trace?) logs help, with the default sway configuration (with the above lines added)? |
I can confirm that this solves the issue for me. |
I have a possibly related issue. If I suspend my PC then physically turn off one of the monitors (because the standby light is annoying) if I then resume, the other display will be blank but the physically turned off one will show an output (if I then turn it back on). The enable/disable trick works as a workaround. |
I have this same issue after updating my system. Is there any workaround? The enable/disable trick doesn't work on me. I can reproduce it all the time with this command and wait 5 seconds: |
Seems like there's a fix already https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3528 |
That fix is included in wlroots 0.16.1. |
Even with that version of wlroots, something similar still happens on my system. |
Please open a new issue if you can reproduce with wlroots+Sway latest commits. |
I'm seeing this on sway For the sake of people coming in from google, I'm currently fixing it by swapping to another tty and running the following and then quickly switching back to tty1: $ cat wake-up-display.sh
#!/bin/bash
sleep 2 && find "${XDG_RUNTIME_DIR}" -name 'sway-ipc.*.*.sock' -exec swaymsg -s {} output '*' enable \;
$ ./wake-up-display.sh I do also have the |
I also had success with 'sleep; dpms off; dpms on` where I switch back to the sway display prior to the first sleep finishing, letting the dpms commands run while I am on the 'dead' VT. |
A few times my system has woken up from sleep but the screen won't turn on. Unlike op, I cannot switch to another tty (nothing happens when I press the key combination). I also have in my settings:
But pressing the power key does nothing. I'm not entirely sure if it's just the screen that remains off, or if sway has frozen completely. |
I have the same issue, I always turned off my displays at night and turned them on in the morning. Somewhere in the last month this started happening. After a few times of happening I started to lock my screen with swaylock and the Issue seemed to have gone away. However after 7 days working it happened again just now. What would happen essentially is after unlocking swaylock I would get a flash of my sway session and then screens would turn off. Since I was reencoding stuff I let the computer on and locked the screen again. After 1 hour I tried to unlock again and it sudddenly worked, I was able to access other tty's. |
I am using sway-git along with wlroots-hidpi-xprop-git, which builds the wlroots master branch with a hidpi scaling patch for xwayland (see pull request). My current wlroots build is based on c6d8a11.
Debug Log:
Debug logs zipped. Sorry, but I could not manage to upload the original unzipped file (72 MB) to GitHub Gist.
Configuration File:
Description:
Sometimes after my laptop resumes from sleep, the screen just won't turn back on. Most of the time it works, but sometimes it doesn't, and in those cases the only option is for me to restart my computer.
Below are the steps that I followed that correspond to my attached debug logs:
When the issue happens, switching to some VT and back again to VT1 with sway does not solve the issue. The screen turns on for the VT, but then turns off again when switching to Sway.
I am running Arch Linux with recent updates. I am using a 12th generation Intel Alder Lake CPU (i9-12900HK) and I am using the integrated Intel GPU.
The text was updated successfully, but these errors were encountered: