3 ms·
By using a combo of xrandr and Xfce's hi dpi setting, I've managed to make my linux desktop more stable, functional and consistent across a 4k screen and a 1920
by Nursie 7y ago
By using a combo of xrandr and Xfce's hi dpi setting, I've managed to make my linux desktop more stable, functional and consistent across a 4k screen and a 1920*1200 screen next to it than Windows can manage.
Sure, I had to put in a bit of effort, but now that I have the results are excellent, there's no scale jumping or even the weird rendering MacOS does when moving windows around.
- korpiq 7y agoI would really appreciate if you could share some of your findings there.
- Nursie 7y agoHonestly I just had to switch window scaling to 2x in the Xfce appearance settings, then I run this to fix my layout on each login, giving me a consistent size and no weird rendering - #!/bin/bash xrandr --output HDMI-0 --mode 1920x1200 --pos 0x100 --scale 1.5x1.5 --output DP-4 --mode 3840x2160 --primary --scale 1x1 --pos 2880x-150 AFAICT this effectively renders the smaller screen as if it had a much larger resolution (2880x1800), then downscales, giving a good quality image, and then positions the 4k screen to the right of it. The key is the scale factor compensating for different DPI on the different screens. I tried scaling the other way first, by giving a sub-1.0 scaling factor to the 4k screen, but that meant rendering a lower res and then upscaling, which looked terrible! The only annoyance now that I have this set up is that occasionaly driver updates change which output is which and I have to update the script so it works again.
- arboghast 7y agoYes, please share! How did you deal with the window title bars?
- Nursie 7y agoNot sure I did anything special, I'm using the clearlooks theme with some customisation of the fonts. See the other answer for how I sorted out the res/DPI stuff.
- turtlebits 7y agoUntil you get new hardware and have to do the whole dance again. Now that I'm older, it's just a waste of time.
- Nursie 7y agoIt's not much of a dance now I've figured it out. It's worth it to me and like I say - it works better than than windows or even OS X on the same screen setup. If that's of no value to you, that's up to you I guess. I'm in my 40s so no spring chicken...