You are not logged in.

#26 2019-12-17 12:18:20

loqs
Member
Registered: 2014-03-06
Posts: 9,601

Re: prime synchronization breaks with kernel 5.4

Does not appear to be a simple fix until nvidia updates its driver.

Offline

#27 2019-12-17 13:58:08

dglt
Member
Registered: 2019-08-14
Posts: 68

Re: prime synchronization breaks with kernel 5.4

thanks @getjump but it think @loqs is right about this needing a fix on nvidia's end. it would be great if we had a way of tracking progress on it other than just

"Thanks for reporting this. For reference, we're tracking it in internal bug number 2780092."

for now it's linux-lts and a downgraded linux-zen for me. if there are any possible fixes i'll be more than glad to test them.

Offline

#28 2020-01-05 15:35:40

zjeffer
Member
Registered: 2018-11-08
Posts: 2

Re: prime synchronization breaks with kernel 5.4

Offline

#29 2020-01-10 01:32:19

Waan
Member
Registered: 2019-12-25
Posts: 30

Re: prime synchronization breaks with kernel 5.4

zjeffer wrote:

Don't want to necrobump, but that patch still works to get vsync working with prime for: extra/nvidia-dkms 440.44-10 <-> kernel: archlinux 5.4.10-arch1-1
Would be nice to see that patch included in next versions of nvidia and nvidia-dkms, so i don't have to keep patching manually.

Offline

#30 2020-01-10 17:54:22

loqs
Member
Registered: 2014-03-06
Posts: 9,601

Re: prime synchronization breaks with kernel 5.4

You could open a bug report on the arch bug tracker asking for that patch to be applied (although it would need to adjusted so it did not break with 4.19)

Offline

#31 2020-01-11 07:55:50

polyakov84
Member
Registered: 2017-02-16
Posts: 3

Re: prime synchronization breaks with kernel 5.4

Hi, everyone.
Could somebody provide a guide for patching and installing driver?
I will appreciate if somebody experienced will describe steps to make it.

Thanks in advance.

Offline

#32 2020-01-11 15:12:54

oinkl
Member
Registered: 2010-01-13
Posts: 43

Re: prime synchronization breaks with kernel 5.4

polyakov84 wrote:

Hi, everyone.
Could somebody provide a guide for patching and installing driver?
I will appreciate if somebody experienced will describe steps to make it.

Thanks in advance.

I did something like the following, the commands might not be exact do test it

$ git clone --single-branch --branch packages/nvidia https://git.archlinux.org/svntogit/packages.git
$ cd packages/trunk/
$ makepkg -o
$ curl https://gitlab.com/snippets/1927096/raw > prime.patch
$ patch -p1 -d src/NVIDIA-Linux-x86_64-440.44/ -i ../../prime.patch 
$ makepkg -e
$ pacman -U nvidia-440.44-10-x86_64.pkg.tar.xz

Offline

#33 2020-01-11 18:39:06

polyakov84
Member
Registered: 2017-02-16
Posts: 3

Re: prime synchronization breaks with kernel 5.4

I've made as you described.
There was no any errors while patched and installed package. But it still doesn't work.



$ xrandr --setprovideroutputsource NVIDIA-G0 Intel
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x220
  Serial number of failed request:  16
  Current serial number in output stream:  17

Offline

#34 2020-01-11 18:56:16

oinkl
Member
Registered: 2010-01-13
Posts: 43

Re: prime synchronization breaks with kernel 5.4

polyakov84 wrote:

I've made as you described.
There was no any errors while patched and installed package. But it still doesn't work.



$ xrandr --setprovideroutputsource NVIDIA-G0 Intel
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x220
  Serial number of failed request:  16
  Current serial number in output stream:  17

https://wiki.archlinux.org/index.php/PR … offloading

Note: GPU offloading is not supported by the closed-source drivers.

Offline

#35 2020-01-12 14:18:42

Isaak.Aleksandrov
Member
Registered: 2020-01-12
Posts: 1

Re: prime synchronization breaks with kernel 5.4

Waan wrote:
zjeffer wrote:

Don't want to necrobump, but that patch still works to get vsync working with prime for: extra/nvidia-dkms 440.44-10 <-> kernel: archlinux 5.4.10-arch1-1
Would be nice to see that patch included in next versions of nvidia and nvidia-dkms, so i don't have to keep patching manually.

You (and/or anyone else who needs the patch) could take the official Arch package, modify that by adding in the patch in the "prepare" section; and use the resulting DKMS version. By doing so you'd not have to manually patch each new kernel release.
The steps oinkl outlines, and using the resulting DKMS version instead, would work just fine.

As for a more "compatible" patch, I've made a new version that hopefully still works as it should, while still retaining compatibility with older versions of the Linux kernel.

(New) PRIME patch: https://gitlab.com/snippets/1929174
Sample (DKMS only) PKGBUILD: https://gitlab.com/snippets/1925454

The sample applies a 5.5 patch as well, but that shouldn't interfere with kernels < 5.5. Though, feel free to remove that part (from sources, checksums, and the prepare section).
I'm running with the 5.5 kernel patch myself, so that should be fine, but I'm not, however, running a PRIME compatible system, so I'm not able to try that one out myself.

Edit:
I'm blind today, just saw that you're already using the DKMS package. Still, the same idea applies to anyone. Using the DKMS package doesn't require re-patching each time.

Last edited by Isaak.Aleksandrov (2020-01-12 14:21:00)

Offline

#36 2020-01-13 03:01:32

dglt
Member
Registered: 2019-08-14
Posts: 68

Re: prime synchronization breaks with kernel 5.4

thanks for the patch/pkgbuild . tested with 5.4 and prime sync is working.

Offline

Board footer

Powered by FluxBB