Difference between revisions of "Airtop: Installing Linux Mint 19.2"
From fit-PC wiki
(→Nvidia graphics card drivers) (change visibility) |
(→Airtop3 serial COM ports) (change visibility) |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Supported devices == | == Supported devices == | ||
− | * This guide is valid for Airtop, Airtop2 | + | * This guide is valid for Airtop, Airtop2, Airtop3 |
== Prepare installation media == | == Prepare installation media == | ||
* A USB DVD-ROM drive or a USB Flash drive of at least 2GB should be used as installation media | * A USB DVD-ROM drive or a USB Flash drive of at least 2GB should be used as installation media | ||
− | * Download [https://www.linuxmint.com/edition.php?id= | + | * Download [https://www.linuxmint.com/edition.php?id=267 Linux Mint 19.2 "Tina" - Cinnamon (64-bit)] |
* For installation with a USB DVD-ROM - flash the downloaded image directly onto a DVD | * For installation with a USB DVD-ROM - flash the downloaded image directly onto a DVD | ||
* For installation with a USB Flash drive, please follow [http://community.linuxmint.com/tutorial/view/744 How to install Linux Mint via USB] tutorial | * For installation with a USB Flash drive, please follow [http://community.linuxmint.com/tutorial/view/744 How to install Linux Mint via USB] tutorial | ||
Line 15: | Line 15: | ||
== I3M Panel == | == I3M Panel == | ||
* Integrated interactive information monitor [[Airtop:I3M | I<sup>3</sup>M]] is a GUI system integrated in the front panel of Airtop | * Integrated interactive information monitor [[Airtop:I3M | I<sup>3</sup>M]] is a GUI system integrated in the front panel of Airtop | ||
− | * Download and install the package | + | * Download and install the following package: |
<pre> | <pre> | ||
− | + | $ wget https://fit-iot.com/files/download/airtop/sw/I3M/Linux/airtop-fpsvc_3.0-2.deb | |
− | $ wget | + | $ sudo dpkg -i airtop-fpsvc_3.0-2.deb |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | $ sudo dpkg -i airtop- | + | |
... | ... | ||
− | |||
− | |||
− | |||
− | |||
Created symlink /etc/systemd/system/multi-user.target.wants/airtop-fpsvc.service → /lib/systemd/system/airtop-fpsvc.service. | Created symlink /etc/systemd/system/multi-user.target.wants/airtop-fpsvc.service → /lib/systemd/system/airtop-fpsvc.service. | ||
Created symlink /etc/systemd/system/multi-user.target.wants/gpu-thermald.service → /lib/systemd/system/gpu-thermald.service. | Created symlink /etc/systemd/system/multi-user.target.wants/gpu-thermald.service → /lib/systemd/system/gpu-thermald.service. | ||
Line 41: | Line 32: | ||
$ sudo apt install mint-meta-codecs i965-va-driver gstreamer1.0-vaapi vainfo | $ sudo apt install mint-meta-codecs i965-va-driver gstreamer1.0-vaapi vainfo | ||
</pre> | </pre> | ||
− | Then run vainfo command, you should see list of supported profiles, for example on | + | Then run vainfo command, you should see list of supported profiles, for example on Airtop3: |
<pre> | <pre> | ||
$ vainfo | $ vainfo | ||
Line 50: | Line 41: | ||
libva info: va_openDriver() returns 0 | libva info: va_openDriver() returns 0 | ||
vainfo: VA-API version: 1.1 (libva 2.1.0) | vainfo: VA-API version: 1.1 (libva 2.1.0) | ||
− | vainfo: Driver version: Intel i965 driver for Intel(R) | + | vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.1.0 |
vainfo: Supported profile and entrypoints | vainfo: Supported profile and entrypoints | ||
VAProfileMPEG2Simple : VAEntrypointVLD | VAProfileMPEG2Simple : VAEntrypointVLD | ||
Line 88: | Line 79: | ||
== Nvidia graphics card drivers == | == Nvidia graphics card drivers == | ||
<pre> | <pre> | ||
+ | $ sudo add-apt-repository ppa:graphics-drivers/ppa | ||
$ sudo apt update | $ sudo apt update | ||
$ nvidia_driver=$(apt-cache search "nvidia-driver-[0-9][0-9][0-9]" | grep -o "nvidia-driver-[0-9][0-9][0-9]" | sort | tail -1) | $ nvidia_driver=$(apt-cache search "nvidia-driver-[0-9][0-9][0-9]" | grep -o "nvidia-driver-[0-9][0-9][0-9]" | sort | tail -1) | ||
$ sudo apt install $nvidia_driver vdpauinfo mesa-vdpau-drivers vdpau-va-driver --install-recommends | $ sudo apt install $nvidia_driver vdpauinfo mesa-vdpau-drivers vdpau-va-driver --install-recommends | ||
+ | $ sudo reboot | ||
</pre> | </pre> | ||
− | Then run nvidia-smi command, you should see current NVIDIA card status: | + | |
+ | * Then run nvidia-smi command, you should see current NVIDIA card status: | ||
<pre> | <pre> | ||
$ watch -n1 nvidia-smi | $ watch -n1 nvidia-smi | ||
− | + | Sun May 26 15:57:21 2019 | |
+-----------------------------------------------------------------------------+ | +-----------------------------------------------------------------------------+ | ||
− | | NVIDIA-SMI | + | | NVIDIA-SMI 430.14 Driver Version: 430.14 CUDA Version: 10.2 | |
|-------------------------------+----------------------+----------------------+ | |-------------------------------+----------------------+----------------------+ | ||
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | ||
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | ||
|===============================+======================+======================| | |===============================+======================+======================| | ||
− | | 0 | + | | 0 Quadro RTX 4000 Off | 00000000:01:00.0 On | N/A | |
− | | 0% | + | | 0% 43C P8 1W / 125W | 338MiB / 7979MiB | 0% Default | |
+-------------------------------+----------------------+----------------------+ | +-------------------------------+----------------------+----------------------+ | ||
− | + | ||
+-----------------------------------------------------------------------------+ | +-----------------------------------------------------------------------------+ | ||
| Processes: GPU Memory | | | Processes: GPU Memory | | ||
| GPU PID Type Process name Usage | | | GPU PID Type Process name Usage | | ||
|=============================================================================| | |=============================================================================| | ||
− | | 0 | + | | 0 1212 G /usr/lib/xorg/Xorg 279MiB | |
− | | 0 | + | | 0 1669 G cinnamon 58MiB | |
− | + | ||
+-----------------------------------------------------------------------------+ | +-----------------------------------------------------------------------------+ | ||
</pre> | </pre> | ||
Line 121: | Line 114: | ||
* Compatible with the most popular video formats | * Compatible with the most popular video formats | ||
− | $ sudo apt install mpv | + | $ sudo apt install mpv |
− | For example, | + | For example, Airtop3 with Quadro RTX 4000 is capable to play 4K UHD using CUDA video decoding without significant system load: |
<pre> | <pre> | ||
$ mpv -fs --hwdec=cuda ~/Videos/jellyfish/jellyfish-140-mbps-4k-uhd-hevc-10bit.mkv | $ mpv -fs --hwdec=cuda ~/Videos/jellyfish/jellyfish-140-mbps-4k-uhd-hevc-10bit.mkv | ||
Line 136: | Line 129: | ||
Or the same content directly from the youtube: | Or the same content directly from the youtube: | ||
+ | <pre> | ||
+ | # NOTE: need to install fixed youtube-dl package | ||
+ | $ wget http://mirrors.kernel.org/ubuntu/pool/universe/y/youtube-dl/youtube-dl_2019.09.28-1_all.deb | ||
+ | $ sudo dpkg -i youtube-dl_2019.09.28-1_all.deb | ||
+ | </pre> | ||
<pre> | <pre> | ||
$ mpv -fs --hwdec=cuda https://www.youtube.com/watch?v=j4oBg8capW8 | $ mpv -fs --hwdec=cuda https://www.youtube.com/watch?v=j4oBg8capW8 | ||
Line 146: | Line 144: | ||
AV: 00:00:29 / 00:00:29 (99%) A-V: 0.000 Cache: 0s+0KB | AV: 00:00:29 / 00:00:29 (99%) A-V: 0.000 Cache: 0s+0KB | ||
</pre> | </pre> | ||
+ | |||
+ | == Airtop3 Serial COM ports == | ||
+ | |||
+ | * to configure Airtop3's Serial COM ports please visit the application note:<br> [[Application note - Airtop3 serial port configuration in Linux]] | ||
+ | |||
+ | [[category:Airtop]] | ||
+ | [[category:Software]] | ||
+ | [[category:Linux]] |
Latest revision as of 11:22, 8 January 2020
Contents
Supported devices
- This guide is valid for Airtop, Airtop2, Airtop3
Prepare installation media
- A USB DVD-ROM drive or a USB Flash drive of at least 2GB should be used as installation media
- Download Linux Mint 19.2 "Tina" - Cinnamon (64-bit)
- For installation with a USB DVD-ROM - flash the downloaded image directly onto a DVD
- For installation with a USB Flash drive, please follow How to install Linux Mint via USB tutorial
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.
I3M Panel
- Integrated interactive information monitor I3M is a GUI system integrated in the front panel of Airtop
- Download and install the following package:
$ wget https://fit-iot.com/files/download/airtop/sw/I3M/Linux/airtop-fpsvc_3.0-2.deb $ sudo dpkg -i airtop-fpsvc_3.0-2.deb ... Created symlink /etc/systemd/system/multi-user.target.wants/airtop-fpsvc.service → /lib/systemd/system/airtop-fpsvc.service. Created symlink /etc/systemd/system/multi-user.target.wants/gpu-thermald.service → /lib/systemd/system/gpu-thermald.service.
- Note, the package adds "acpi_enforce_resources=lax" string to the kernel boot line
- Reboot the Airtop after installation
- Now you can navigate through menus between multiple screens of the I3M that display system information, temperatures, power consumption and notifications
Intel video acceleration graphic drivers
$ sudo apt update $ sudo apt install mint-meta-codecs i965-va-driver gstreamer1.0-vaapi vainfo
Then run vainfo command, you should see list of supported profiles, for example on Airtop3:
$ vainfo libva info: VA-API version 1.1.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_1_1 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.1 (libva 2.1.0) vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.1.0 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 VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointEncSlice VAProfileVP9Profile2 : VAEntrypointVLD
Nvidia graphics card drivers
$ sudo add-apt-repository ppa:graphics-drivers/ppa $ sudo apt update $ nvidia_driver=$(apt-cache search "nvidia-driver-[0-9][0-9][0-9]" | grep -o "nvidia-driver-[0-9][0-9][0-9]" | sort | tail -1) $ sudo apt install $nvidia_driver vdpauinfo mesa-vdpau-drivers vdpau-va-driver --install-recommends $ sudo reboot
- Then run nvidia-smi command, you should see current NVIDIA card status:
$ watch -n1 nvidia-smi Sun May 26 15:57:21 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.14 Driver Version: 430.14 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 Quadro RTX 4000 Off | 00000000:01:00.0 On | N/A | | 0% 43C P8 1W / 125W | 338MiB / 7979MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1212 G /usr/lib/xorg/Xorg 279MiB | | 0 1669 G cinnamon 58MiB | +-----------------------------------------------------------------------------+
MPV media player
- Well known free and open-source multimedia player
- Supports GPU accelerated video decoding including CUDA decoding on NVIDIA GPUs and gives excellent playback quality
- Compatible with the most popular video formats
$ sudo apt install mpv
For example, Airtop3 with Quadro RTX 4000 is capable to play 4K UHD using CUDA video decoding without significant system load:
$ mpv -fs --hwdec=cuda ~/Videos/jellyfish/jellyfish-140-mbps-4k-uhd-hevc-10bit.mkv Playing: ~/Videos/jellyfish/jellyfish-140-mbps-4k-uhd-hevc-10bit.mkv (+) Video --vid=1 (*) (hevc 3840x2160 29.970fps) (+) Audio --aid=1 (*) (truehd 6ch 48000Hz) AO: [pulse] 48000Hz 5.1(side) 6ch s32 Using hardware decoding (cuda). VO: [opengl] 3840x2160 cuda[p010] AV: 00:00:30 / 00:00:30 (99%) A-V: 0.000 Cache: 0s+0KB
Or the same content directly from the youtube:
# NOTE: need to install fixed youtube-dl package $ wget http://mirrors.kernel.org/ubuntu/pool/universe/y/youtube-dl/youtube-dl_2019.09.28-1_all.deb $ sudo dpkg -i youtube-dl_2019.09.28-1_all.deb
$ mpv -fs --hwdec=cuda https://www.youtube.com/watch?v=j4oBg8capW8 Playing: https://www.youtube.com/watch?v=j4oBg8capW8 (+) Video --vid=1 (*) (vp9 3840x2160 29.970fps) (+) Audio --aid=1 --alang=und (*) 'DASH audio' (aac 2ch 44100Hz) (external) AO: [pulse] 44100Hz stereo 2ch float Using hardware decoding (cuda). VO: [opengl] 3840x2160 cuda[nv12] AV: 00:00:29 / 00:00:29 (99%) A-V: 0.000 Cache: 0s+0KB
Airtop3 Serial COM ports
- to configure Airtop3's Serial COM ports please visit the application note:
Application note - Airtop3 serial port configuration in Linux