Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11 does not work after atta vaapidevice #123

Closed
geraldraaf opened this issue Dec 9, 2018 · 6 comments
Closed

X11 does not work after atta vaapidevice #123

geraldraaf opened this issue Dec 9, 2018 · 6 comments

Comments

@geraldraaf
Copy link

After updating my Gentoo system vaapidevice don't work as expected.
I start my Notebook and vdr is started with vaapidevice in detached.mode.
If i attach (svdrpsend plug vaapidevice atta) a window open with black surface is opened and i can hear audio.

But i can't switch to any other open programm nor can i open the OSD.
If i detach vaapidevice audio is gone but the black screen is still there.
I also stop vdr but the black screen remains open and i have to restart X.

It has something todo with the driver i use with X it's the modesetting driver if i change X to use the deprecated intel driver from xf86-video-intel everything works as expected.

VAAPIDEVICE SYSTEM INFORMATION REPORT

inxi
System:    Kernel: 4.19.1-gentoo x86_64 bits: 64 gcc: 7.3.0 Console: tty 3
           Distro: Gentoo Base System release 2.6
Machine:   Device: laptop System: LENOVO product: 20CD000MGE v: ThinkPad S1 Yoga serial: <filter>
           Mobo: LENOVO model: 20CD000MGE v: SDK0E50510 Pro serial: <filter>
           UEFI: LENOVO v: GQET58WW (1.38 ) date: 05/29/2018
CPU:       Dual core Intel Core i5-4200U (-MT-MCP-) arch: Haswell rev.1 cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9177
           clock speeds: max: 2600 MHz 1: 1622 MHz 2: 1927 MHz 3: 1831 MHz 4: 1915 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller bus-ID: 00:02.0
           Display Server: X.org 1.20.3 driver: modesetting tty size: 240x75 Advanced Data: N/A for root out of X
Audio:     Card-1 Intel 8 Series HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Card-3 Lenovo driver: USB Audio usb-ID: 002-007
           Sound: Advanced Linux Sound Architecture v: k4.19.1-gentoo
vainfo
vainfo: VA-API version: 1.3 (libva 2.3.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.2.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
ffmpeg
ffmpeg version 3.4.5 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (Gentoo 7.3.0-r3 p1.4)
libavutil      55. 78.100 / 55. 78.100
libavcodec     57.107.100 / 57.107.100
libavformat    57. 83.100 / 57. 83.100
libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100
libavresample   3.  7.  0 /  3.  7.  0
libswscale      4.  8.100 /  4.  8.100
libswresample   2.  9.100 /  2.  9.100
libpostproc    54.  7.100 / 54.  7.100
gcc
7.3.0
svdrpsend
220 <filter> SVDRP VideoDiskRecorder 2.4.0; Sun Dec  9 15:46:32 2018; UTF-8
900- Frames: missed(0) duped(83) dropped(19) total(1765) PTS(21:04:49.129) drift(6) audio(343) video(0)
900- Video: h264/vaapi_vld 1280x720p 16:9 @ 1916x1173 - Intel i965 driver for Intel(R) Haswell Mobile - 2.2.0
900- Audio: ac3 48000Hz 2 channels
900 Command: vaapidevice -a default -d :0.0 -D -w alsa-driver-broken
221 <filter> closing connection
INCLUDE THIS REPORT INTO YOUR GITHUB ISSUE
@rofafor
Copy link
Contributor

rofafor commented Dec 10, 2018

Unable to reproduce this within my Gentoo setup. The similar effect might occur when using Intel's media-driver with unsupported hardware (read: Haswell).

export LIBVA_DRIVER_NAME=i965 # Haswell isn't supported in "iHD"
/path/to/vdr --help

@geraldraaf
Copy link
Author

i found the problem, but don't know how to solve it.
In my HW setup i normaly use a Docking Station with 2 external monitors attached. If i disconnect the docking station and start vdr with vaapidevice in fullscreen mode i can watch TV and view recordings.

@rofafor
Copy link
Contributor

rofafor commented Dec 10, 2018

Unable to reproduce the reported bug in a windowed mode either using the current GIT master. I'm having a bit newer kernel (4.19.8) and ffmpeg (4.1) than you, but only one monitor and that might make a difference.

@geraldraaf
Copy link
Author

Did some other tests. When i deactivate 2 Monitors with randr everthing works but if there is more than one Monitor activ atta vaapidevice X11 freezes.
I also have current GIT master installed and ffmpeg also in version 4.1

@geraldraaf
Copy link
Author

So it's definitely a more then 1 Monitor Problem.

@geraldraaf
Copy link
Author

yesterday i have tried it again after a System Update, and it works, no more system freeze.

VAAPIDEVICE SYSTEM INFORMATION REPORT

inxi
System:    Kernel: 5.6.14-gentoo x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: LXDE 0.10.1 
           Distro: Gentoo Base System release 2.7 
Machine:   Type: Laptop System: LENOVO product: 20CD000MGE v: ThinkPad S1 Yoga serial: <filter> 
           Mobo: LENOVO model: 20CD000MGE v: SDK0E50510 Pro serial: <filter> UEFI: LENOVO v: GQET58WW (1.38 ) date: 05/29/2018 
CPU:       Info: Dual Core model: Intel Core i5-4200U bits: 64 type: MT MCP arch: Haswell rev: 1 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18356 
           Speed: 2179 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1582 4: 1587 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: Realtek Integrated Camera type: USB driver: uvcvideo bus ID: 2-6:8 
           Display: x11 server: X.Org 1.20.10 driver: modesetting resolution: 1: 1920x1200~60Hz 2: 1920x1200~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.3.4 direct render: Yes 
Audio:     Device-1: Intel Haswell-ULT HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:03.0 
           Device-2: Intel 8 Series HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           Device-3: Lenovo ThinkPad OneLink Pro Dock Audio type: USB driver: hid-generic,snd-usb-audio,usbhid 
           bus ID: 2-3.1.4:7 
           Sound Server: ALSA v: k5.6.14-gentoo 
vainfo
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
ffmpeg
ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
gcc
10.2.0
svdrpsend
220 <filter> SVDRP VideoDiskRecorder 2.4.6; Fri Mar 19 10:06:03 2021; UTF-8
900-
900-
900-
900 Command: vaapidevice -a default -d :0.0 -D -w alsa-driver-broken
221 <filter> closing connection
INCLUDE THIS REPORT INTO YOUR GITHUB ISSUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants