ROG Zephyrus G14 (Magic 14) Ubuntu 20.04 dual-system installation pitfall guide (4800H AMD Nvidia GPU core display problem, shortcut key Fn keyboard light driver)

1. Why does G14 install Ubuntu 20.04?

Tried to install 18.04 without success, various problems, AMD's 4800HS CPU/GPU and Intel's AX200 Wifi6 wireless network card are too new, 20.04 can at least install and run GNOME smoothly. In addition, under Ubuntu 20.04, after testing CUDA10.2 , CUDNN7.6.5, TensorRT7.0.0.11 is running normally, OpenCV4.4.0 is compiled normally, and OpenCV compilation refers to my other article .

2. General steps

  1. Leave the free space of the hard disk ready to install Ubuntu
  2. Download Rufus and Ubuntu20.04 ISO images and burn them into a U disk to make a boot disk
  3. Create an Ext4 partition on FreeSpace and mount it under "/", because I have allocated 250GB to Linux, so in order to make the most effective use of space, put all the content in "/".
  4. Bootloader is written into WindowsBootLoader, and grub is used to boot dual systems, so it is best to install windows system first and then install Ubuntu
  5. install ubuntu

3. Problems encountered

  1. G14's Intel AX200 Wifi6 wireless network card cannot be driven
  2. Although the Nvidia discrete display driver is installed, the graphical interface is still lagging, and the system brightness adjustment is invalid
  3. Keyboard Fn function keys are all invalid

4. Solve problems

For the problem of Nvidia graphics card driver installation, please refer to my other record

After installing 20.04, my Linux Kernel version at that time was 5.4. After some version updates, Ubuntu’s driver installation for Nvidia graphics cards has become more user-friendly. If you choose to install a third-party driver during installation, you can skip the cumbersome disabling of the nouveau driver, etc. Driver installation process.

1. Solve the problem that the Intel AX200 Wifi6 wireless network card cannot be driven

Go to Intel official website to download the driver , the 20.04Kernel version meets the driver requirements of ax200,
copy it to /lib/firmware after decompression
, and then

sudo add-apt-repository ppa:canonical-hwe-team/backport-iwlwifi
sudo apt-get update
sudo apt-get install backport-iwlwifi-dkms 

Reboot after installation, the wireless network card should be ready to use

2. Solve the problem that the graphics interface is still lagging after installing the Nvidia discrete graphics driver.
Use the following command to view the graphics card

sudo lshw -c video

It was found that the integrated graphics card Vega7 of 4800HS could not be driven (Unclaimed), and the reason for the lag of the graphical interface might be that the integrated graphics card was not normally driven, so I started to install AMD's GPU driver.
As a result, many methods were tried, but to no avail. In the end, I could only try to upgrade the Linux Kernel, so I upgraded to the latest version 5.8.12 on October 1, 2020.
Upgrade method:
first download the latest Kernel under the official Ubuntu Kernel FTP
as shown in the figure:
insert image description here
put the amd64/build Download all 7 debs and put them in a folder, then enter the folder

sudo dpkg -i *.deb
sudo reboot

Note that if you don't need the lowlatency kernel, you don't need to install those debs. In fact, the lowlatency kernel cannot successfully start the graphical interface on my machine.
After upgrading the Kernel, select 5.8.12 generic Kernel in Advanced to start when starting.

As for how to delete the corresponding old version of Kernel:

uname -sr #查看当前Kernel版本
dpkg -l | grep linux-image | awk '{print$2}' #查看所有Kernel名称
#删除相应不需要的Kernel
sudo apt remove --purge linux-image-5.8.12-lowlatency
sudo update-grub
sudo reboot

(If the low-latency kernel is installed and it is still started by default, you can delete the top-ranked kernels to make the generic kernel rank first. The default startup kernel for the first ubuntu option in the grub startup screen has not yet been found. The modification method, if expected to inform)

Then set AMD's iGPU display as a non-primary GPU, modify /usr/share/X11/xorg.conf.d/10-amdgpu.conf, and add Option "PrimaryGPU" "No"

Section "OutputClass"
        Identifier "AMDgpu"
        MatchDriver "amdgpu"
        Driver "amdgpu"
        Option "PrimaryGPU" "No" #增加这行
EndSection

Then update grub

sudo update-grub

At this point, if you check the graphics card again, you will find that both graphics cards are correctly driven, and the graphics interface is no longer lagged.

3. Solve the problem that the Fn shortcut key cannot be used

Install rog-core , you can compile and install, the picture is convenient for direct PPA installation:

sudo add-apt-repository ppa:lukedjones/rog-core
sudo apt-get update
sudo apt-get install rog-core

The switching of dual graphics cards has not been studied yet, because the images rendered by the single graphics card must be connected to the internal screen through the integrated display iGPU, so theoretically it is impossible to completely turn off the integrated display.
This basically solves the problem of Magic 14 Ubuntu installation, enjoy it!

Magic 14 currently has the problem of CPU overheating and frequency reduction under Linux. There is no solution, and the only solution is to restart the system. The specific performance is that when the multi-threaded TRT puts the GPU inference pressure, it cannot last for more than tens of seconds, and the CPU will suddenly overheat, protect and reduce the frequency, so that the entire system becomes stuck and can only be restarted. Similar to this issue, https://www.phoronix.com/scan.php?page=news_item&px=ASUS-TUF-Ryzen-Thermal-Fix and this issue https://bugzilla.kernel.org/show_bug.cgi?id =203733 , so it is better not to use linux to do CPU+GPU dual stress test on Magic 14 for the time being, the heat management of linux is a bit problematic. Or turn on the maximum fan and turn off cpu boost to force the cpu to run at a safe temperature

Guess you like

Origin blog.csdn.net/catscanner/article/details/108897993