News for hackers. Stuff that matters.
Re:A few HiDPI tricks for Linux by azinman2 on Saturday January 30, 2021 @03:29PM (#25972680)
Except the author is using X11 as many people will. And what this shows is how many different environments / toolkits / settings there are out there. It would be nice if distributions would do a better job of handling this for you. I’ve run into the same issues myself, and it’s kind of hard to believe that I even had to figure out these configuration dpi settings in 2021.
Re:A few HiDPI tricks for Linux by canofbars on Saturday January 30, 2021 @06:20PM (#25974049)
>It would be nice if distributions would do a better job of handling this for you

They did, its called wayland. If you want to use a legacy tool you shouldn't expect it to work as nice as the current generation software.

Re:A few HiDPI tricks for Linux by yjftsjthsd-h on Saturday January 30, 2021 @09:11PM (#25975096)
> If you want to use a legacy tool you shouldn't expect it to work as nice as the current generation software.

I'm not using the "current generation" because it doesn't work as nice as the "legacy" software. Have y'all figured out how to do screen sharing without per-compositor hacks yet?

Re:A few HiDPI tricks for Linux by vetinari on Sunday January 31, 2021 @09:16AM (#25978964)
> Have y'all figured out how to do screen sharing without per-compositor hacks yet?

Yes, it is called Pipewire.

Re:A few HiDPI tricks for Linux by fluffything on Sunday January 31, 2021 @06:34AM (#25978057)
But distros do handle this for you. I installed Arch last year with sway and “it just works”.

Like the OP say, if you want HiDPI fractional scaling that’s a solved problem on Wayland. If you want to stick with X11, then that’s never going to work great

Re:A few HiDPI tricks for Linux by libcg on Saturday January 30, 2021 @03:41PM (#25972800)
He's using "i3 with a heavily customized userspace" which isn't exactly what most people would use. Gnome on X11 lets you (integer) scale monitors through a GUI at the very least.
Re:A few HiDPI tricks for Linux by nxc18 on Saturday January 30, 2021 @04:25PM (#25973151)
Yeah but there’s a very good chance that won’t work with various hardware configurations. I was able to get per-monitor scaling to work only after giving up use of half my GPUs, and still there were problems with several apps. This was on stock Ubuntu; I didn’t get too crazy customizing because I just wanted to find a Linux desktop that worked.
Re:A few HiDPI tricks for Linux by canofbars on Saturday January 30, 2021 @06:22PM (#25974066)
>I was able to get per-monitor scaling to work

X11 is not capable of doing this properly. Wayland is and as you probably know, nvidia refuses to support it which is out of the control of linux developers. You can get everything working if you use the open source nvidia drivers but then they run slow as shit because nvidia blocks them from setting the clock speed on the gpu.

Basically every problem falls back on nvidia and the linux desktop people have done everything in their power to make it work.

Re:A few HiDPI tricks for Linux by derefr on Saturday January 30, 2021 @09:37PM (#25975223)
> Basically every problem falls back on nvidia

So... get an AMD GPU instead?

Re:A few HiDPI tricks for Linux by canofbars on Saturday January 30, 2021 @09:49PM (#25975304)
Yes, either that or put up with the many problems of X
Re:A few HiDPI tricks for Linux by vetinari on Saturday January 30, 2021 @06:06PM (#25973944)
The point is, you don't have to figure out configuration dpi settings in 2021, if you use distributions as they are supposed to be used.

If you insist on your favorite x11 window manager, the integration is on you. No point in complaining then, it is self-inflicted pain.

Re:A few HiDPI tricks for Linux by Too on Sunday January 31, 2021 @02:28AM (#25976904)
> distributions as they are supposed to be used.

As much as i like the concept of Wayland, until it's a one click always works without any caveats option in Ubuntu it essentially doesn't exist. Ubuntu 20.04, the latest of the most popular distributions, does not have wayland enabled by default. They actively discourages you from trying it if you have Nvidia, which again is the most popular gfx card - not sure if one is supposed skip the proprietary drivers or not with Wayland but on X11 using Nouveau is not a pleasant experience.

Re:A few HiDPI tricks for Linux by vetinari on Sunday January 31, 2021 @07:01AM (#25978199)
Ubuntu was criticized for that; every time they release LTS without default Wayland session, they delay the solution for another 2 years.

One of the reason why Apple is able to move fast, that they do not fart around with introducing new and deprecating old things; if you are not ready for that, it is your problem, stick with old release. So most vendors get ready for the new things, because they know there's no way to avoid them. In Linux land, we have people putting hacks on top of other hacks just to avoid switching to the new thing, and in this case, the existing Ubuntu LTS releases are part of the problem.

Also, Nvidia is not the most popular GPU in general. It is a gamer card. Most used GPU is Intel. Intel has some 70% share; the rest is split between Nvidia and AMD.

Re:A few HiDPI tricks for Linux by hollerith on Sunday January 31, 2021 @02:32AM (#25976919)
Nvidia is the most popular graphics for gamers; the most popular graphics for general computer users is integrated with an Intel CPU.
Re:A few HiDPI tricks for Linux by azinman2 on Sunday January 31, 2021 @01:25AM (#25976570)
That hasn’t been the case for me with Ubuntu or raspbian.