AMD: Installing Linux Mint 20

From fit-PC wiki
Jump to: navigation, search

Supported devices

  • This guide is valid for fit-PC3/3i, fit-PC4, fitlet1, fitlet1-H/T

Prepare installation media

Base installation of Linux Mint

  • Follow the standard Linux Mint installation procedure - choose timezone, partitions, username, password etc.
  • Disconnect the installation media and reboot.
  • Login using previously selected username and password.

Video acceleration drivers

$ sudo apt update
$ sudo apt install va-driver-all mint-meta-codecs vainfo

Then run vainfo command, you should see list of supported profiles, for example on fitlet1:

$ vainfo 
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Mesa Gallium driver 20.0.8 for AMD KABINI (DRM 2.50.0, 5.4.0-40-generic, LLVM 10.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileNone                   :	VAEntrypointVideoProc

MPV media player

  • Well known free and open-source multimedia player
  • Supports GPU accelerated video decoding and gives excellent playback quality
  • Compatible with the most popular video formats
$ sudo apt install mpv youtube-dl mint-meta-codecs

For example, fitlet1 is capable to play full HD video from the local file:

$ mpv -fs ~/Videos/big_buck_bunny/ 
 (+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 6ch 48000Hz)
AO: [pulse] 48000Hz 5.1 6ch float
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s+0KB

Or the same content directly from the youtube:

$ mpv -fs
 (+) Video --vid=1 (*) (h264 1920x1080)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:09:56 / 00:09:56 (99%) A-V:  0.000 Cache:  0s

See also