How to fix screen tearing on Intel GPU with Nvidia Prime
Hi there. First of all, my laptop specs: Acer A515-51G Ubuntu 18.04.3 LTS with Gnome 3.28 and LightDM Kernel 5.0.0-32 i5 8250u Intel UHD 620 (probably uses mesa drivers, I haven't configured anything specific) Nvidia GeForce MX150 (nvidia-driver-435 from graphic drivers ppa) So, the issue I have is...
In my experience, Vulkan games automatically use NVIDIA, while OpenGL games need the prime-run parameter to make the switch.
Maybe you can add those functions as keyboard shortcuts, instead of remapping the actual keys.
Add
to the
Note that the default path for loader.conf can change depending on what you did during installation. See more about configuration here: https://wiki.archlinux.org/index.php/systemd-boot#Configuration
You can replace 3 with whatever number you wish. It changes how many seconds the menu will stay on screen without any input before launching the default boot config.
Also you should be able to bring the menu up even without the timeout option if you press space or some other random key during boot.
There has been reports that kernel 5.4 has broken prime sync. I had the same issues that you had on 5.4.1, I downgraded to kernel 5.3.13 and now it is working perfectly fine. Keep in mind that I am using zen kernel but I think it affects all 5.4 kernels right now.
I have an MX150. It is new enough to have the PRIME Render Offload stuff, but not new enough to have power management of turing cards. I use the official NVIDIA solution now but before that existed, I used probably everything on Arch with my MX150.
Bumblebee works but performance is crap. It also doesn't do vulkan.
nvidia-xrun is better. It has full performance. But every now and then it just doesn't work when you execute it from a tty and you have to reboot your machine. Or sometimes it fails to turn off the GPU when you quit your nvidia-xrun session. (Don't know if this is bbswitch or xrun related)
optimus-manager is probably the best option. It logs you out when you switch your GPU. However every now and then, I had sessions where I couldn't login back to my system after the switch happened. But at least you don't have to deal with ttys with this one.
bbswitch worked for me, and yes both nvidia-xrun and optimus-manager can use bbswitch to shut down the card. I never tried other methods. optimus-manager has config options for other methods, I don't know if nvidia-xrun has that.
The errors I had didn't always happen. They happened like lets say 5% of the time. So it is kind of rare but it still annoying when it happens.
This was my experience more than a year ago though. Things could have possibly changed since then. I used prime render offload ever since it came out so I don't really know anything that happened since then.
Good luck :)