Bug#800658: Please consider shipping my /etc/X11/Xsession.d/99-select-vdpau-driver script in libvdpau1

Luca Boccassi luca.boccassi at gmail.com
Sat Oct 3 14:39:38 UTC 2015


On 2 October 2015 at 09:16, Alexander Kurtz <alexander at kurtz.be> wrote:
> Package:  libvdpau1
> Version:  1.1.1-1
> Severity: wishlist
>
> Hi,
>
> I currently have this in /etc/X11/Xsession.d/99-select-vdpau-driver:
>
>         #!/bin/sh -e
>
>         prefix="/usr/lib/`arch`-`uname | tr '[:upper:]' '[:lower:]'`-gnu/vdpau/libvdpau_"
>         suffix=".so"
>
>         for driver in "${prefix}"*"${suffix}"; do
>                 driver="${driver#${prefix}}"
>                 driver="${driver%${suffix}}"
>
>                 if VDPAU_DRIVER="${driver}" vdpauinfo 1>/dev/null 2>/dev/null; then
>                         export VDPAU_DRIVER="${driver}"
>                         break
>                 fi
>         done
>
> Without this script, I get this:
>
>         $ vdpauinfo
>         display: :0   screen: 0
>         Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
>         Error creating VDPAU device: 1
>         $
>
> With it, everything works fine. You may want to consider shipping the
> script above in the libvdpau1 package. If you do, please don't forget
> to add a dependency on the vdpauinfo package.

Hello Alexander,

Thanks for the suggestion.

But libvdpau itself already has code to look for the available drivers
and pick one, and the env var is left so that the user can manually
override if he/she chooses to.

On which setup are you encountering this issue? I would perhaps be
better trying to fix it in the library itself, if possible, before
adding a new script. Could you please share more details about your
system, and the result of reportbug --template libvdpau1 ?

Thank you!

Kind regards,
Luca Boccassi



More information about the pkg-nvidia-devel mailing list