elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

Display scaling breaks after changing resolution #168

Open jorge-aparicio opened 6 years ago

jorge-aparicio commented 6 years ago

Hello I am using elementary os juno on my XPS 13 with a 3200x1800 display and after changing my resolution to 1920x1080 I am no longer able to change the display scaling. Regardless of whether I set low Dpi double pixel or automatic the view stays exactly the same. Even if I switch back to the native resolution. screenshot from 2018-10-19 17-26-43

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/65003825-display-scaling-breaks-after-changing-resolution?utm_campaign=plugin&utm_content=tracker%2F93529863&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F93529863&utm_medium=issues&utm_source=github).
lasalvavida commented 5 years ago

+1 I posted on StackExchange with a similar issue and a workaround you can use for now. This really does need to be fixed though.

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "[{'Gdk/WindowScalingFactor', <1>}]"
jorge-aparicio commented 5 years ago

Yes I did take advantage of that however it is not a perfect fix as some elements do not scale properly the notifications for example

bruceduhamel commented 5 years ago

I used the work around suggested by @lasalvavida and found that the open file dialog was missing the select/cancel buttons, so for example, if you were in a text editor like VS Code, you could bring up the open file dialog, but it was impossible to select a file (including with enter key).

I resolved this via:

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DialogsUseHeader': <0>, 'Gtk/DecorationLayout': <'close:menu,maximize'>, 'Gdk/WindowScalingFactor': <1>}"

Dell XPS 13 9370 Laptop Monitor 3840x2160 2x External Monitors 1920x1080 Scaling factor automatic Primary monitor is external

The same configuration works with the laptop monitor at 1920x1080 (which I am still using because without display scaling on the laptop monitor, 4k is way too small to read).

marcelogdeandrade commented 5 years ago

I'm having the same issue. Automatic screen scaling doesn't work when I change my resolution from 3200x1800 to 1920x1080. This is really problematic when I want to change resolution to use programs that don't scale well to 3200x1800.

marmeladapk commented 5 years ago

I fixed this by accident while playing with xrandr. I'm not sure which step exactly fixed this. I had doubling pixels enabled in settings. xrandr --output DP-1 --scale 2x2 xrandr --output DP-1 --scale 0.5x0.5 xrandr --output DP-1 --scale 1x1

With the last command scaling returned to what it should be.

cassidyjames commented 5 years ago

This should be fixed with https://github.com/elementary/switchboard-plug-display/pull/146, which it appears has not been released yet. I've pinged @codygarver to see if we can get a release, as that's a pretty big fix and does fix this issue in my testing.

RobMaskell commented 5 years ago

@cassidyjames / @codygarver just a little nudge that while 2.1.7 is showing as released in github 15 days ago but doesn't seem to have made its way into the apt repo yet as I still have 2.1.6 and no updates to install

vikasnataraja commented 4 years ago

I have elementary 5.1 Hera but this issue still persists. Using @bruceduhamel 's workaround fixed it for me.