Error creating VDPAU device: 1 on Optimus laptop Asus X550CC with GT720M / Fedora 20 / xrandr

Hi,

I have Asus X550CC (XX030) optimus laptop. It has GeForce GT720M dGPU. I use xrandr to display desktop rendered by the dGPU on Fedora 20/Mate. Everything works fine except VDPAU.

VDPAU_TRACE=2 VDPAU_NVIDIA_DEBUG=3 vdpauinfo says the following:

display: :0.0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x99f010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  340.46  Wed Sep 24 13:57:15 PDT 2014
VDPAU nvidia: Error detected 10 357  5
VDPAU nvidia: Backtrace:
--: /usr/lib64/vdpau/libvdpau_nvidia.so.1 [0x7fb472373000] DSO load base
00: /usr/lib64/vdpau/libvdpau_nvidia.so.1 [0x7fb4723a8fbd] 
01: /usr/lib64/vdpau/libvdpau_nvidia.so.1 [0x7fb472398903] 
02: /usr/lib64/vdpau/libvdpau_nvidia.so.1 [0x7fb47237d013] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

My lightdm setup display script:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

I have also tried Ubuntu 14.04 with bumblebee and prime. No success, the same result.

I have no idea why the VDPAU is not working on this laptop. The GT720M should support the VDPAU. Can it be disabled by laptop vendor? Or can it be a hardware failure or a bug in BIOS? Or is it a configuration issue or something else?

Thanks for any help.
nvidia-bug-report.log.gz (70.8 KB)

Same problem here.

display: :0   screen: 0
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x252b010, 0, -, -)
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  343.22  Thu Sep 11 15:58:04 PDT 2014
VDPAU nvidia: Error detected 9 304  5
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6750dbb000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6750ded60f] 
01: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6750ddd523] 
02: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f6750dc2913] vdp_imp_device_create_x11
    -> 1
Error creating VDPAU device: 1

Also using the same xrandr commands.

Distro is ArchLinux, GPU is a GeForce 840M (GM108M), driver version 343.22.
This appears to be a driver bug.

Same problem, with same config. Arch, 840M.
With VDPAU_DRIVER=nvidia, DRI_PRIME=1.