FS#65665 - [nvidia-390xx] Prime synchronization is broken since linux 5.4

Attached to Project: Arch Linux
Opened by Gleb Rudenkov (Geeko) - Saturday, 29 February 2020, 23:05 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 11 March 2020, 18:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Descprition:
Prime synchronization in nvidia drivers was broken since linux 5.4. Arch maintainers fixed this with patch, provided on the forum. But prime synchronization is still not working in nvidia-390xx. The same person wrote patch for 390xx drivers, so can it be added to nvidia-390xx (nvidia-390xx-dkms) package? It works for me, people on the forum also reports that it's fine. As well, base 5.5 patch should be dropped, that one isn't needed with this new version.

Enabling DRM kernel mode setting according to Arch Linux wiki instruction (https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Tearing/Broken_VSync) doesn't help.

Running smth like xrandr --output eDP-1-1 --set "PRIME Synchronization" 1 doesn't help (screen blinks, prime synchronization does not turn on)

Creating a bug report for upstream isn't possible, because Nvidia doesn't support 390xx drivers (https://nvidia.custhelp.com/app/answers/detail/a_id/3142) and fixes only critical issues (tearing is not critical).

Creating this bug report was recommended by Sven-Hendrik Haase.

Additional info:
* nvidia-390xx-dkms-390.132-30, linux-5.5.6.arch1-1, xorg-server-1.20.7-1
* commit fixing such issue in nvidia package: https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/nvidia&id=4a4925b42f277bcdeac6d30cb9ae03f76440a1cf
* topic on archlinux forum: https://bbs.archlinux.org/viewtopic.php?id=251032
* patch for nvidia-390xx: https://gitlab.com/snippets/1943814

Steps to reproduce:
Install nvidia 390xx driver and start xorg-server on a discrete graphics card, then run xrandr -prop and get something like this: (see attached file)
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 11 March 2020, 18:10 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Package dropped
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 02 March 2020, 18:08 GMT
Felix, do you fancy backporting your patches to 390xx?
Comment by Felix Yan (felixonmars) - Sunday, 08 March 2020, 09:38 GMT
@Sven I can, but looks like this package will be dropped soon...
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 08 March 2020, 09:39 GMT
Yeah, no one is taking it so we're better off dropping it and letting someone in AUR maintain it.

Loading...