How to debug awkward little issues

What would be the best way to track down and solve the following two, little problems?

I had my Z16 AMD (1st Gen) laptop serviced by Lenovo (the display was replaced) and since I got it back, it won’t wake up from hibernation anymore. The keyboard lights up, but the screen stays dark and I can’t connect via SSH either. Only a brutal switch off and restart helps.

Also:
After starting up, the laptop now sometimes (not always) takes minutes to find the Wi-Fi card. Until it has found it, the laptop remains in airplane mode.

I was using kernel 6.5 before (and after) the repair, but 6.6 and 6.7 behave identically. I did not change anything else since I got it back.

Thanks for your help in advance!

This is my system:

System:
Kernel: 6.5.13-7-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: hpet,acpi_pm
parameters: BOOT_IMAGE=/boot/vmlinuz-6.5-x86_64
root=UUID=2b7072e2-76a6-42f5-83c2-2ab80366d449 rw
cryptdevice=UUID=0547c112-bbd6-43c9-8e23-ad3207afedf1:luks-0547c112-bbd6-43c9-8e23-ad3207afedf1
root=/dev/mapper/luks-0547c112-bbd6-43c9-8e23-ad3207afedf1
resume=/dev/mapper/luks-b3063d16-3277-4725-89a2-14f079d36d79
udev.log_priority=3 amd_pstate.shared_mem=1 amd_pstate=passive splash
Desktop: GNOME v: 45.3 tk: GTK v: 3.24.39 wm: gnome-shell dm: GDM v: 45.0.1
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 21D4CTO1WW v: ThinkPad Z16 Gen 1
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: LENOVO model: 21D4CTO1WW serial: <superuser required> UEFI: LENOVO
v: N3GET63W (1.63 ) date: 08/24/2023
Battery:
ID-1: BAT0 charge: 30.0 Wh (49.6%) condition: 60.5/72.0 Wh (84.0%)
power: 18.0 W volts: 15.2 min: 15.5 model: SMP 5B10W51887 type: Li-poly
serial: <filter> status: discharging cycles: 305
Memory:
System RAM: total: 16 GiB note: est. available: 14.9 GiB
used: 6.1 GiB (40.9%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 5 PRO 6650H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3+ gen: 4 level: v3 note: check built: 2022 process: TSMC n6 (7nm)
family: 0x19 (25) model-id: 0x44 (68) stepping: 1 microcode: 0xA404102
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 16 MiB
desc: 1x16 MiB
Speed (MHz): avg: 2576 high: 3707 min/max: 400/4564 boost: enabled scaling:
driver: amd-pstate governor: schedutil cores: 1: 1451 2: 3037 3: 3262 4: 1100
5: 1449 6: 1634 7: 3264 8: 3249 9: 2235 10: 3265 11: 3261 12: 3707
bogomips: 79083
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
x2apic xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Rembrandt [Radeon 680M] vendor: Lenovo driver: amdgpu v: kernel
arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4
speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, DP-3,
DP-4, DP-5, DP-6, DP-7 bus-ID: 64:00.0 chip-ID: 1002:1681 class-ID: 0300
temp: 49.0 C
Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-4:2 chip-ID: 04f2:b78b
class-ID: fe01 serial: <filter>
Device-3: Chicony Integrated IR Camera driver: N/A type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-1:2 chip-ID: 04f2:b78c
class-ID: 0e02 serial: <filter>
Display: wayland server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3
compositor: gnome-shell driver: X: loaded: amdgpu
unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 model: Samsung 0x4165 built: 2021 res: 3840x2400 dpi: 284
gamma: 1.2 size: 344x215mm (13.54x8.46") diag: 406mm (16") ratio: 16:10
modes: max: 3840x2400 min: 640x480
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
drv: radeonsi inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.3.3-manjaro1.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
rembrandt LLVM 16.0.6 DRM 3.54 6.5.13-7-MANJARO) device-ID: 1002:1681
memory: 500 MiB unified: no display-ID: :0.0
Audio:
Device-1: AMD Rembrandt Radeon High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 64:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
driver: snd_pci_acp6x v: kernel alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
snd_pci_acp5x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 64:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 64:00.6
chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.5.13-7-MANJARO status: kernel-api tools: N/A
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
vendor: Lenovo driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
bus-ID: 01:00.0 chip-ID: 14c3:0616 class-ID: 0280
IF: wlp1s0 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: Foxconn / Hon Hai Wireless_Device driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2:2 chip-ID: 0489:e0d9
class-ID: e001 serial: <filter>
Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Logical:
Message: No logical block device data found.
Device-1: luks-0547c112-bbd6-43c9-8e23-ad3207afedf1 maj-min: 254:0
type: LUKS dm: dm-0 size: 937.18 GiB
Components:
p-1: nvme0n1p2 maj-min: 259:2 size: 937.18 GiB
Device-2: luks-b3063d16-3277-4725-89a2-14f079d36d79 maj-min: 254:1
type: LUKS dm: dm-1 size: 16.39 GiB
Components:
p-1: nvme0n1p3 maj-min: 259:3 size: 16.39 GiB
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 953.87 GiB used: 490.16 GiB (51.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVL21T0HCLR-00BL7
size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: CL2QGXA7 temp: 43.9 C
scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 937.18 GiB size: 921.39 GiB (98.32%)
used: 490.11 GiB (53.2%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
mapped: luks-0547c112-bbd6-43c9-8e23-ad3207afedf1 label: N/A
uuid: 2b7072e2-76a6-42f5-83c2-2ab80366d449
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 47.2 MiB (15.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
label: NO_LABEL uuid: FEEC-51B2
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
compressor: zstd max-pool: 20%
ID-1: swap-1 type: partition size: 16.39 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/dm-1 maj-min: 254:1
mapped: luks-b3063d16-3277-4725-89a2-14f079d36d79 label: swap
uuid: f204fe9e-1387-44d5-b256-f0e540591fd7
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 1-4:2 info: Chicony Integrated Camera type: video
driver: uvcvideo interfaces: 3 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
mode: 2.0 power: 500mA chip-ID: 04f2:b78b class-ID: fe01 serial: <filter>
Hub-2: 2-0:1 info: super-speed hub ports: 2 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 3 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 3-2:2 info: Foxconn / Hon Hai Wireless_Device type: bluetooth
driver: btusb interfaces: 3 rev: 2.1 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
mode: 2.0 power: 100mA chip-ID: 0489:e0d9 class-ID: e001 serial: <filter>
Hub-4: 3-3:3 info: Genesys Logic Hub ports: 4 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
chip-ID: 05e3:0610 class-ID: 0900
Device-1: 3-3.4:4 info: Shenzhen Goodix USB2.0 MISC type: <vendor specific>
driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
mode: 1.1 power: 100mA chip-ID: 27c6:658c class-ID: ef00 serial: <filter>
Hub-5: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-6: 5-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 5-1:2 info: Chicony Integrated IR Camera type: video driver: N/A
interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
power: 500mA chip-ID: 04f2:b78c class-ID: 0e02 serial: <filter>
Hub-7: 6-0:1 info: Linux Foundation 3.0 root hub ports: N/A rev: 3.0
speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-8: 7-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-9: 8-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-10: 9-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Hub-11: 10-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Sensors:
System Temperatures: cpu: 56.0 C mobo: N/A gpu: amdgpu temp: 53.0 C
Fan Speeds (rpm): fan-1: 2382 fan-2: 2233
Info:
Processes: 387 Uptime: 25m wakeups: 0 Init: systemd v: 255 default: graphical
tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6 Packages: 1279
pm: pacman pkgs: 1141 libs: 331 tools: gnome-software,pamac pm: flatpak
pkgs: 138 Shell: sh default: Zsh v: 5.9 running-in: kgx inxi: 3.3.31

Regarding the wifi adapter: I had a similar experience with my Framework laptop. The issue seems to stem from Mediatek not really being on top of their Wifi driver, and as far as I could tell, isn’t easily fixable without a fixed driver (explanation: the driver expects some kind of acknowledgement from the hardware, the hardware isn’t sending it. Once the drivers wait for the acknowledgement times out, at 65535ms, it picks up the wifi card just fine. Bluetooth should work during this time, though). It can, of course, be fixed by replacing the Wifi module with an Intel one, which is what I ended up doing.

On the resume from hibernate bug, is caps lock flashing on and off after the resume? If so that would indicate a kernel panic, which might help narrow down the cause.

1 Like

I think they might have replaced more than just the display because according to Lenovo specifications that laptop should have

Qualcomm® Wi-Fi® 6E NFA725A, 802.11ax 2x2 Wi-Fi

but you have

MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
1 Like

Thank you very much for the insightful explanation and your help! Good to know.

About the hibernation problem:
No, caps lock is not flashing.

Wow, that’s crazy. Thanks for pointing that out. That explains the different behavior.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.