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

dpms and font issues #4198

Closed
swalladge opened this issue May 31, 2019 · 4 comments · Fixed by #4314

Comments

@swalladge
Copy link

@swalladge swalladge commented May 31, 2019

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:

screenshot of keepassxc

Additionally, fonts in wayland windows sometimes become fuzzy. Eg. this instance of termite:

screenshot 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.

@RedSoxFan

This comment has been minimized.

Copy link
Member

@RedSoxFan RedSoxFan commented May 31, 2019

A debug log would definitely help. Can you also post the output of swaymsg -t get_outputs when it is in the issue state?

@swalladge

This comment has been minimized.

Copy link
Author

@swalladge swalladge commented Jun 5, 2019

Strangely I haven't been able to reproduce the issue since reporting it. :/

@junglerobba

This comment has been minimized.

Copy link

@junglerobba junglerobba commented Jun 6, 2019

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.

screenshot

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.

sway version 1.1-rc1-29-gb4b274cd (Jun 6 2019, branch 'master')
sway.log
get_outputs.txt

@ecocode

This comment has been minimized.

Copy link

@ecocode ecocode commented Jun 21, 2019

@junglerobba I have exactly the same issue.
It happens when you have two monitors with different scale. My laptop is hidpi and has scale set to 2. The external monitor is scale 1. When coming back from dpms off, the titles on the EXTernal monitor (DP-1 in my case) are scaled x2 which gives same as your screenshot. Scale setting for the output of the external monitor is still 1 though (checked with get_outputs).

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.