Can't get to work VDPAU on Optimus Notebook. But everything else works fine

Hey there,

after days of googleing and trying i’m out of ideas. I own a Asus N76VB Notebook with nvidia GT740M and i7. The Linux distribution is Kubuntu 14.04.

Kernel: 3.13.0-40-generic
Nvidida-Drivers: 346.22 (trying anything below also)

$ export VDPAU_TRACE=2
$ export VDPAU_NVIDIA_DEBUG=3
$ vdpauinfo
display: :0 screen: 0
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library 346.22 Tue Dec 2 10:23:46 PST 2014
VDPAU nvidia: Error detected 9 326 5
VDPAU nvidia: Backtrace:
–: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f748d78d000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f748d7c061f]
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f748d7af693]
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f748d794c03] vdp_imp_device_create_x11
Error creating VDPAU device: 1

nvidia-bug-report file shows nothing.

mplayer -vo vdpau movie.mkv
[…]
[vdpau] Error when calling vdp_device_create_x11: 1
[…]

$ prime-select query
nvidia

$ glxinfo |grep render
direct rendering: Yes
OpenGL renderer string: GeForce GT 740M/PCIe/SSE2
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info,
GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_KTX_buffer_region, GL_NVX_conditional_render, GL_NVX_gpu_memory_info,
GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,

any help would be greatly appreciated

Thanks!

I have exact same problem, 740M and VAAPI not working on Ubuntu.

rz2k@victorique:~$ vainfo
libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_35
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  346.22  Tue Dec  2 10:23:46 PST 2014
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0b0d721000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0b0d75461f] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0b0d743693] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0b0d728c03] vdp_imp_device_create_x11
libva error: /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

strace http://pastebin.com/NMbnL43q.

Please help,

Best Regards,
Dmitry Beykun

bump.

Can you please generate and attach an nvidia-bug-report.log.gz file?

sure, Dropbox - File Deleted - Simplify your life

I’ve got the same issue, GTX 840M (GM108M), xorg-server 1.16.3, libvdpau 0.8, nvidia 343.36

fratti, can you please post a bug report and the exact error message you’re getting, too?

Sure.

✓ fratti@archbook ~ $ export VDPAU_TRACE=2
✓ fratti@archbook ~ $ export VDPAU_NVIDIA_DEBUG=3
✓ fratti@archbook ~ $ vdpauinfo 
display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x7f35c74b5010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  346.35  Sat Jan 10 20:57:09 PST 2015
VDPAU nvidia: Error detected 9 326  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f35c4743000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f35c477661f] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f35c4765693] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f35c474ac03] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

All outputs of this laptop are connected to the Intel GPU, by the way. Might be relevant:

✓ fratti@archbook ~ $ xrandr --listproviders 
Providers: number : 2
Provider 0: id: 0x1f5 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 1 name:modesetting

nvidia-bug-report.sh generated log:
http://fratti.ch/tmp/optimus-vdpau.log.gz

its interesting how my system has 346.22 and yours 346.35, but offset in libvdpau (which I believe was updated in last release) is the same.

The same issue here with GT640 on desktop. Tried with 304.125, 331.113 and 340.76. Might be relevant that older GS8400 runs VDPAU on the same setup with no problems (after only card swap)!

Error with GT640:

ott@kroku:~$ vdpauinfo 
display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0xeb5010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  340.76  Thu Jan 22 11:28:21 PST 2015
VDPAU nvidia: Error detected 10 357  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f9cbc33c000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f9cbc371fbd] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f9cbc361903] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f9cbc346013] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

bug-report: Dropbox - nvidia-bug-report.log.gz - Simplify your life

so its not only mobile versions.

bump.

Can confirm this is still present with libvdpau 1.1 and nvidia 349.12.

✓ fratti@archbook ~ $ export VDPAU_TRACE=2
✓ fratti@archbook ~ $ export VDPAU_NVIDIA_DEBUG=3
✓ fratti@archbook ~ $ vdpauinfo
display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x7f6be3f1d010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  349.12  Sun Mar 22 07:43:37 PDT 2015
VDPAU nvidia: Error detected 9 334  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6be0a2b000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6be0a5f3df] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6be0a4e453] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6be0a33123] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1
✗ fratti@archbook ~ $ vainfo 
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_35
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x1e69c80, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  349.12  Sun Mar 22 07:43:37 PDT 2015
VDPAU nvidia: Error detected 9 334  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f61ef9a7000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f61ef9db3df] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f61ef9ca453] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f61ef9af123] vdp_imp_device_create_x11
    -> 1
Floating point exception (core dumped)

Core dump of vainfo (xz-compressed):
http://fratti.ch/tmp/vainfo.dump.xz

Test hardware: ASUS UX32L (the 1920x1080 IPS panel version); GeForce 840M (GM108M)

Bug report log: http://fratti.ch/tmp/optimus-vdpau-2.log.gz

We will check this issue internally. Tracking this issue in bug 1629911

Issue still persists on 352.09, in case anyone is wondering.

✓ fratti@archbook ~ $ vdpauinfo
display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x22cf010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  352.09  Tue May 12 14:21:07 PDT 2015
VDPAU nvidia: Error detected 9 355  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f8765844000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f87658746ec] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f8765865933] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f876584bdd3] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

For completeness’ sake, here’s the same thing from 352.21:

✗ fratti@archbook ~ $ export VDPAU_TRACE=2
✓ fratti@archbook ~ $ export VDPAU_NVIDIA_DEBUG=3
✓ fratti@archbook ~ $ vdpauinfo
display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x10dcc20, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  352.21  Tue Jun  9 21:26:39 PDT 2015
VDPAU nvidia: Error detected 9 355  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0783d1b000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0783d4b93c] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0783d3ca03] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f0783d22dd3] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

bump

same here:

display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x2582010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  346.96  Sun Aug 23 21:58:31 PDT 2015
VDPAU nvidia: Error detected 9 326  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f4a8f456000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f4a8f48985f] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f4a8f478753] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f4a8f45dc03] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

any news to this issue?

Any news?

Still the same Ubuntu 15.10 + 352.63

rz2k@victorique:~$ vdpauinfo
display: :1   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x737c20, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  352.63  Sat Nov  7 20:55:40 PST 2015
VDPAU nvidia: Error detected 9 349  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7fe32f52b000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7fe32f55baec]
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7fe32f54cb33]
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7fe32f532de3] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1
rz2k@victorique:~$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 740M/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 352.63
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 352.63
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 NVIDIA 352.63
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

ahh, bump

i’m not the only one here

370.23 driver 4.7.0 kernel ubuntu xenial gf940mx thinkpad t460

kinda relieved

vdpauinfo

display: :0   screen: 0
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  370.23  Mon Aug  8 17:28:47 PDT 2016
VDPAU nvidia: Error detected 9 351  5
VDPAU nvidia: Backtrace:
--: /usr/lib/x86_64-linux-gnu/libvdpau_nvidia.so [0x7fdcd1348000] DSO load base
00: /usr/lib/x86_64-linux-gnu/libvdpau_nvidia.so [0x7fdcd1376563] 
01: /usr/lib/x86_64-linux-gnu/libvdpau_nvidia.so [0x7fdcd1368fc3] 
02: /usr/lib/x86_64-linux-gnu/libvdpau_nvidia.so [0x7fdcd1350d7c] vdp_imp_device_create_x11
Error creating VDPAU device: 1

glxinfo|grep OpenGL

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 940MX/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 370.23
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 370.23
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 370.23
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions: