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.
- Build and install libva from https://github.com/intel/libva
- Build and install gmmlib from https://github.com/intel/gmmlib
- 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
- 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
留言
張貼留言