How to install intel UHD-600 series GPU driver on UBUNTU

 


To detect the graphics hardware in your system, use this command


$ lshw -c video



You can also use this command


$ lspci -k | grep -EA3 ‘VGA|3D|Display’


See an example listed below of the output. In the example, the graphics controller is HD Graphics 500



The intel Graphic card UHD-605 , cpu is intel j4105 to test.


reference: https://github.com/intel/media-driver/

Intel(R) Media Driver for VAAPI

Introduction

The Intel(R) Media Driver for VAAPI is a new VA-API (Video Acceleration API) user mode driver supporting hardware accelerated decoding, encoding, and video post processing for GEN based graphics hardware.

License

The Intel(R) Media Driver for VAAPI is distributed under the MIT license with portions covered under the BSD 3-clause "New" or "Revised" License. You may obtain a copy of the License at MIT & BSD-3-Clause

Building

For Ubuntu 16.04+

apt install autoconf libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev

Equivalents for other distributions should work.

  1. Build and install libva from https://github.com/intel/libva
  2. Build and install gmmlib from https://github.com/intel/gmmlib
  3. Get media repo and format the workspace folder as below (suggest the workspace to be a dedicated one for media driver build):
<workspace>
    |- media-driver




  1. Create build_media new folder under your workspace
$ mkdir <workspace>/build_media

then the workspace looks like below

<workspace>
    |- media-driver
    |- build_media
$ cd <workspace>/build_media  

$ cmake ../media-driver
$ make -j"$(nproc)"

Install

$ sudo make install

This will install the following files (e.g. on Ubuntu):

-- Installing: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
-- Installing: /etc/profile.d/intel-media.sh
-- Installing: /usr/lib/x86_64-linux-gnu/igfxcmrt64.so

For iHD_drv_video.so please export related LIBVA environment variables.

export LIBVA_DRIVERS_PATH=<path-contains-iHD_drv_video.so>
export LIBVA_DRIVER_NAME=iHD
for example:
you can put this 2 export line in  ~/.bashrc
$nano ~/.bashrc
export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
export LIBVA_DRIVER_NAME=iHD


留言

這個網誌中的熱門文章

【多益】現點現做的英文怎麼說呢?

《Microsoft Word 應用》:圖片被文字蓋住解決方法,不可設定為固定行高

如何在Ubuntu系統上安裝Notepad ++ (Install Notepad++ On Ubuntu 16.04 / 17.10 / 18.04 / 20.04)