4 ms·
> Using different DPI on a different screen in a multi-monitor setup (common case is when you connect a low-dpi monitor to a high-dpi laptop) Linux definitely
by Lio 5y ago
> Using different DPI on a different screen in a multi-monitor setup (common case is when you connect a low-dpi monitor to a high-dpi laptop)
Linux definitely does support this.
I use this exact feature with Gnome and Wayland daily to combine a 4K XPS13 with a 27” 1440p monitor.
- asdfasgasdgasdg 5y agoI wasn't able to get it to work as recently as two years ago. Would you share a link to your recipe?
- vetinari 5y agoJust use wayland, done.
- Too 5y agoWould have loved to agree, but unfortunately using nvidia.
- LukeShu 5y agoI did a write-up of the low-levels of how it works on Xorg: https://reddit.com/r/archlinux/comments/c8hgt8/my_laptop_has_a_high_dpi_and_im_currently_looking/esn0x71/ https://reddit.com/r/archlinux/comments/c8hgt8/my_laptop_has... Missing from that: - Gnome actually does the scaling in the compositor, not in the X server itself. - Most desktop environments should be doing all that for you. At the time I wrote that (over 2 years ago), in Gnome you had to go in to an advanced settings menu and enable "experimental fractional scaling"; I'm not sure if that's still true today. - Some things pick up the DPI from the XSETTINGS protocol, not from the XRDB. Specifically, parts of Java's AWT/Swing do this. But other parts use the XRDB. And they conflict with eachother. When I last looked at Swing (April-ish 2020) it was impossible to get it to do the right thing on X11 (I was working on a patch, but then I had some life disruptions and never came back to it).
- Lio 5y agoI don't have a recipe as such I just installed Fedora running Wayland and Gnome and it just works out of the box. If you want something custom I guess I'd suggest looking at what Fedora uses out of the box. I'm running on an all Intel XPS13 9370 if that helps.
- aldebran 5y agoDoes it work out of the box or do you need to do something specific. I have a custom built desktop with a 4k and a 1080p monitor. I can get one of them to look good. :( I’m on mint.
- fragmede 5y agoI got this working by fiddling with `xrandr --output HDMI1 --scale 1.3x1.3` on the command line.
- Lio 5y agoWorks out of the box for me since moving to Fedora running Wayland and Gnome. I just set one monitor to 100% and the other (4k) to 200%. In fact I think that choice was originally made for me but you can change it. When I first started using it a couple of years ago you'd get old artifacts when moving a window from one monitor to another. e.g. the mouse pointer could be the wrong size. Over the years, like many things on Linux, it's got more polished. Now it just works.
- wildrhythms 5y agoLinux supports this, but applications on Linux may not (or not gracefully). I've found Chrome on Ubuntu (GNOME with Wayland) just doesn't adjust its scale when being dragged across displays with differing UI scaling settings. I don't have this problem on Windows or Mac OS.
- kirbyfan64sos 5y agoMaybe try running Chrome with the in-development native Wayland backend (--ozone-platform=wayland)?