Switching to external monitor causes extreme lag

Hello,
I recently reinstalled my laptop with the latest garuda.
I am using an external monitor and once I switch the desktop to be shown only on my external monitor the whole system starts to lag severely, if I switch the output to an Extend monitor setup the problem disappears also if I use only my laptop monitor the problem is not present.
Any suggestions or ideas?

garuda-inxi
System:
Kernel: 6.0.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=cf1a60e6-eb3c-47c9-a138-916580e88f67 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: HP product: HP EliteBook 1050 G1 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 84E9 v: KBC Version 16.4D.00 serial: <superuser required>
UEFI: HP v: Q72 Ver. 01.17.00 date: 08/05/2021
Battery:
ID-1: BAT0 charge: 69.3 Wh (98.4%) condition: 70.4/96.4 Wh (73.1%)
volts: 12.3 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: not charging cycles: 95
CPU:
Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
L3: 9 MiB desc: 1x9 MiB
Speed (MHz): avg: 2573 high: 3307 min/max: 800/4100 scaling:
driver: intel_pstate governor: powersave cores: 1: 2400 2: 2249 3: 2111
4: 2702 5: 2700 6: 2701 7: 2416 8: 2701 9: 2700 10: 2200 11: 2700 12: 3307
bogomips: 52799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: retbleed mitigation: IBRS
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: IBRS, IBPB: conditional, RSB filling,
PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2, HDMI-A-3
bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard
driver: nvidia v: 525.60.11 alternate: nouveau,nvidia_drm non-free: 520.xx+
status: current (as of 2022-10) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1c8d
class-ID: 0300
Device-3: Chicony HP HD Camera type: USB driver: uvcvideo bus-ID: 1-7:3
chip-ID: 04f2:b5e7 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: DP-1-0.1 size-res: N/A modes: N/A
Monitor-2: eDP-1 pos: primary res: 1920x1080 hz: 120 dpi: 142
size: 344x194mm (13.54x7.64") diag: 395mm (15.55") modes: N/A
API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics 630 (CFL
GT2) direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus-ID: 3-1.2:3
alternate: snd_soc_skl,snd_sof_pci_intel_cnl chip-ID: 047f:02ee
class-ID: 0300 bus-ID: 00:1f.3 serial: <filter> chip-ID: 8086:a348
class-ID: 0403
Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
v: kernel pcie: speed: Unknown lanes: 63 link-max: gen: 6 speed: 64 GT/s
bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
Device-3: Plantronics BT600 type: USB
driver: plantronics,snd-usb-audio,usbhid
Device-4: HP USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid
bus-ID: 3-1.3.5:8 chip-ID: 03f0:0269 class-ID: 0300 serial: <filter>
Sound API: ALSA v: k6.0.12-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.61 running: yes
Network:
Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
IF: wlp0s20f3 state: up mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 4-1.3.3:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp10s0u1u3u3 state: down mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 476.94 GiB used: 75.2 GiB (15.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: N/A
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: AAHA4102 temp: 38.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 75.2 GiB (15.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 75.2 GiB (15.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 75.2 GiB (15.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 75.2 GiB (15.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 30.7 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 65.0 C pch: 62.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 301 Uptime: 51m wakeups: 1 Memory: 30.7 GiB
used: 7.53 GiB (24.5%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1299
libs: 355 tools: octopi,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
running-in: yakuake inxi: 3.3.23
Garuda (2.6.10-1):
System install date:     2022-11-29
Last full system update: 2022-12-11
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:

It looks like you unplugged the monitor before running the inxi so I can’t be certain, but one possible explanation would be if the iGPU is driving the external display instead of the dedicated GPU.

Take a look at the wiki for switching to a dedicated GPU and see if it helps:

2 Likes

Thank you for answering on this I was about to loose hope :slight_smile:
I did numerous tests and re-installs, and finally I settled at XFCE garuda DE and the problem persisted, I found on the forums this topic about Nvidia Frogging family drivers: Nvidia-all - Frogging-Family drivers (guide - installation)
And I tried to install them using the latest version and my problem was fixed.
The really odd scenario is that I also tried to install them on the KDE Lite version of garuda, and the problem was still there…
I switched to the ZEN kernel when I went on the XFCE de, not sure if the KDE Lite is installed by default with the lts kernel and zen kernel.
Here is an garuda-inxi output writing from my external monitor and with turned off build in monitor:

garuda-inxi
System:
  Kernel: 6.0.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=bba92318-07dc-4f05-8ed6-7d448f8e11a9 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP EliteBook 1050 G1 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 84E9 v: KBC Version 16.4D.00 serial: <superuser required>
    UEFI: HP v: Q72 Ver. 01.17.00 date: 08/05/2021
Battery:
  ID-1: BAT0 charge: 69.0 Wh (98.4%) condition: 70.1/96.4 Wh (72.7%)
    volts: 12.3 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: not charging cycles: 95
CPU:
  Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 2600 high: 3004 min/max: 800/4100 scaling:
    driver: intel_pstate governor: powersave cores: 1: 2998 2: 2200 3: 3000
    4: 3001 5: 2200 6: 2200 7: 3004 8: 2997 9: 2200 10: 2200 11: 3000 12: 2200
    bogomips: 52799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  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: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: none off: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2,
    HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 515.49.25 alternate: nouveau,nvidia_drm non-free: 525.xx+
    status: current (as of 2022-12) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1c8d
    class-ID: 0300
  Device-3: Chicony HP HD Camera type: USB driver: uvcvideo bus-ID: 1-7:3
    chip-ID: 04f2:b5e7 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,intel,nv,vesa
    dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26")
    s-diag: 583mm (22.95")
  Monitor-1: DP-1-0.2 pos: primary res: 1920x1080 hz: 60 dpi: 93
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") modes: N/A
  Monitor-2: eDP-1 size-res: N/A modes: N/A
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard
    driver: snd_hda_intel bus-ID: 3-1.2:3 v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl chip-ID: 047f:02ee
    class-ID: 0300 bus-ID: 00:1f.3 serial: <filter> chip-ID: 8086:a348
    class-ID: 0403
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: Unknown lanes: 63 link-max: gen: 6 speed: 64 GT/s
    bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
  Device-3: Plantronics BT600 type: USB
    driver: plantronics,snd-usb-audio,usbhid
  Device-4: HP USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 3-1.3.5:8 chip-ID: 03f0:0269 class-ID: 0300 serial: <filter>
  Sound API: ALSA v: k6.0.12-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.61 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 4-1.3.3:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp10s0u1u3u3 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 24.33 GiB (5.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: N/A
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: AAHA4102 temp: 36.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 24.33 GiB (5.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 24.33 GiB (5.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 24.33 GiB (5.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 24.33 GiB (5.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 30.7 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 55.0 C pch: 59.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 328 Uptime: 31m wakeups: 1 Memory: 30.7 GiB
  used: 4.44 GiB (14.5%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1273
  libs: 350 tools: octopi,pamac,paru Shell: Bash v: 5.1.16 running-in: guake
  inxi: 3.3.24
Garuda (2.6.10-1):
  System install date:     2022-12-13
  Last full system update: 2022-12-14 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            

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