Screen flickering on Garuda Linux

I'm using a laptop which has 165Hz refresh rate.
When I boot on Garuda I run this python script, although it does not change the flickering problem when it is happening.

import os
os.system('xrandr --output eDP-1 --mode 1920x1080 --rate 165 --primary')
os.system('xrandr --newmode "1920x1080_165.2" 525.00  1920 2088 2296 2672  1080 1083 1088 1192 -hsync +vsync')
os.system('xrandr --addmode eDP-1 1920x1080_165.2')
os.system('xrandr --output eDP-1 --mode 1920x1080_165.2')

I have dual boot and screen flickering never happens on Windows, just on Garuda.

Screen flickering is not happening every time I boot on Garuda, but I would say 15~25% of the times I boot on Garuda the screen flickering lasts for some hours and I can't look at the screen during that time because my eyes hurt.

I did not find any solution online for this problem (besides waiting some hours and the flickering diminishes over time, although it does not disappear completely, it becomes doable to look at the screen). I would appreciate some help to investigate the issue.

╰─λ inxi -Faz

System:
Kernel: 5.15.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=1841fbdb-0a5a-497a-86d3-67c2ef2f6c76 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Avell High Performance product: A65 MOB v: Standard
serial: <superuser required>
Mobo: Avell High Performance model: Avell A65 MOB v: Standard
serial: <superuser required> UEFI: American Megatrends LLC. v: N.1.07AVE00
date: 07/23/2021
Battery:
ID-1: BAT0 charge: 60.8 Wh (65.0%) condition: 93.5/93.5 Wh (100.0%)
volts: 10.9 min: 11.4 model: standard type: Li-ion serial: <filter>
status: Discharging
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake family: 6 model-id: 0x8D (141) stepping: 1 microcode: 0x34
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 2108 high: 4158 min/max: 800/4600 scaling:
driver: intel_pstate governor: performance cores: 1: 3384 2: 1358 3: 1557
4: 2212 5: 4158 6: 2288 7: 1265 8: 2210 9: 2261 10: 1346 11: 1294
12: 2051 13: 2086 14: 3739 15: 1299 16: 1229 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
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: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics]
vendor: Tongfang Hongkong Limited driver: i915 v: kernel bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
vendor: Tongfang Hongkong Limited driver: nvidia v: 495.46
alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:2520
class-ID: 0300
Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus-ID: 3-13:4
chip-ID: 04f2:b71a class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: modesetting,nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0")
s-diag: 777mm (30.6")
Monitor-1: eDP-1 res: 2560x1440 hz: 165 dpi: 189
size: 344x194mm (13.5x7.6") diag: 395mm (15.5")
OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 21.3.3
direct render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: Tongfang Hongkong Limited
driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
bus-ID: 00:1f.3 chip-ID: 8086:43c8 class-ID: 0403
Device-2: NVIDIA vendor: Tongfang Hongkong Limited driver: snd_hda_intel
v: kernel bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
Sound Server-1: ALSA v: k5.15.12-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Tongfang Hongkong Limited
driver: r8169 v: kernel port: 3000 bus-ID: 2e:00.0 chip-ID: 10ec:8125
class-ID: 0200
IF: enp46s0 state: down mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-14:5 chip-ID: 8087:0026 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 3.73 TiB used: 102.44 GiB (2.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: SX8200PNP
size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 42B9T6TB temp: 41.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: A-Data model: SX8200PNP
size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 42B9T6TB temp: 40.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 1.86 TiB size: 1.86 TiB (100.00%) used: 102.44 GiB (5.4%)
fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:8
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 563 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:7
ID-3: /home raw-size: 1.86 TiB size: 1.86 TiB (100.00%)
used: 102.44 GiB (5.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:8
ID-4: /var/log raw-size: 1.86 TiB size: 1.86 TiB (100.00%)
used: 102.44 GiB (5.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:8
ID-5: /var/tmp raw-size: 1.86 TiB size: 1.86 TiB (100.00%)
used: 102.44 GiB (5.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:8
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 62.55 GiB used: 4.2 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 64.0 C mobo: 64.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 398 Uptime: 22m wakeups: 690 Memory: 62.55 GiB
used: 8.85 GiB (14.1%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: apt: 0 pacman: 2012 lib: 500
Shell: fish v: 3.3.1 running-in: konsole inxi: 3.3.11
╰─λ mhwd --pci -li


> Installed PCI configs:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-linux            2021.02.19                true            PCI
video-nvidia-prime-render-offload            2021.08.05               false            PCI
video-optimus-manager            2021.04.19               false            PCI
╰─λ xrandr


Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 16384 x 16384
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
2560x1440    165.00*+  40.00 +
1920x1440     85.00    75.00    60.00  
1856x1392     75.00    60.01  
1792x1344     75.00    60.01  
2048x1152     59.99    59.98    59.90    59.91  
1920x1200     59.88    59.95  
1920x1080     60.01    59.97    59.96    59.93  
1600x1200     85.00    75.00    70.00    65.00    60.00  
1680x1050     59.95    59.88  
1400x1050     74.76    59.98  
1600x900      59.99    59.94    59.95    59.82  
1280x1024     85.02    75.02    60.02  
1400x900      59.96    59.88  
1280x960      85.00    60.00  
1440x810      60.00    59.97  
1368x768      59.88    59.85  
1280x800      59.99    59.97    59.81    59.91  
1152x864      75.00  
1280x720      60.00    59.99    59.86    59.74  
1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00  
1024x768i     86.96  
960x720       85.00    75.00    60.00  
928x696       75.00    60.05  
896x672       75.05    60.01  
1024x576      59.95    59.96    59.90    59.82  
960x600       59.93    60.00  
832x624       74.55  
960x540       59.96    59.99    59.63    59.82  
800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25  
840x525       60.01    59.88  
864x486       59.92    59.57  
700x525       74.76    59.98  
800x450       59.95    59.82  
640x512       85.02    75.02    60.02  
700x450       59.96    59.88  
640x480       85.09    60.00    85.01    72.81    75.00    59.94  
720x405       59.51    58.99  
720x400       85.04  
684x384       59.88    59.85  
640x400       59.88    59.98    85.08  
576x432       75.00  
640x360       59.86    59.83    59.84    59.32  
640x350       85.08  
512x384       85.00    75.03    70.07    60.00  
512x384i      87.06  
512x288       60.00    59.92  
416x312       74.66  
480x270       59.63    59.82  
400x300       85.27    72.19    75.12    60.32    56.34  
432x243       59.92    59.57  
320x240       85.18    72.81    75.00    60.05  
360x202       59.51    59.13  
360x200       85.04  
320x200       85.27  
320x180       59.84    59.32  
320x175       85.27  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-4 disconnected (normal left inverted right x axis y axis)```
╰─λ journalctl -b -p3 --no-pager --no-hostname

jan 06 11:24:27 kernel: pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
jan 06 11:24:27 kernel: usbhid 3-11:1.0: couldn't find an input interrupt endpoint
jan 06 11:24:27 systemd-modules-load[393]: Failed to find module 'ashmem_linux'
jan 06 11:24:27 systemd-modules-load[393]: Failed to find module 'binder_linux'
jan 06 11:24:27 systemd-modules-load[393]: Failed to find module 'vboxpci'
jan 06 11:24:28 systemd-udevd[458]: host3: /usr/lib/udev/rules.d/50-sata.rules:2 Failed to write ATTR{/sys/devices/pc
i0000:00/0000:00:14.0/usb4/4-3/4-3:1.0/host3/scsi_host/host3/link_power_management_policy}, ignoring: No such file or
directory                                                                                                            
jan 06 11:24:29 kernel:
jan 06 11:24:29 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  495.46  Wed Oct 27 16:31:33 UTC 2021
jan 06 11:24:30 bluetoothd[762]: profiles/audio/avctp.c:avctp_server_socket() setsockopt(L2CAP_OPTIONS): Invalid argu
ment (22)                                                                                                             
jan 06 11:25:09 sddm-helper[7183]: gkr-pam: unable to locate daemon control file
jan 06 11:25:11 bluetoothd[762]: src/profile.c:ext_start_servers() L2CAP server failed for Message Notification: sets
ockopt(L2CAP_OPTIONS): Invalid argument (22)                                                                          
jan 06 11:25:11 bluetoothd[762]: src/profile.c:ext_start_servers() L2CAP server failed for Message Access: setsockopt
(L2CAP_OPTIONS): Invalid argument (22)                                                                                
jan 06 11:25:11 bluetoothd[762]: src/profile.c:ext_start_servers() L2CAP server failed for Phone Book Access: setsock
opt(L2CAP_OPTIONS): Invalid argument (22)                                                                             
jan 06 11:25:11 bluetoothd[762]: src/profile.c:ext_start_servers() L2CAP server failed for File Transfer: setsockopt(
L2CAP_OPTIONS): Invalid argument (22)                                                                                 
jan 06 11:25:11 bluetoothd[762]: src/profile.c:ext_start_servers() L2CAP server failed for Object Push: setsockopt(L2
CAP_OPTIONS): Invalid argument (22)                                                                                   
jan 06 11:25:12 bluetoothd[762]: profiles/input/device.c:ioctl_is_connected() Can't get HIDP connection info
jan 06 11:25:18 bluetoothd[762]: profiles/input/device.c:control_connect_cb() connect to 98:B6:E9:2F:0D:E1: Host is d
own (112)                                                                                                             
jan 06 11:26:28 systemd-networkd-wait-online[600]: Timeout occurred while waiting for network connectivity.
jan 06 11:26:28 systemd[1]: Failed to start Wait for Network to be Configured.
jan 06 11:26:28 nmbd[17497]: [2022/01/06 11:26:28.380362,  0] ../../source3/nmbd/nmbd.c:901(main)
jan 06 11:26:28 nmbd[17497]:   nmbd version 4.15.3 started.
jan 06 11:26:28 nmbd[17497]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
jan 06 11:26:28 smbd[17498]: [2022/01/06 11:26:28.427766,  0] ../../source3/smbd/server.c:1739(main)
jan 06 11:26:28 smbd[17498]:   smbd version 4.15.3 started.
jan 06 11:26:28 smbd[17498]:   Copyright Andrew Tridgell and the Samba Team 1992-2021
jan 06 11:26:51 nmbd[17497]: [2022/01/06 11:26:51.406267,  0] ../../source3/nmbd/nmbd_become_lmb.c:398(become_local_m
aster_stage2)                                                                                                         
jan 06 11:26:51 nmbd[17497]:   *****
jan 06 11:26:51 nmbd[17497]:
jan 06 11:26:51 nmbd[17497]:   Samba name server PREDATOR is now a local master browser for workgroup WORKGROUP on su
bnet 192.168.0.44                                                                                                     
jan 06 11:26:51 nmbd[17497]:
jan 06 11:26:51 nmbd[17497]:   *****

Have you attempted all the Nvidia troubleshooting tips recommended on the Arch Wiki?

1 Like

Kernel, kernel, kernel.

(By the way, @ImGarudaLearner, that's a beast of a machine you got there!) But newness can sometimes be a little problematic with Linux for a short while, as you're probably aware. Just until another few thousand lines of code catches everything up. And Nvidia--well, you know?

We have a few--a very few--people here that may be able to help you at a 'low level', unless there is already an existing workaround. Patience is key, here. And you've probably checked around for bug fixes, right?

Anyway, best regards to you and your brand new Beast!
:smiley:

2 Likes

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