Lenovo legion r9000p, 2023, random screen flickering using Discrete GPU RTX 4060

The gaming laptop is brought in China mainland.
It has an R9-7945HX CPU and RTX4060 GPU. I am using Discrete GPU mode.

The screen just randomly flickers for ~5 seconds. Then probably flickers after 10 - 20 minutes again. When I move the mouser, it stops.

Very strange. please help

sudo inxi -Fxxxza

  Kernel: 6.1.44-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=d311fcba-77e5-415d-8134-6a934c087ac1 rw quiet splash apparmor=1
    security=apparmor resume=UUID=5ed270c5-5a89-433e-b848-bdb7620ef180
  Desktop: GNOME v: 44.3 tk: GTK v: 3.24.38 wm: gnome-shell dm: GDM v: 44.1
    Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 82WM v: Legion R9000P ARX8
    serial: <filter> Chassis: type: 10 v: Legion R9000P ARX8 serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76479 WIN serial: <filter>
    UEFI: LENOVO v: LPCN42WW date: 06/02/2023
  ID-1: BAT0 charge: 63.4 Wh (75.0%) condition: 84.5/80.0 Wh (105.6%)
    volts: 16.4 min: 15.4 model: COSMX L22X4PC0 type: Li-poly serial: <filter>
    status: not charging cycles: 9
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
  Info: model: AMD Ryzen 9 7945HX with Radeon Graphics socket: FL1 bits: 64
    type: MT MCP arch: Zen 4 gen: 5 level: v4 note: check built: 2022+
    process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x61 (97) stepping: 2
    microcode: 0xA601203
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 16 MiB desc: 16x1024 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 1562 high: 2500 min/max: 1500/5459 boost: enabled
    base/boost: 2500/5450 scaling: driver: acpi-cpufreq governor: schedutil
    volts: 1.3 V ext-clock: 100 MHz cores: 1: 1500 2: 1500 3: 1500 4: 1500
    5: 1500 6: 1500 7: 1500 8: 1500 9: 1500 10: 1500 11: 1500 12: 1500
    13: 1500 14: 1500 15: 1500 16: 1500 17: 2500 18: 1500 19: 1500 20: 1500
    21: 1500 22: 1500 23: 1500 24: 1500 25: 1500 26: 1500 27: 1500 28: 2500
    29: 1500 30: 1500 31: 1500 32: 1500 bogomips: 159760
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  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 mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
  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
  Device-1: NVIDIA AD107M [GeForce RTX 4060 Max-Q / Mobile] vendor: Lenovo
    driver: nvidia v: 535.98 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-07) arch: Lovelace code: AD1xx
    process: TSMC n4 (5nm) built: 2022-23+ pcie: gen: 3 speed: 8 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.0 chip-ID: 10de:28e0
    class-ID: 0300
  Device-2: Syntek Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.4:4 chip-ID: 174f:246a
    class-ID: fe01 serial: <filter>
  Display: server: X.org v: with: Xwayland v: 23.1.2
    compositor: gnome-shell driver: X: loaded: nvidia gpu: nvidia display-ID: :1
    screens: 1
  Screen-1: 0 s-res: 2560x1600 s-size: <missing: xdpyinfo>
  Monitor-1: DP-4 res: 2560x1600 dpi: 4064 size: 16x10mm (0.63x0.39")
    diag: 19mm (0.74") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.98 renderer: NVIDIA GeForce RTX 4060
    Laptop GPU/PCIe/SSE2 direct-render: Yes
  Device-1: NVIDIA driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22be class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
    driver: snd_rpl_pci_acp6x v: kernel alternate: snd_pci_acp3x,
    snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 08: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: 08:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.1.44-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.77 status: n/a (root, process) tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active (root, process)
    with: pulseaudio-alsa type: plugin tools: pacat,pactl
  Device-1: Realtek vendor: Lenovo driver: rtw89_8852ce v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: 2000 bus-ID: 04:00.0 chip-ID: 10ec:c852
    class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 1000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: down mac: <filter>
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-1.1:3 chip-ID: 0bda:5852
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
  Local Storage: total: 953.87 GiB used: 29.45 GiB (3.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SanDisk
    model: SKHynix HFS001TEJ9X115N 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: 51020A12 temp: 46.9 C scheme: GPT
  ID-1: / raw-size: 100 GiB size: 97.87 GiB (97.87%) used: 14.93 GiB (15.3%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p8 maj-min: 259:8
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 292 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-3: /home raw-size: 383.78 GiB size: 376.69 GiB (98.15%)
    used: 14.53 GiB (3.9%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p9
    maj-min: 259:9
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16 GiB used: 512 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p7 maj-min: 259:7
  System Temperatures: cpu: 69.0 C mobo: N/A gpu: nvidia temp: 45 C
  Fan Speeds (RPM): N/A
  Processes: 511 Uptime: 1d 15m wakeups: 30 Memory: total: 16 GiB note: est.
  available: 15.3 GiB used: 7.62 GiB (49.8%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1328 libs: 353 tools: gnome-software,pamac,yay
  pm: flatpak pkgs: 0 Shell: Sudo (sudo) v: 1.9.14p3 default: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.28

crazy :thinking:

are only nvidia Graphics

1 Like

This is a relative new machine, try a stable/mainline kernel instead of a lts one?

Check here what works/does not work:

1 Like

Thanks, I tried. Still same.
This is my hardware information.


I can not post links, so you must copy the link to the browser

NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon

 4.981527] ACPI Warning: \_SB.NPCF._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20230331/nsarguments-61)
[    4.981583] ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20230331/nsarguments-61)

install acpid

and / or

systemctl status acpid                                                                                                                   ✔ 
○ acpid.service - ACPI event daemon
     Loaded: loaded (/usr/lib/systemd/system/acpid.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:acpid(8)

enable it

1 Like

I think your internal graphics is not properly detected, I don’t see a corresponding driver being installed.

1 Like

I did another probe again. This is the result.


Unfortunately, the problem still exist.

There is an option in the BIOS menu that I can choose Switchable Graphics or Discrete Graphics. I chose Discrete Graphics so the system can’t detect Internal Graphics. Is my understanding right?