linux-on-huawei-matebook-13-2019 icon indicating copy to clipboard operation
linux-on-huawei-matebook-13-2019 copied to clipboard

About HiDPI support

Open validatedev opened this issue 5 years ago • 12 comments

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

validatedev avatar Aug 15 '19 12:08 validatedev

xrandr

SKSasykin avatar Aug 15 '19 12:08 SKSasykin

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.

nekr0z avatar Aug 15 '19 15:08 nekr0z

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

SKSasykin avatar Aug 15 '19 15:08 SKSasykin

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.

validatedev avatar Aug 16 '19 14:08 validatedev

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']"

asm-code avatar Aug 25 '19 10:08 asm-code

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.

validatedev avatar Aug 25 '19 10:08 validatedev

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

asm-code avatar Aug 25 '19 11:08 asm-code

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 avatar Aug 25 '19 12:08 validatedev

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.

validatedev avatar Dec 19 '19 23:12 validatedev

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

ovsienkonikita avatar Jan 13 '20 20:01 ovsienkonikita

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.

validatedev avatar Jan 13 '20 21:01 validatedev

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)

randomprofilename avatar Aug 12 '20 15:08 randomprofilename