Lenovo Legion 5 Pro 16ACH6H 82JQ

Qubes v4.2.0 latest-kernel 6.6.2

Will hang at first boot if creating sys-usb, so don’t or look at qubes.skip_autostart(https://www.qubes-os.org/doc/autostart-troubleshooting)
Backlight doesn’t work out of the box (use “acpi_osi=‘Windows 2018’” & acpi_backlight=native);

HCL report and .cpio.gz support files :-

---
layout:
  'hcl'
type:
  'Notebook'
hvm:
  'yes'
iommu:
  'yes'
slat:
  'yes'
tpm:
  '2.0'
remap:
  'yes'
brand: |
  LENOVO
model: |
  82JQ
bios: |
  GKCN60WW
cpu: |
  AMD Ryzen 7 5800H with Radeon Graphics
cpu-short: |
  FIXME
chipset: |
  Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
chipset-short: |
  FIXME
gpu: |
  NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1) (prog-if 00 [VGA controller])
  Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5) (prog-if 00 [VGA controller])
gpu-short: |
  FIXME
network: |
  Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
  
  MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
memory: |
  28524
scsi: |

usb: |
  2
certified:
  'no'
versions:
  - works:
      'yes'
    qubes: |
      R4.2.0
    xen: |
      4.17.2
    kernel: |
      6.6.2-1
    remark: |
      Will hang at first boot if creating sys-usb, so don't or look at qubes.skip_autostart(https://www.qubes-os.org/doc/autostart-troubleshooting/); Backlight doesn't work out of the box (use "acpi_osi='Windows 2018'" & acpi_backlight=native); 
    credit: |
      t_user
    link: |
      FIXLINK

Qubes-HCL-LENOVO-82JQ-20240108-001345.cpio.gz (11.0 KB)
Qubes-HCL-LENOVO-82JQ-20240108-001345.yml (1.1 KB)

3 Likes

Thanks for the HCL report. I created a pull request to get it incorporated into the repository.

2 Likes

Thank you for HCL report. Can you please also fill a detailed report based on this template:

Example of user providing the answers is here. The more information the better, it may be helpful to other users, thank you.

1 Like

Installation

  • Disable SecureBoot
  • Switch to integrated AMD GPU in bios

Basic Input

  • Keyboard - works
  • External USB mouse [if possible to check] - works
  • Touch-pad - works
  • Touch-pad supports “tap as click” and scrolling with 2 fingers works - works
  • Display brightness change shortcuts - brings up icon but it’s not functional
    Brightness can be changed by dropping to the login shell and updating brightness in /sys/class/backlight/amdgpu_bl1/brightness
    Hack:
    In dom0 terminal type:
    sudo -i
    cd /sys/class/backlight/amdgpu_bl1/
    cat max_brightness
    echo 100 > brightness
    
    For a permanent solution:
    In dom0 terminal type:
    sudo nano /etc/default/grub
    At GRUB_CMDLINE_LINUX before "rhgb quiet" add acpi_backlight=native
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    and then reboot the machine keyboard shortcuts work as they should.
    
  • Sound volume shortcuts - works
  • Keyboard led and keyboard brightness change shortcuts - works
    Look at https://github.com/4JX/L5P-Keyboard-RGB for customizing as done in Windows by Legion Vantage Software otherwise, default values in the bios are used.
  • Is keyboard and/or touchpad is PS/2 connected - No, USB Keyboard and I2C Touchapd

Internet and Bluetooth

  • Ethernet cable connection - works out of the box or actions were required? - works
  • Ethernet cable connection - speed - As it should be
  • Wifi connection - works out of the box or actions were required? - works
  • Wifi connection - speed, is reliable over time? - As it should be, reliable
  • Bluetooth - works out of the box or actions were required? - untested, probably works same NIC as wifi
  • Bluetooth - shows devices, connection process works, sound output, or copying works.- untested

Suspend

  • Suspend/Resume works - works out of the box or actions were required? - works out of the box
  • Does the resume break WiFi, if it does, how to recover it? - No
  • Does the resume break Bluetooth, if it does, how to recover it? - untested
  • Fullscreen and windowed video playback of YouTube - 720p/1080p/1440p/2160p in Chrome. Does it drop frames? -
    Video [increase VCPU to the AppVM Qube before test]
    Had 8 phy cores 4 phy cores were assigned to AppVM
    Tested in Chrome:
    Normal playback speed (1x)
    30fps 720p/1080p/1440p/2160p works,
    60fps 720p no frames dropped, 1080p/1440p frames dropped but watchable, 2160p frames are dropped but watchable
    Playback speed (2x)
    30fps 720p/1080pworks, 1440p/2160p little laggy but watchable
    60fps 720p/1080p,1440p little laggy but watchable, 2160p plays for 4 sec then stops for 1-2 sec even when fully buffered.
    Screen resolution 2560x1600p (16:10) 60Hz All and all watchable. This can be improved by fiddling with Chrome and Firefox settings.
  • Video file playback using VLC - till 2K x264/x265 10bit Works, no issue
    Check out https://forum.qubes-os.org/t/quick-quality-of-life-improvements-thread/23380
  • Multiple display configuration works (using available DP/Thunderbolt, HDMI, or other video ports - Works out of the box (DP, HDMI)

Audio

  • Speakers (sound playback) (was sys-audio used?) - works, no sys-audio used
  • Head-phones via 3.5" jack (works, automatically turns off speakers?) - works/works
  • Sound output via HDMI - works
  • Audio-optical (S/PDIF) output - untested

Fans

Other

  • Have you tried running Windows 10 HVM qubes? - No
  • Does CPU boost seem to be working properly? - unknown

Specs:

2 Likes

Why only one USB controller works:-
https://marc.info/?l=qubes-users&m=157744665403453

IOMMU Grouping: 05:00.3 USB controller is in the same iommu group as some other critical components so when you do passthrough the system crashes.

AMD iommu grouping sucks.

1 Like

nvm
Xen takes over iommu so dom-0 doesn’t have grouping info.
Got grouping info from arch linux.
No idea why the controller leads to a crash.
IOMMU Group 0:
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
IOMMU Group 1:
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1633]
IOMMU Group 2:
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
IOMMU Group 3:
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
IOMMU Group 4:
00:02.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
IOMMU Group 5:
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
IOMMU Group 6:
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
IOMMU Group 7:
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
IOMMU Group 8:
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
IOMMU Group 9:
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 10:
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0 [1022:166a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1 [1022:166b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2 [1022:166c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3 [1022:166d]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4 [1022:166e]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5 [1022:166f]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6 [1022:1670]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7 [1022:1671]
IOMMU Group 11:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)
IOMMU Group 12:
02:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31/BC711/PC711 NVMe Solid State Drive [1c5c:174a]
IOMMU Group 13:
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
IOMMU Group 14:
04:00.0 Network controller [0280]: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter [14c3:7961]
IOMMU Group 15:
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5)
IOMMU Group 16:
05:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
IOMMU Group 17:
05:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
IOMMU Group 18:
05:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
IOMMU Group 19:
05:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
IOMMU Group 20:
05:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
IOMMU Group 21:
06:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)
IOMMU Group 22:
06:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)

1 Like

Similar issue:

1 Like

acpi_osi='Windows 2017'

1 Like