Just updated to 20.04 and tried the fractional scaling on my laptop. That does not work at all. Whatever scaling I use it just sets 200%. I googled it and it seems works with wayland server only. I did not find any good solutions to fix it or install wayland instead of xorg. Can you help? Thanks in advance!
Graphics: Device-1: Intel UHD Graphics 620 vendor: Xiaomi driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5917 Device-2: NVIDIA GP108M [GeForce MX150] vendor: Xiaomi driver: nvidia v: 435.21 bus ID: 01:00.0 chip ID: 10de:1d12 Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa compositor: gnome-shell tty: N/A OpenGL: renderer: GeForce MX150/PCIe/SSE2 v: 4.6.0 NVIDIA 435.21 direct render: Yes 4 7 Answers
This is a bug with Ubuntu 20.04 + the latest nvidia drivers (435 proprietary and 440 proprietary, tested as far as I'm aware). Check out the launchpad thread. I'm having the same issue with 20.04 + nvidia-driver-440 (GeForce RTX 2080).
1This worked for me:
- Open nvidia setting
- In PRIME profiles (or another tab) find GPU list
- Change GPU to
NVIDIA On-Demand - Restart your system
Note: This method may affect the performance of some applications.
6At my case, a workaround is:
- In the
Settings -> Displays: SetScaleto100% - In the
Tweaks -> Fonts: SetScaling Factorto desired value (in my case it's1.25)
PS: If you don't have Tweaks: install it via: sudo apt install gnome-tweaks
Try using HDMI port for monitor instead of Thunderbolt USB C. Fractional scaling works there because HDMI port works with NVIDIA graphics card!
1I found a few fixes for this. Here are the link to double-check:
Install Drivers: How to Install Nvidia Drivers on Ubuntu 20.04
Latest Drivers, Install, Verification and Config via CLI or GUI: Ubuntu Install Nvidia driver using the CLI method # 2
The second one is from March 2021, and is pretty straight forward.
Note: this was especially important for me, as my laptop display is 4k, the screen pad is 1080p and I run an external display. This fix corrected everything across all screens.
Search for driver:
apt-cache search nvidia-driverUpdate/Upgrade to latest:
sudo apt update && sudo apt upgradeInstall Driver:
sudo apt install nvidia-driver-${latest-compatable-driver-version}Reboot:
sudo rebootAfter 1st Reboot:
Verify Driver Install:
nvidia-smiOpen Nvidia Settings (as root to adjust system-wide):
sudo nvidia-settingsAt this point, the scaling didn't act exactly as expected, so this next part is copied from Amir's reply:
This worked for me:
Open nvidia setting In PRIME profiles (or another tab) find GPU list Change GPU to NVIDIA On-Demand Restart your systemNote: This method may affect the performance of some applications.
BJMI had the right idea by going back into the Nvidia settings and re-enabling performance mode:
This will preserve the graphic settings and correct the scaling issue. This works for me, thank you. You can switch back to Performance Mode after restart and fractional scaling remains
Note: After the second restart is when I started changing the scaling settings. Everything was working smoothly on subsequent restarts.
I solved it as such in Ubuntu 20.10:
- installed nvidia proprietary drivers 460
- reboot (asked by the OS)
- opened nvidia-settings and verified that "PRIME profiles" shows "NVIDIA (Performance Mode)
sudo vi /etc/modprobe.d/nvidia.conf- added contents
options nvidia_drm modeset=1and saved sudo update-initramfs -u- reboot
- verified that
sudo cat /sys/module/nvidia_drm/parameters/modesetreturnsY - opened gnome-settings and set fractional scaling to 125%
Last step was a bit flaky as it wouldn't let me apply the changes at first (no Apply button was shown), due to hardware limitations or such. I fiddled around with the scaling (200% then 125%, fractional then non-fractional etc) until it finally let me, and it worked.
2Yes, I am having the same issue. I fixed this by by choosing the nouveau display driver from the X.org X server instead using the "additional drivers" application. I hope this helps you.
3