Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When dpms turns the monitor off (whether I do it manually, or swayidle calls it after swaylock is running), and the monitors have completely turned themselves off, and then I dpms on/log back in, I often get font issues.
Specifically, most text in x11 windows is missing. See screenshot of keepassxc:
Additionally, fonts in wayland windows sometimes become fuzzy. Eg. this instance of termite:
Actually, I'm not sure if it's just fonts that become fuzzy, or the entire window - icons and such look fuzzy in firefox, but hard to tell because firefox has several related wayland issues anyway. I'll check some other gui apps.
I'll keep this issue updated as I do more debugging.
I'm not sure this is directly related, but I have a similar issue with dpms, only for me it affects window titles after turning the screen back on.
I used the default config for this, but I had to configure my outputs (1x 4k at scale 2.25, 1x 1440p, 1x 1080p) in order to reproduce it.
@junglerobba I have exactly the same issue.
I use following workaround:
exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 500 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on" && swaymsg output DP-1 scale 1' before-sleep 'swaylock -f -c 000000'
So, resetting the scale to what it actually already is seems to solve the issue.