Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: 16.04LTS intel skylake hw video accelleration

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Beans
    10

    16.04LTS intel skylake hw video accelleration

    Hi all,
    I've just installed lubuntu 16.04 on a new machine based on a intel i5-6400t, and a b150 msi motherboard.
    This cpu belongs to the last (6th) family of intel cpu also known as "skylake", and, as the predecessors, this include an integrated graphic adapter, in my case, intel name the integrated video card "hd530".

    my question (in short) is:
    is video hw accelleration, of the intel integrated graphic adapter, enabled? how I can check(/enable) this?


    symptoms of unaccellerated video decoding:
    1)In some particular situation I note video chopping (a continuoos freezing of audio and video) Is Impossible to see the stream.
    I've appreciated this with a stream mpeg2 video, with mp3 audio, using vlc, and htsp plugin, for tvheadend (tvheadend is a server for dvb-t/s adapter, so I say mpeg2, and mp3, because the last format are these). Changing the way stream is encapsulated to http (not using the vlc plugin), video is ok, but cpu seems working a bit. (note: the same work goes well on an atom n450..).
    2)trying to test video capability, in more common situations as youtube ecc , enabling hd ecc, it seems work, sometimes with some raw artifacts, and, maybe, with a suspicious work for cpu.

    investigation and information:
    here below some attempts to collect info:
    1)vainfo
    2)lspci|grep VGA
    3)inxi -b
    4)dmesg| grep -i drm
    5)lsmod |grep video
    6)lsmod |grep drm
    7)lshw


    1) vainfo return a strange error messages about i965_drv_video.so, I say strange because for what I've understood name for the module should be i915

    Code:
    vainfo
    libva info: VA-API version 0.39.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva info: va_openDriver() returns -1
    vaInitialize failed with error code -1 (unknown libva error),exit
    (note that at same path exist the "i915_drv_video.so" file, and that, apparently it is the same of "i965_drv_video.so",
    in reason of the fact they compute same hash
    :
    Code:
     openssl dgst -sha256 i965_dri.so 
    SHA256(i965_dri.so)= 034a14fa03d47a8627b95b510934e8689dd52131b1280a4ab3713cc1e8a26e53
    openssl dgst -sha256 i915_dri.so  
    SHA256(i915_dri.so)= 034a14fa03d47a8627b95b510934e8689dd52131b1280a4ab3713cc1e8a26e53
    )


    2)
    lspci seems ok

    Code:
    lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06)

    3)
    inxi seems good but field driver is blank shouldn't return a name like, maybe, "intel"
    Code:
    inxi -b
    System:    Host: MS-7982 Kernel: 4.4.0-24-generic x86_64 (64 bit) Desktop: LXDE (Openbox 3.6.1)
               Distro: Ubuntu 16.04 xenial
    Machine:   Mobo: MSI model: B150M PRO-VDH (MS-7982) v: 1.0 Bios: American Megatrends v: 3.90 date: 06/03/2016
    CPU:       Quad core Intel Core i5-6400 (-MCP-) speed/max: 799/3300 MHz
    Graphics:  Card: Intel Sky Lake Integrated Graphics
               Display Server: X.Org 1.18.3 drivers: (unloaded: fbdev,vesa) Resolution: 1152x864@75.00hz
               GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) GLX Version: 3.0 Mesa 11.2.0
    Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
    Drives:    HDD Total Size: 1120.2GB (18.3% used)
    Info:      Processes: 164 Uptime: 3:37 Memory: 905.7/7859.0MB Client: Shell (bash) inxi: 2.2.35


    4)
    dmesg| grep -i drm seems ok except for the part where says "timed out"..

    Code:
    dmesg| grep -i drm
    [    0.919844] [drm] Initialized drm 1.1.0 20060810
    [    0.971117] [drm] Memory usable by graphics device = 4096M
    [    0.971118] [drm] Replacing VGA console driver
    [    0.978829] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    0.978831] [drm] Driver supports precise vblank timestamp query.
    [    0.983467] [drm] Finished loading i915/skl_dmc_ver1.bin (v1.26)
    [    1.042780] [drm] failed to retrieve link info, disabling eDP
    [    1.048509] [drm] Initialized i915_bpo 1.6.0 20160229 for 0000:00:02.0 on minor 0
    [    1.362836] [drm] GMBUS [i915 gmbus dpd] timed out, falling back to bit banging on pin 6
    [    1.395313] fbcon: inteldrmfb (fb0) is primary device
    [    1.733263] i915_bpo 0000:00:02.0: fb0: inteldrmfb frame buffer device
    [    2.794980] [drm] RC6 on
    [ 5265.757304] [drm] RC6 on


    5) lsmod |grep video

    Code:
    lsmod |grep video
    video 40960 1 i915_bpo


    6) lsmod |grep drm

    Code:
    lsmod |grep drm
    drm_kms_helper        147456  1 i915_bpo
    syscopyarea            16384  1 drm_kms_helper
    sysfillrect            16384  1 drm_kms_helper
    sysimgblt              16384  1 drm_kms_helper
    fb_sys_fops            16384  1 drm_kms_helper
    drm                   360448  4 i915_bpo,drm_kms_helper


    7)
    typing sudo lshw (only part about graphic)
    Code:
    *-pci
              description: Host bridge
              product: Sky Lake Host Bridge/DRAM Registers
              vendor: Intel Corporation
              physical id: 100
              bus info: pci@0000:00:00.0
              version: 07
              width: 32 bits
              clock: 33MHz
            *-display
                 description: VGA compatible controller
                 product: Sky Lake Integrated Graphics
                 vendor: Intel Corporation
                 physical id: 2
                 bus info: pci@0000:00:02.0
                 version: 06
                 width: 64 bits
                 clock: 33MHz
                 capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
                 configuration: driver=i915_bpo latency=0
                 resources: irq:315 memory:de000000-deffffff memory:c0000000-cfffffff ioport:f000(size=64)

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    3,511

    Re: 16.04LTS intel skylake hw video accelleration

    is video hw accelleration, of the intel integrated graphic adapter, enabled? how I can check(/enable) this?
    check with:

    Code:
    dmn@Sydney:~$ glxinfo | grep rendering
    direct rendering: Yes
    Yes is good.

  3. #3
    Join Date
    Jun 2007
    Beans
    16,491

    Re: 16.04LTS intel skylake hw video accelleration

    Code:
    sudo apt install i965-va-driver
    That is the proper driver
    You can also install the gst vaapi plugin package if desired - gstreamer1.0-vaapi

  4. #4
    Join Date
    Oct 2011
    Beans
    10

    Re: 16.04LTS intel skylake hw video accelleration

    1) tried the code glxinfo |grep rendering, to check hw video support, and it replied rendering: Yes.
    here's the initial chunk of result.
    Code:
    :~$ glxinfo 
    name of display: :0.0
    display: :0  screen: 0
    direct rendering: Yes
    server glx vendor string: SGI
    server glx version string: 1.4
    server glx extensions:
    I'm not an expert. OpenGL was'nt about 3D?


    2)I will try to install the i965-va-driver (and other package mentioned above).

    In the package description it mentions all intel video card/cpu family except the latest: skylake..
    This package contains the video decode and encode driver backend for the
    Intel G45 chipsets and Intel HD Graphics for the Intel Core processor family.
    The supported platforms include:
    * Cantiga, Intel GMA 4500MHD (GM45)
    * Ironlake, Intel HD Graphics for 2010 Intel Core processor family
    * Sandy Bridge, Intel HD Graphics for 2011 Intel Core processor family
    * Ivy Bridge
    * Haswell
    * Broadwell

    link fore more information refer to: http://www.freedesktop.org/wiki/Software/vaapi
    trying to retrieve all packages that satisfy query "-va-driver" I obtain:
    -the above mentioned i965-va-driver
    -mesa-va-drivers (it speaks about h.264 codec only for supported graphics card http://mesa3d.org/)
    -vdpau-va-driver (http://freedesktop.org/wiki/Software/vaapi/ The VA-API.. (Video Acceleration API) enables hardware accelerated video
    decode/encode at various entry-points)

    after i965-va-driver is installed the vainfo output seems more correct (I've also installed de gstreamer package above suggested).

    the problem with vlc htsp plugin (tvheadend) remain, but when I try to play without the plugin via http, or youtube video it seems a bit light, with no artifacts and less cpu use :

    Code:
    vainfo
    libva info: VA-API version 0.39.0
    libva info: va_getDriverName() returns 0
     libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_39
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 0.39 (libva 1.7.0)
     vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.7.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
          VAProfileJPEGBaseline           :    VAEntrypointEncPicture
          VAProfileVP8Version0_3          :    VAEntrypointVLD
          VAProfileVP8Version0_3          :    VAEntrypointEncSlice
          VAProfileHEVCMain               :    VAEntrypointVLD
          VAProfileHEVCMain               :    VAEntrypointEncSlice
    Last edited by howefield; June 27th, 2016 at 09:55 AM. Reason: posts combined.

  5. #5
    Join Date
    Jun 2007
    Beans
    16,491

    Re: 16.04LTS intel skylake hw video accelleration

    i965 currently in 16.04 supports skylake, works very well here on such hardware. It's not being mentioned in package description was just an oversight that was later fixed in Debian, ie.
    intel-vaapi-driver (1.7.1-1) unstable; urgency=medium

    * New upstream release.
    * debian/control:
    - Bump Standards-Version.
    - Build-Depends: Bump libdrm-dev and libva-dev according to configure.ac.
    - Description: Mention Skylake.

    -- Sebastian Ramacher <sramacher@debian.org> Wed, 22 Jun 2016 19:08:16 +0200
    As far as vlc, no idea here though vlc's vaapi support is poor at best.

  6. #6
    Join Date
    Oct 2011
    Beans
    10

    Thumbs up Re: 16.04LTS intel skylake hw video accelleration


    all is solved


    for not enabled hw video on skylake platform (intel hd530):
    1)instruction of installing "i965-va-driver" (despite is not mentioned "skylake") and other package gstreamer works:
    ->after the installation the vainfo output explicit says "skylake", and show a list of "codec hw" (output in post above with detail enfatized in green, note that I ha write two post joined by admin..)
    thanks to "mc4man"

    2)
    for the remaining strange(/rare) case of htsp plugin for vlc (to use vlc as a client for tvheadend) problem persisted, but I've thought that this maybe a particular problem of how that software application was written: same video watched as an http stream hasn't issues but with these client for htsp protocol there are problem.
    I had noticed that seemed like there was an audio problem (rather than video) that delayed the video frame: disabling the audio track, and waiting a bit, the video stream had no problems. During the playing I can see numerous warning of audio problem.
    my audio is onboard, motherboard manual says "Realtek alc887 codec", in vlc i see numeros audio device (hdmi,analog, ecc.. all intel based, maybe that this chip is inside the b150 intel chipset).

    I've tried to install package pulseaudio (not previously installed)
    after then the alsamixer has only two control, and has indication "pulseaudio" (rather than alc887)

    now there aren't issues.

  7. #7
    Join Date
    Aug 2016
    Beans
    4

    Re: 16.04LTS intel skylake hw video accelleration

    Sorry to re-open this, but what are the actual steps to install the "i965-va-driver"?

    I have only done this so far and restarted:
    sudo apt install i965-va-driver
    It seems like I am missing a step which actually configures the new driver, right?

    Many thanks!

  8. #8
    Join Date
    Jun 2007
    Beans
    16,491

    Re: 16.04LTS intel skylake hw video accelleration

    Quote Originally Posted by jbrid2 View Post
    Sorry to re-open this, but what are the actual steps to install the "i965-va-driver"?

    I have only done this so far and restarted:


    It seems like I am missing a step which actually configures the new driver, right?

    Many thanks!
    There is nothing to configure. Run vainfo & see what it returns.
    Ex. here on skylake -
    Code:
    $ vainfo
    libva info: VA-API version 0.39.2
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_39
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 0.39 (libva 1.7.1)
    vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.7.2.pre1 (1.7.0-64-g1cd6795)
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Simple            :	VAEntrypointEncSlice
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointEncSlice
          VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
          VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
          VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointEncSlice
          VAProfileH264Main               :	VAEntrypointEncSliceLP
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointEncSlice
          VAProfileH264High               :	VAEntrypointEncSliceLP
          VAProfileH264MultiviewHigh      :	VAEntrypointVLD
          VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
          VAProfileH264StereoHigh         :	VAEntrypointVLD
          VAProfileH264StereoHigh         :	VAEntrypointEncSlice
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVLD
          VAProfileNone                   :	VAEntrypointVideoProc
          VAProfileJPEGBaseline           :	VAEntrypointVLD
          VAProfileJPEGBaseline           :	VAEntrypointEncPicture
          VAProfileVP8Version0_3          :	VAEntrypointVLD
          VAProfileVP8Version0_3          :	VAEntrypointEncSlice
          VAProfileHEVCMain               :	VAEntrypointVLD
          VAProfileHEVCMain               :	VAEntrypointEncSlice

  9. #9
    Join Date
    May 2010
    Beans
    13

    Re: 16.04LTS intel skylake hw video accelleration

    Hi

    I've got a new laptop, Dell Inspiron 5000 with 6th generation Core i5 and Intel HD 520 graphics.
    I've installed Lubuntu 16.04 and I'm having problem with the hardware acceleration, especially in VLC. When I play 720p videos I've got slight tearing, not a huge problem but very annoying as it happens with fast movement.

    Regarding Chrome, it reports software video decoding only:
    Video Decode: Software only. Hardware acceleration disabled

    To try to solve it I've done the following:

    - Installed latest kernel v4.4.14-xenial/ which has i915 driver

    In VLC:
    - Enabled VA-API, installed
    sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo

    If I start vlc -v I can see the i965 driver is loaded correctly

    - Changed output to OpenGL GLX video output
    - Skip the loop filter for H.264 decoding set to All

    Is it possible to have a smoother playback with no tearing in VLC or is that as good as it gets? It's quite annoying as the hardware is good and the playback is smooth in Windows, I just prefer to use Lubuntu if possible.

    I would also like to enable hardware video decoding in Chrome.
    Any help appreciated, there are a lot of out of date instruction on the web.

    Thanks
    Last edited by ozsliver; August 7th, 2016 at 11:42 AM.

  10. #10
    Join Date
    Jun 2007
    Beans
    16,491

    Re: 16.04LTS intel skylake hw video accelleration

    Quote Originally Posted by ozsliver View Post
    Hi

    I've got a new laptop, Dell Inspiron 5000 with 6th generation Core i5 and Intel HD 520 graphics.
    I've installed Lubuntu 16.04 and I'm having problem with the hardware acceleration, especially in VLC. When I play 720p videos I've got slight tearing, not a huge problem but very annoying as it happens with fast movement.

    Regarding Chrome, it reports software video decoding only:
    Video Decode: Software only. Hardware acceleration disabled
    The tearing is a default 'feature' of lubuntu, if you search it you'll find many suggestions, likely one would work. (I don't use lubuntu, here in ubuntu there is no tearing on Intel gpu

    As far as google-chrome you have to set the flag, see here -

    http://www.webupd8.org/2014/01/enabl...in-chrome.html

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •