Update: Here's a Better Solution and with a Non Specific Driver Functionality ... i.e.) no need to modify every time you update your Nvidia Driver!
Get PRIME Synchronization on Optimus
∘ Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf
Code:
sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf
And make sure the following line is present;
PHP Code:
options nvidia-drm modeset=1
After Update Intramfs,
Code:
sudo update-initramfs -u
and Reboot
∘ To check if it (Synchronization) is NOW set or not set use this command:
Code:
sudo cat /sys/module/nvidia_drm/parameters/modeset
It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... and All Screen Tearing should be gone
for ex. HDMI-1-1, or eDP-1-1
Solution (now for none specific Nvidia Drivers -
AWESOME!)
DONE!
################################################## ####
And to Finally get Nvidia Window Dragging almost as SMOOTH as with the nouveaux driver
Here is what I just did in My recent 18.04 re-install, and it was indeed choppy!
The obvious was set Nvidia to FULL Quality in Nvidia Settings / OpenGL Settings, and ...
in PowerMizer Tab, select "Prefer Maximum Performance", ...
but still not great and I remembered I had not adjusted my swap tendancy to a MUCH lower Value (If you have MORE than enough RAM)
Swappiness (to Check and it is always defaulted at 60)
Code:
cat /proc/sys/vm/swappiness
‣ if 60
Code:
sudo gedit /etc/sysctl.conf
And add these two lines at the bottom and reboot
PHP Code:
# sharply reduce Swappiness inclination
vm.swappiness=10
, and some people set it to 5,1, or even 0!
Reboot, and reset your Nvidia Settings as per above, and Window Dragging is ...
MUCH SMOOTHER!!!!!
Always trying to Help, Mark
Bookmarks