ASUSTek ROG Zephyrus G14 GA401

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

This is an article about running Gentoo on an Asus ROG Zephyrus G14 GA401 series laptop.

Laptop Specifications

Hardware specs may vary. These are the specs for the model ASUSTek ROG Zephyrus G14 GA401QC:

  • AMD Ryzen 7 5800HS with Radeon Graphics L3 Cache: 16 MB, Clock: 2.2GB (base) 4.4 (turbo), 8 core / 16 Thread.
  • 16GB DDR4 RAM (2 slots)
  • AMD Renoir Graphics (on-CPU) + NVIDIA GA107M [GeForce RTX 3050 Mobile] (Dedicated)
  • Integrated Renoir Radeon High Definition Audio
  • Audio Connections: 3.5mm
  • 1 Fingerprint Reader
  • 14in TFT LCD Screen FHD 1920x1080 120 Hz
  • 512GB SSD Intel NVME 660P Series Hard Disk
  • 2x USB A 3.2
  • 2x USB Type C 3.2, USB-C Power Delivery (PD),
  • HDMI output
  • MEDIATEK WIFI Device 7961
  • Bluetooth 5.1
  • Keyboard LED with adjustable brightness
  • ELAN1201 Touchpad

Printout of lspci:

root #lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation [10de]. GA107M [GeForce RTX 3050 Mobile]
02:00.0 Network controller: MEDIATEK Corp. Device 7961
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c5)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller

Printout of lsusb (builtin devices, no external devices connected):

root #lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0b05:19b6 ASUSTek Computer, Inc. N-KEY Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Printout of lsmod (builtin devices, no external devices connected and excluding nvidia drivers):

root #lsmod

Information from /proc/cpuinfo :

user $cat /proc/cpuinfo

Hardware Support

Input Devices

TODO

Drives and Storage

  • Hard Drive controller works using ahci driver in the kernel.

Graphics Chip

TODO

WLAN Card

KERNEL MediaTek 7961, 5.15.0
[*] Networking support  --->
    [*]   Wireless  --->
        <*>   Generic IEEE 802.11 Networking Stack (mac80211)

Device Drivers  --->
    [*] Network device support
    [*] Wireless LAN --->
        [*] MediaTek devices
        <M> MediaTek MT7921E (PCIe) support

You'll also need the firmware:

root #emerge --ask linux-firmware

CPU Frequency Scaling

KERNEL CPU Frequency Scaling
Power management and ACPI options  --->
    CPU Frequency scaling  ---> 
    [*] CPU Frequency scaling
    <*>   ACPI Processor P-States driver

Sensors

root #emerge --ask asus-wmi-sensors

Touchpad

KERNEL Touchpad
Cryptographic API --->                                                                                                                             
  Hardware crypto devices --->  
    Support for AMD Secure Processor --->
      Secure Processor device driver --->
         [*] Platform Security Processor (PSP) device

Device Drivers  --->
  I2C support  --->
    [*] I2C support  --->
      I2C Hardware Bus support  --->
            <M> Intel PIIX4 and compatible (ATI/AMD/Serverworks/Broadcom/SMSC)
            <M> Synopsys DesignWare Platform
            [*] AMD PSP I2C semaphore support
            <M> Synopsys DesignWare PCI


Device Drivers  --->
  Input device support  --->
    [*] Generic input layer (needed for keyboard, mouse, ...)  --->
      [*] Mice (INPUT_MOUSE)  --->
        [M] PS/2 mouse  --->
            [*] Synaptics PS/2 mouse protocol extension

Sound Chip

  • Works

Fingerprint reader

  • Untested

Sleep Mode

Note: If you have up to date BIOS and Gentoo system, you probably no longer need this. Also beware that updating BIOS after doing these steps would break your Gentoo installation, You'll either need to disable this or redo same steps for the new BIOS.

This family of laptops don't support Suspend-to-RAM mode and instead linux fallback to Suspend-to-Idle mode. In Suspend-to-Idle system can wake up from sleep significantly faster but also consume significantly more power while in sleep mode compared to Suspend-to-RAM.

This repo detail how to bring back S3 mode (Suspend-to-RAM) for Asus G14 and G15 variants. Note that while the repo's readme recommend updating your bootloader to load the patched `dsdt` file, it is also possible to include it into the kernel instead.

Software

Linux asusctrl

asusctrl is a commandline utility that allow configuring different parts of the system without root access.

user $asusctl
Optional arguments:
  -h, --help             print help message
  -v, --version          show program version number
  -s, --show-supported   show supported functions of this laptop
  -k, --kbd-bright       <off, low, med, high>
  -n, --next-kbd-bright  Toggle to next keyboard brightness
  -p, --prev-kbd-bright  Toggle to previous keyboard brightness
  -c, --chg-limit        Set your battery charge limit <20-100>

  led-mode   Set the keyboard lighting from built-in modes
  profile    Set or select platform_profile
  fan-curve  Set, select, or modify fan curves if supported
  graphics   Set the graphics mode (obsoleted by supergfxctl)
  anime      Manage AniMe Matrix
  bios       Change bios settings

asusctrl can be compiled and installed from this repo