Changes

Jump to: navigation, search

Airtop: Installing Linux Mint 20

8,767 bytes added, 10:02, 11 November 2020
/* Missing Built-in Audio */
== Supported devices ==
* This guide is valid for AirtopMintBox3, Airtop1, Airtop2, Airtop3
== Prepare installation media ==
== I3M ==
See * To install I3M Linux Daemon on Airtop, please expand and follow the below:<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px; overflow:auto;">* Download I3M monitoring tools:<pre>$ sudo wget https://fit-iot.com/files/download/airtop/sw/I3M/Linux/airtop-fpsvc -O /usr/local/sbin/airtop-fpsvc$ sudo wget https://fit-iot.com/files/download/airtop/sw/I3M/Linux/gpu-thermald -O /usr/local/sbin/gpu-thermald$ sudo chmod +x /usr/local/sbin/*</pre>* Fix dependencies:<pre>$ lib_path="/usr/lib/x86_64-linux-gnu"$ [-e $lib_path/libsensors.so.4 ] || sudo ln -s $lib_path/libsensors.so.*.0.0 $lib_path/libsensors.so.4</pre>* Create file /etc/rc.local with the following content:<pre>#!/bin/bashmodprobe i2c-i801sleep 1/usr/local/sbin/airtop-fpsvc[Installing "$(lspci -nn | grep VGA | grep NVIDIA)" ] && /usr/local/sbin/gpu-thermaldexit 0</pre>* Make it executable:<pre>$ sudo chmod +x /etc/rc.local</pre>* Ensure I3M panel is working<pre>$ sudo /etc/rc.local</pre>* Reboot, ensure I3M panel is still working<pre>$ sudo reboot</pre></div> == Suspend-Resume ==* There is a internal firmware issue with Airtop3, some units make unexpected reboot a few seconds/minutes after coming back from sleep* To fix it need to set BIOS setting called "Boot Watchdog" to "Disabled"<pre>- Press [DEL] during boot to enter the BIOS settings- BIOS -> Chipset -> PCH-IO Configuration -> Boot Watchdog [Disabled]- Press [F4] Save and Exit</pre>* At this point suspend-resume will work correctly, issue don't have other side effects == Missing Built-in Audio ==* Unfortunately there is a set of audio bugs you will encounter on your fresh installation:<pre>- No sound from both Front and Rear analog audio outputs- Volume output is too low- Alsamixer not working- Jack detection not working</pre>* To fix please expand and follow the below:<div class="toccolours mw-collapsible mw-collapsed" style="width:800px; overflow:auto;">* On Airtop in Linux Daemon both "Rear Audio" and "Front Audio" can not work in the same time* You need to select one of "Front Audio" or "Rear Audio":<pre>- Press [DEL] during boot to enter the BIOS settings- BIOS -> Quick-Settings -> Rear/Front Audio -> [Front Audio] or [Rear Audio]- Press [F4] Save and Exit</pre>* Open file /etc/default/grub for editing* Add "snd-intel-dspcfg.dsp_driver=1" to the end of kernel boot line:<pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd-intel-dspcfg.dsp_driver=1"</pre>* Update grub settings<pre>$ sudo update-grub2 Sourcing file `/etc/default/grub'..done</pre>* Create new file /lib/firmware/airtop_beep_disable.fw<pre>[codec]0x10ec0900 0x10ec0901 0 [pincfg]0x1d 0x40010101 [codec]0x10ec0900 0x10ec0900 1 [pincfg]0x1d 0x40010101</pre>* Create new file /etc/modprobe.d/airtop_alc1150_hda.conf<pre>options snd-hda-intel patch=airtop_beep_disable.fw</pre><pre>$ sudo reboot</pre>* Test audio output, go to Sound settings<pre>- Menu -> Sound -> Output -> Headphones Built-in Audio</pre>* Click on "Test Sound", then on "Front Left" and "Front Right", check if it hear it from headphones, play with the volume.</div> == Intel video acceleration drivers ==<pre>$ sudo apt update$ sudo apt install va-driver-all mint-meta-codecs vainfo</pre>Then run vainfo command, you should see list of supported profiles, for example on airtop3:<pre>$ vainfo libva info: VA-API version 1.7.0libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.solibva info: Found init function __vaDriverInit_1_7libva info: va_openDriver() returns 0vainfo: VA-API version: 1.7 (libva 2.6.0)vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSliceLP VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD</pre> == Nvidia graphics card drivers ==<pre>$ 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$ sudo reboot</pre> * Then run nvidia-smi command, you should see current NVIDIA card status:<pre>$ watch -n1 nvidia-smiWed Jul 22 07:03:52 2020 +-----------------------------------------------------------------------------+| NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0 ||-------------------------------+----------------------+----------------------+| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. || | | MIG M. ||===============================+======================+======================|| 0 Quadro RTX 4000 On | 00000000:01:00.0 On | N/A || 0% 28C P8 11W / 125W | 354MiB / 7982MiB | 0% Default || | | N/A |+-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+| Processes: || GPU GI CI PID Type Process name GPU Memory || ID ID Usage ||=============================================================================|| 0 N/A N/A 979 G /usr/lib/xorg/Xorg 344MiB || 0 N/A N/A 1355 G cinnamon 8MiB |+-----------------------------------------------------------------------------+</pre>  == Using both Intel and Nvidia graphics card ==* Want to connect up 7 displays simultaneously?<pre>- Press [DEL] during boot to enter the BIOS settings- Set "Chipset -> System Agent (SA) Configuration -> Graphics Configuration -> Internal Graphics" to [Enabled]- Press [F4] to save and exit- Boot to Linux- All connected displays will appear in the "Display" section</pre> == Noise mitigation on Nvidia graphics card ==* To reduce the noise need to set PowerMizer Mode to "Prefer Consistent Performance"* From GUI:<pre>Menu -> NVIDIA X Server Settings -> PowerMizer -> Preferred Mode: "Prefer Consistent Performance"</pre>* The same from command line:<pre>$ nvidia-settings -a "[gpu:0]/GPUPowerMizerMode=3"</pre>* To make the setting permanent:<pre>Menu -> Startup Applications -> "+" -> Custom command Name: NVIDIA PowerMizer Settings Command: nvidia-settings -a "[gpu:0]/GPUPowerMizerMode=3" Comment: Set working mode "Prefer Consistent Performanse" to reduce noise</pre> == 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, Airtop3with Quadro RTX 4000 is capable to play 4K UHD using CUDA video decoding without significant system load:<pre>$ mpv -fs ~/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 s32VO: [gpu] 3840x2160 yuv420p10AV: 00:00:30 / 00:00:30 (99%) A-V: 0.000 Cache: 0.0s/2KB</pre> Or the same content directly from the youtube:<pre>$ mpv -fs https://www.youtube.com/watch?v=j4oBg8capW8 (+) Video --vid=1 (*) (vp9 3840x2160 29.970fps) (+) Audio --aid=1 (*) (aac 2ch 44100Hz)AO: [pulse] 44100Hz stereo 2ch floatVO: [gpu] 3840x2160 yuv420pAV: 00:00:29 / 00:00:30 (99%) A-V: 0.000 Cache: 0.0s</pre> [[category:Airtop]][[category:Airtop2]][[category:Airtop3]][[category:Software]][[category:Linux]]
425
edits