-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fractional scaling support #117
Comments
+1 on this. Lack of granular scalability is something that friends who have used elementary have often complained about. |
Proper support for this is blocked by moving to Wayland. X does not natively support it, GTK does not currently natively support it, and any hacks to try and enable it right now are worse than existing accessibility options for text size. |
Sadly both options don't really work on a 14" 2560x1440 display. |
@Hyphone with recent updated to System Settings → Desktop → Appearance, there's a new "Small" text option that combined with HiDPI might be a better fit. But actual desktop-wide non-integer scaling is still not possible with the technology stack (yet!). |
@cassidyjames Thank you for the reminder. I also actually have to revise my previous statement in terms of too small texts. I compared elementary OS "Larger" text option with GNOMEs large text and it's identical. elementary OS by default indeed uses smaller fonts but the "Larger" option increases the size by 1.4 while GNOMEs larger text option increases it by 1.25 wich results in kind of identical accessability. I guess that the "smaller" text in combination with HiDPI would be the better option for readability as the contrast of text and UI elements in elementary OS is lower (compared to Adwaita for example) and results in more eye strain in the evening hours when using LoDPI and the "Larger" text option on my display. |
@PlatonB someone will need to see what Ubuntu is doing there and see if it's worth implementing. From what I've seen and heard, it introduces pretty bad screen tearing and performance issues, so I would be reluctant to add it. |
Well, I somehow managed the achieve fractional scaling with these: |
I am currently trying this, out of curiosity, on Ubuntu 20.04 and indeed performance are pretty bad. On pop os 20.04, though, enabling fractional scaling via gsettings command line, at least on my setup, works without any problems. Very smooth and not eating up more resources than normal. Running a dual monitor with different resolutions and sizes on an Nvidia 1060, both OSes tested with live boot. @cassidyjames maybe someone at System76 did something more / different in regard to the base ubuntu distro? |
@sixpounder Which command did you execute for fractional scaling? Are you on Xorg or Wayland? |
pop 20.04 comes with xorg by default The command is
to disable |
It causes to me screen tearing with Intel UHD Graphics 620, I could diminish it with TearFree flag with the reduced performance. |
I cannot repro this since I got no hardware with UHD 620, but I can garantee that at least on nvidia the experience is flawless. Having two different monitors at different resolution it is very handy to run them at different scaling. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
What Ubuntu, Pop and Xfce (4.16) do is just the old trick of first up-scaling by an integer factor using the toolkit (GTK) and then down-scaling using xrandr (which by default implements the bicubic algorithm). The process is called oversampling and AFAIK MacOS does something similar and GNOME/Wayland too. The reason for doing it this way is that many toolkits work in pixel units, so integer units, and it's not easy to change them to work with fractions. Other toolkits like Qt can natively handle fractional sizes so they don't need to oversample. Anyway, if your screen is hi-res enough the end result is quite good (far from the blurriness of mere up-scaling or changing your monitor to non-native resolutions -which depends on the algorithm your hardware implements-). The downsides:
OTOH my experience with amdgpu and xrandr has been great, but YMMV. It would have been nice that someone fixed those bugs so that we had a reasonable transition path to Wayland in a world where FHD has become the standard for average budget laptops. I would say that 1.5x is more important nowadays than 1x or 2x, specially if you're buying new hardware, even expensive UHD external monitors are around 1.5x. But don't hold your breath because that probably won't ever happen. Elementary or any other desktop could just implement a simple frontend hiding these xrandr tricks (https://wiki.archlinux.org/index.php/HiDPI#Xorg) but expect many bug reports because of the aforementioned issues. Or you could wait for Wayland to be a working thing, with Chromium, Electron, screen sharing and all, hoping not to lose many users along the way. |
It might work for you with your specific hardware, kernel and drivers, but don't jump to conclusions because there are reported issues that makes NVIDIA the less advisable card for this:
Try not to guarantee anything about these matters, you might cause someone spend a lot of money on useless hardware. Linux is essentially broken wrt to multi-monitor, multi-dpi, fractional scaling support until Wayland matures, it's not a good place to be, you're lucky if you were able to find a comfortable setup meanwhile. |
I have so much crisp output when pass the higher resolution than my monitor with xorg.conf. No tear whatsoever. |
I'm linking the work done by the Ubuntu team to mutter for reference. Gnome control centre: Fractional scaling bug description: The only issue I have faced with this implementation is the following bug. I have tested the patches on Fedora and Arch with the latest builds. |
For me personally, this is the only problem of the current elementary version. I had to switch to other OS. The font size change is not a replacement for this. I'm looking forward for the proper fractional scaling at elementary. |
@VitalyEmelyanov if you want to do a fractional scale i suggest you use this project, which is a bash script that do fractional scaling, you just need to execute it on log in. It's not ideal but it works for me. |
Thanks, this can be used as a temporary workaround |
Hi guys,
I recently acquired one laptop with 1920x1080 resolution on 15.6 inch, Windows (pre installed) automatic adjust scaling to 125%, but elementary os does not support this. I know that Xorg is lack the this feature, but Ubuntu is put effort in this: supporting fractional scaling in gnome shell and independent developers also HiDPI Fixer.
Gnome Wayland example:
Is a very important feature for current machines.
Greetings
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: