GuLinux / ScreenRotator

Automatic screen rotation daemon for X11
GNU General Public License v3.0
57 stars 18 forks source link

Ignores display scaling #18

Closed ohthehugemanatee closed 4 years ago

ohthehugemanatee commented 4 years ago

On my primary monitor I use xrandr --scale 1.3x1.3 to handle HiDPI. Every time ScreenRotator changes the screen orientation, it seems to set a display size that ignores that scale. I see (and have mouse motion on) the top-left 2/3 of the screen. The rest is cut off and black. Touchpad orientation seems fine; my touches are registered at an offset towards the top-left. Any xrandr command will re-apply the scaling; I use xrandr --auto but it works with literally anything.

If I set --scale 1x1, display rotation works perfectly, and the touch offset is gone, too. I'm not sure what the difference is between how ScreenRotator and xrandr apply rotation, but that's likely to be the culprit here.

ohthehugemanatee commented 4 years ago

Actually, running just xrandr -o left has the same effect. So clearly this is not an issue in this command. Closing the issue... but any ideas on next debugging steps would be welcome!