Skip to content
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

About HiDPI support #9

Open
validatedev opened this issue Aug 15, 2019 · 12 comments
Open

About HiDPI support #9

validatedev opened this issue Aug 15, 2019 · 12 comments

Comments

@validatedev
Copy link
Contributor

What can you do when you try to change DPI to 150%? Cannot find a way that works perfect.

@SKSasykin
Copy link

xrandr

@nekr0z
Copy link
Owner

nekr0z commented Aug 15, 2019

I used KDE to set DPI. It's far from perfect, but i'm not too worried: it generally works for the software I use most, and KDE support for HiDPI is far from perfect anyway and they know it, so I expect it to become better with time.

@SKSasykin
Copy link

Евгений, в консольке xrandr, по идее должно быть установлено. xrandr умеет и разрешения задавать и масштабируемость менять. Для сохранения установок xrandr'a, сохраните в корне домашней директории файл, уточните в гугле название файла.

@validatedev
Copy link
Contributor Author

Yeah, I know these methods but xrandr causes screen tearing (and high CPU usage) for me and I really don't like KDE. If there's GNOME-wayland solution with doesn't blur the XWayland applications, this is the best solution for me.

@asm-code
Copy link

If you are using Gnome, enable fractional scaling, worked for me.
X11:
gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

Wayland:
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

@validatedev
Copy link
Contributor Author

validatedev commented Aug 25, 2019

If you are using Gnome, enable fractional scaling, worked for me.
X11:
gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

Wayland:
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

X11 solution causes high CPU usage and screen tearing for me, the Wayland solution has compability problem that occurs on XWayland applications which is blurry fonts and elements. These problems annoys me a lot.

@asm-code
Copy link

asm-code commented Aug 25, 2019

Yeah, I can confirm the blurry fonts problem with Wayland. That's why I stayed with X11.
Regarding the tearing, I could dimmish it substantially by creating a config file 10-intel.conf under /etc/X11/xorg.conf.d/ with the following content.

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection

@validatedev
Copy link
Contributor Author

Yeah, I can confirm the blurry fonts problem with Wayland. That's why I stayed with X11.
Regarding the tearing, I could dimmish it substantially by creating a config file 10-intel.conf under /etc/X11/xorg.conf.d/ with the following content.

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection

Thanks for the helping me!

@validatedev
Copy link
Contributor Author

validatedev commented Dec 19, 2019

I found a way that works without any hassle!
Just create 10-monitor.conf file under /etc/X11/xorg.conf.d/ with the following content:

Section "Monitor"
Identifier "eDP-1"
Modeline "2880x1920_60.00" 473.25 2880 3112 3424 3968 1920 1923 1933 1989 -hsync +vsync
Option "PreferredMode" "2880x1920_60.00"
EndSection

Then reboot.
Works flawlessly on elementary OS 5.1 Hera without any screen tearing.

Edit: They broke something between kernel 5.0 and 5.5, so please try that method just on Ubuntu or variants with kernel 5.0-HWE-18.04, just for now.

@ovsienkonikita
Copy link

ovsienkonikita commented Jan 13, 2020

There is fractional scaling in gnome>3.32, and its work fine for me.
For wayland:
$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
For X11:
$ gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

After executing this command you will be able to set scaling to 125, 150, .. etc %

For undo:
$ gsettings reset org.gnome.mutter experimental-features

@validatedev
Copy link
Contributor Author

There is fractional scaling in gnome>3.32, and its work fine for me.
For wayland:
$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
For X11:
$ gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

After executing this command you will be able to set scaling to 125, 150, .. etc %

For undo:
$ gsettings reset org.gnome.mutter experimental-features

If you are using these settings
In Wayland: X11 apps will look blurry.
In X11: There is a screen tearing. Well, you can fix with Option "TearFree" "true", but you’ll encounter at least 30% performance loss and unable to watch a video properly.

@randomprofilename
Copy link

randomprofilename commented Aug 12, 2020

I highly recommend use custom resolutions with 3:2 aspect ratio.
I'm using 1600x1066 on wayland, to get this resolution just added 'video=eDP-1:1600x1066@60' in /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT. Works way better than fractional scaling.
But double check that your display on eDP-1.

BTW, somehow, my laptop with mx150 is more battery efficient and cooler on nouveau driver than proprietary nvidia driver(with 'intel only' ofcourse)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants