Comment 111 for bug 967091

Revision history for this message
Alex (d-f0rce) wrote : Re: Wrong tint with Nvidia after upgrading to 11.2

Stephen Warren's patch works great for me. Everybody who does no longer want to wait, can easily compile a custom package. Just copy the patch from his post and paste it into a file "vdpau.patch". Then patch and recompile the Ubuntu package:

$ sudo -s
$ mkdir build
$ apt-get install build-essential fakeroot dpkg-dev
$ apt-get source libvdpau1
$ apt-get build-dep libvdpau1
$ cd libvdpau-0.4.1/
$ patch -p1 < /path/to/vdpau.patch
$ dpkg-buildpackage -rfakeroot -b
$ cp src/vdpau_wrapper.cfg /etc/
$ dpkg -i ../libvdpau1_0.4.1-3ubuntu1_amd64.deb

Enjoy your videos.

Be careful when copying the patch from his post. The patch should start with the line "diff --git a/src/Makefile.am b/src/Makefile.am" and end with the line "+disable_flash_pq_bg_color=1".

When patching the source, the output should look like:
---
patching file src/Makefile.am
Hunk #2 succeeded at 28 (offset 1 line).
patching file src/vdpau_wrapper.c
Hunk #1 succeeded at 222 (offset 12 lines).
Hunk #2 succeeded at 389 (offset 12 lines).
Hunk #3 succeeded at 399 (offset 12 lines).
patching file src/vdpau_wrapper.cfg
---

Be aware that your custom package will be overwritten with the next update of the original package. So if the next update does not yet contain this patch, you have to do the procedure again.