Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569860 - x11-drivers/nvidia-drivers-340.96, libvdpau_nvidia.so is in incorrect location, causing vdpau issues
Summary: x11-drivers/nvidia-drivers-340.96, libvdpau_nvidia.so is in incorrect locatio...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-26 21:16 UTC by gentoobugzilla
Modified: 2015-12-28 07:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,5.40 KB, text/plain)
2015-12-26 21:16 UTC, gentoobugzilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoobugzilla 2015-12-26 21:16:58 UTC
Created attachment 420912 [details]
emerge --info

SUMMARY
libvdpau_nvidia.so is installed in /usr/lib instead of /usr/lib/vdpau

Upgraded nvidia-drivers from 340.93 (I think) to 355.11-r2, and found that my graphics card wasn't supported. Downgraded to highest version with support - 340.96. This installed libvdpau_nvidia into /usr/lib and set up appropriate symlinks in that directory. However, vdpau appears to expect driver libraries in /usr/lib/vdpau/  The previous driver remained in /usr/lib/vdpau/  When I fixed up the symlink in vdpau/ to point to the file in lib/

I'm guessing there's some issue in the install script for nvidia-drivers 340.96 or maybe libvdpau.

SYMPTOMS
However, after reboot, kodi was found to be stuttering. Debug log showed that VDPAU was throwing an error "unable to init VDPAU - vdp_st = 0x1. Falling back." Running vdpauinfo returned an error "ERROR Creating VDPAU device". Tried reinstalling nvidia-drivers and libvdpau, with no effect.

When I did "export VDPAU_NVIDIA_DEBUG=3; export VDPAU_TRACE=1; vdpauinfo" it showed that it was using the NVidia vdpau driver version 340.93. When I checked, this didn't match the nvidia driver I was using (340.96). /usr/lib/libvdpau_nvidia.so.340.96 existed, and strings verified it was the correct version. Symlinks in /usr/lib pointed to that file. However, I found a /usr/lib/vdpau/libvdpau_nvidia.so.340.93 with symlink to it from /usr/lib/vdpau/libvdpau_nvidia.so.1  When I changed that symlink to instead point to the 340.96 file, everything started working properly.

WORKAROUND
rm /usr/lib/vdpau/libvdpau_nvidia.so.1
ln -s /usr/lib/libvdpau_nvidia.so.1 /usr/lib/vdpau/libvdpau_nvidia.so.1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-28 07:18:44 UTC
(In reply to gentoobugzilla from comment #0)
> Created attachment 420912 [details]
> emerge --info
> 
> SUMMARY
> libvdpau_nvidia.so is installed in /usr/lib instead of /usr/lib/vdpau
> 
> Upgraded nvidia-drivers from 340.93 (I think) to 355.11-r2, and found that
> my graphics card wasn't supported. Downgraded to highest version with
> support - 340.96. This installed libvdpau_nvidia into /usr/lib and set up
> appropriate symlinks in that directory. However, vdpau appears to expect
> driver libraries in /usr/lib/vdpau/  The previous driver remained in
> /usr/lib/vdpau/  When I fixed up the symlink in vdpau/ to point to the file
> in lib/
> 
> I'm guessing there's some issue in the install script for nvidia-drivers
> 340.96 or maybe libvdpau.
> 
> SYMPTOMS
> However, after reboot, kodi was found to be stuttering. Debug log showed
> that VDPAU was throwing an error "unable to init VDPAU - vdp_st = 0x1.
> Falling back." Running vdpauinfo returned an error "ERROR Creating VDPAU
> device". Tried reinstalling nvidia-drivers and libvdpau, with no effect.
> 
> When I did "export VDPAU_NVIDIA_DEBUG=3; export VDPAU_TRACE=1; vdpauinfo" it
> showed that it was using the NVidia vdpau driver version 340.93. When I
> checked, this didn't match the nvidia driver I was using (340.96).
> /usr/lib/libvdpau_nvidia.so.340.96 existed, and strings verified it was the
> correct version. Symlinks in /usr/lib pointed to that file. However, I found
> a /usr/lib/vdpau/libvdpau_nvidia.so.340.93 with symlink to it from
> /usr/lib/vdpau/libvdpau_nvidia.so.1  When I changed that symlink to instead
> point to the 340.96 file, everything started working properly.
> 
> WORKAROUND
> rm /usr/lib/vdpau/libvdpau_nvidia.so.1

The nvidia-drivers ebuilds do neither install that file there, nor keep old versions of libvdpau_nvidia lingering.

You must have been tinkering with it outside package management.