[SOLVED] External Monitor Lag and Mouse Flickering

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

[SOLVED] External Monitor Lag and Mouse Flickering

Post by ldbm »

Hi, I recently installed Linux Mint 21.1 Cinnamon on my HP 14-cf1502sa laptop instead of windows. Everything works great and looks smooth on my laptop screen, but on my external monitor everything is very sluggish and slow and in the top 25% of my screen the mouse flickers, disappearing intermittently. Whenever I use just my external monitor, it looks better and the mouse stops flickering, but it still looks a bit laggy.

I read about the fractional scaling problems but that doesn't seem to affect this, even at 100% the problem persists.

I read this post and ran:

Code: Select all

xrandr --output HDMI-1 --scale 0.9999x0.9999
This fixed the problem but made everything extremely large. After a bit of tweaking with display settings, I have managed to get everything the right size, although on my monitor everything looks slightly fuzzy, and I am not sure how to get this change to persist after a reboot.

I was wondering if there was anything wrong with my graphics drivers, the output of "inxi -Fxxxrz" shows that I have two graphics cards, but for the AMD Topaz XT it says "driver: N/A", is this normal? I have checked and I have the amdgpu drivers installed, but I am not sure what to do next.

If there is no problem with the graphics cards, how can I get the xrandr --output HDMI-1 --scale 0.9999x0.9999 command to persist? And is this the correct method to fix my problem?

Thanks very much for any help.

Output of xrandr --listmonitors:

Code: Select all

Monitors: 2
 0: +*eDP-1 2560/309x1440/173+0+0  eDP-1
 1: +HDMI-1 2880/527x1800/296+2560+0  HDMI-1
Output of inxi -Fxxxrz:

Code: Select all

System:
  Kernel: 6.3.4-060304-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Laptop 14-cf1xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 852F v: 16.20 serial: <superuser required> UEFI: Insyde
    v: F.42 date: 06/20/2019
Battery:
  ID-1: BAT0 charge: 30.3 Wh (81.5%) condition: 37.2/37.2 Wh (100.0%)
    volts: 11.6 min: 11.3 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: Discharging
CPU:
  Info: quad core model: Intel Core i7-8565U bits: 64 type: MT MCP
    smt: enabled arch: Whiskey Lake rev: B cache: L1: 512 KiB L2: 2 MiB
    L3: 64 MiB
  Speed (MHz): avg: 1550 high: 2000 min/max: 400/4600 cores: 1: 800 2: 800
    3: 2000 4: 800 5: 2000 6: 2000 7: 2000 8: 2000 bogomips: 31999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
    vendor: Hewlett-Packard driver: i915 v: kernel ports:
    active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3ea0
    class-ID: 0300
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile]
    vendor: Hewlett-Packard driver: N/A pcie: speed: 5 GT/s lanes: 4
    bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380
  Device-3: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-6:3 chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5440x1800 s-dpi: 120 s-size: 1151x381mm (45.3x15.0")
    s-diag: 1212mm (47.7")
  Monitor-1: HDMI-1 mapped: HDMI-A-1 pos: right model: Acer VG240Y V
    serial: <filter> res: 2880x1800 hz: 60 dpi: 139
    size: 527x296mm (20.7x11.7") diag: 604mm (23.8") modes: max: 3840x2160
    min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: AU Optronics res: 2560x1440
    dpi: 210 size: 309x173mm (12.2x6.8") diag: 354mm (13.9") modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:9dc8 class-ID: 0403
  Sound Server-1: ALSA v: k6.3.4-060304-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi
    v: kernel bus-ID: 00:14.3 chip-ID: 8086:9df0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:5 chip-ID: 8087:0aaa class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 100 hci-v: 5.1 rev: 100
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 5060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 26.5 GiB (5.6%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN520 SDAPNUW-512G-1006 size: 476.94 GiB speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: 20120006 temp: 50.9 C
    scheme: GPT
Partition:
  ID-1: / size: 467.89 GiB used: 26.5 GiB (5.7%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 768 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 61.0 C pch: 49.0 C mobo: 51.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2172
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://mirror.cov.ukservers.com/linuxmint vera main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:
  Processes: 276 Uptime: 3h 15m wakeups: 5 Memory: 7.63 GiB
  used: 3.97 GiB (52.1%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13
Last edited by LockBot on Sun Nov 26, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Monitor Lag and Mouse Flickering

Post by SMG »

ldbm wrote: Fri May 26, 2023 9:58 amI was wondering if there was anything wrong with my graphics drivers, the output of "inxi -Fxxxrz" shows that I have two graphics cards, but for the AMD Topaz XT it says "driver: N/A", is this normal?
Welcome to the forum, ldbm.

You do not want any drivers that you are using to be N/A.

You have an 8th-gen Intel CPU. There is no reason for you to be using the very latest available kernel. I suggest you revert back to the 5.15 LTS kernel that came with LM21.1.

System:
Kernel: 6.3.4-060304-generic x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy

I have never before seen a situation like this so I'm not sure what happened. See if switching back to a supported kernel fixes this situation. If it does not, there are some other places we can check for clues as to what might have happened.
Graphics:
Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
vendor: Hewlett-Packard driver: i915 v: kernel ports:
active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3ea0
class-ID: 0300
Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
620/625 Mobile]
vendor: Hewlett-Packard driver: N/A pcie: speed: 5 GT/s lanes: 4
bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380
ldbm wrote: Fri May 26, 2023 9:58 amI have checked and I have the amdgpu drivers installed, but I am not sure what to do next.
I do not understand what you mean by this statement. The amdgpu driver is included in the kernel and should load automatically when you boot the system.

Here is a tutorial I created which you may find useful after we get the drivers loaded properly How to switch to the dedicated GPU on a laptop with Intel-AMD switchable graphics or AMD-AMD switchable graphics.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

Re: External Monitor Lag and Mouse Flickering

Post by ldbm »

Thanks SMG,

I updated my kernel in the hopes of that fixing the problem. I have reverted to 5.15.0-72-generic, although now when I run "inxi -Fxxxrz" my graphics card doesn't appear in the results. It isn't listed in the results of "lspci" either.

Any idea why this might be and how I could go about troubleshooting this?

inxi -Fxxxrz results:

Code: Select all

System:
  Kernel: 5.15.0-72-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Laptop 14-cf1xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 852F v: 16.20 serial: <superuser required> UEFI: Insyde
    v: F.42 date: 06/20/2019
Battery:
  ID-1: BAT0 charge: 36.0 Wh (98.6%) condition: 36.5/36.5 Wh (100.0%)
    volts: 13.1 min: 11.3 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: Charging
CPU:
  Info: quad core model: Intel Core i7-8565U bits: 64 type: MT MCP
    smt: enabled arch: Whiskey Lake rev: B cache: L1: 256 KiB L2: 1024 KiB
    L3: 8 MiB
  Speed (MHz): avg: 751 high: 800 min/max: 400/4600 cores: 1: 700 2: 700
    3: 700 4: 714 5: 800 6: 800 7: 800 8: 800 bogomips: 31999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
    vendor: Hewlett-Packard driver: i915 v: kernel ports:
    active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3ea0
    class-ID: 0300
  Device-2: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-6:3 chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5440x1800 s-dpi: 120 s-size: 1151x381mm (45.3x15.0")
    s-diag: 1212mm (47.7")
  Monitor-1: HDMI-1 mapped: HDMI-A-1 pos: right model: Acer VG240Y V
    serial: <filter> res: 2880x1800 hz: 60 dpi: 139
    size: 527x296mm (20.7x11.7") diag: 604mm (23.8") modes: max: 3840x2160
    min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: AU Optronics res: 2560x1440
    dpi: 210 size: 309x173mm (12.2x6.8") diag: 354mm (13.9") modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:9dc8 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-72-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi
    v: kernel bus-ID: 00:14.3 chip-ID: 8086:9df0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:5 chip-ID: 8087:0aaa class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 100 hci-v: 5.1 rev: 100
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 4060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 28.44 GiB (6.0%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN520 SDAPNUW-512G-1006 size: 476.94 GiB speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: 20120006 temp: 40.9 C
    scheme: GPT
Partition:
  ID-1: / size: 467.89 GiB used: 28.44 GiB (6.1%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 75.0 C pch: 34.0 C mobo: 37.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2168
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://mirror.cov.ukservers.com/linuxmint vera main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:
  Processes: 255 Uptime: 6m wakeups: 1 Memory: 7.65 GiB
  used: 2.15 GiB (28.1%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13
lspci results:

Code: Select all

00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0b)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] (rev 30)
00:15.0 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 30)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #13 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN500 / PC SN520 NVMe SSD (rev 01)
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Monitor Lag and Mouse Flickering

Post by SMG »

ldbm wrote: Mon May 29, 2023 8:24 am Thanks SMG,

I updated my kernel in the hopes of that fixing the problem. I have reverted to 5.15.0-72-generic, although now when I run "inxi -Fxxxrz" my graphics card doesn't appear in the results. It isn't listed in the results of "lspci" either.
:shock:

Usually, the only way to make hardware disappear is to a change a setting in BIOS/UEFI to disable it. Many HPs do not have that functionality so I'm not sure that yours does. If you boot to a live session of Linux Mint using your install usb, does it show?

Your computer's CPU seems to be running quite warm for a machine that is not registering is not showing much CPU usage, although maybe using the external monitor is driving it up. That does add extra load.

Sensors:
System Temperatures: cpu: 75.0 C pch: 34.0 C mobo: 37.0 C
Fan Speeds (RPM): N/A

Was the computer working properly when Windows was on it?

By the way, you can run lspci -nnk | grep -EA3 "3D|VGA" to focus just on the graphics.

You didn't add any kernel parameters to grub, did you?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

Re: External Monitor Lag and Mouse Flickering

Post by ldbm »

SMG wrote: Mon May 29, 2023 12:01 pm Usually, the only way to make hardware disappear is to a change a setting in BIOS/UEFI to disable it. Many HPs do not have that functionality so I'm not sure that yours does. If you boot to a live session of Linux Mint using your install usb, does it show?
No mine doesn't. After a few restarts I can see it again, although it definitely wasn't showing up earlier. The correct drivers have also loaded now.
SMG wrote: Mon May 29, 2023 12:01 pm Was the computer working properly when Windows was on it?
Yes it was working fine as far as I know, a little slow but I've used it every day for ~4 years.
SMG wrote: Mon May 29, 2023 12:01 pm By the way, you can run lspci -nnk | grep -EA3 "3D|VGA" to focus just on the graphics.
Thanks, although this does not return the AMD graphics card, here is what it looks like after "lspci -nnk":

Code: Select all

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] (rev c3)
	Subsystem: Hewlett-Packard Company Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]
	Flags: bus master, fast devsel, latency 0, IRQ 138
	Memory at 90000000 (64-bit, prefetchable) [size=256M]
	Memory at a0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at 4000 [size=256]
	Memory at a2300000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at a2340000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
SMG wrote: Mon May 29, 2023 12:01 pm You didn't add any kernel parameters to grub, did you?
Yes, I added: "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off" as I couldn't install without them.

I tried following your guide and setting "DPI_PRIME=1", but as far as I can tell nothing has changed. The output of "inxi --graphics" still says that the amdgpu driver is unloaded.

inxi --graphics output:

Code: Select all

Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile]
    driver: amdgpu v: kernel
  Device-3: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: ati,modesetting
    unloaded: amdgpu,fbdev,vesa gpu: i915 resolution: 1: 2880x1800~60Hz
    2: 2560x1440
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    v: 4.6 Mesa 22.2.5
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Monitor Lag and Mouse Flickering

Post by SMG »

ldbm wrote: Tue May 30, 2023 12:52 pm After a few restarts I can see it again, although it definitely wasn't showing up earlier. The correct drivers have also loaded now.
That is positive news.
ldbm wrote: Tue May 30, 2023 12:52 pm Yes, I added: "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off" as I couldn't install without them.
The latter one may be affecting the ability of the AMD GPU to work properly.
ldbm wrote: Tue May 30, 2023 12:52 pmI tried following your guide and setting "DPI_PRIME=1", but as far as I can tell nothing has changed. The output of "inxi --graphics" still says that the amdgpu driver is unloaded.
Setting that environment variable is supposed to change the primary renderer. It is not suppose to change which graphics driver is loaded.

What is the output of

Code: Select all

cat /etc/X11/xorg.conf
It's okay if it says "no found file" (because that is what is should say).

X Server runs the graphics in Linux Mint. Please use this command in a terminal to upload the X Server log file to termbin:

Code: Select all

cat /var/log/Xorg.0.log | nc termbin.com 9999
It will return with a url address that you can post in your next reply.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

Re: External Monitor Lag and Mouse Flickering

Post by ldbm »

SMG wrote: Tue May 30, 2023 3:08 pm What is the output of

Code: Select all

cat /etc/X11/xorg.conf
It's okay if it says "no found file" (because that is what is should say).
"cat: /etc/X11/xorg.conf: No such file or directory"
SMG wrote: Tue May 30, 2023 3:08 pm X Server runs the graphics in Linux Mint. Please use this command in a terminal to upload the X Server log file to termbin:

Code: Select all

cat /var/log/Xorg.0.log | nc termbin.com 9999
It will return with a url address that you can post in your next reply.
https://termbin.com/o9p4

Would you recommend me trying to boot without "pcie_aspm=off"?
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Monitor Lag and Mouse Flickering

Post by SMG »

ldbm wrote: Wed May 31, 2023 6:50 amWould you recommend me trying to boot without "pcie_aspm=off"?
I could not really find any recent data which indicates that is needed.

What is the corresponding inxi output for the Xorg log you posted?

Everything in the log indicates the AMD driver loaded at boot up. Unless something happened after the portion of the log posted, this output does not match the inxi output you posted.

Code: Select all

[     8.326] (II) Applying OutputClass "AMDgpu" to /dev/dri/card1
[     8.326] 	loading driver: amdgpu

[     8.655] (II) AMDGPU(G0): glamor X acceleration enabled on ICELAND (iceland, LLVM 15.0.7, DRM 3.42, 5.15.0-72-generic)
[     8.655] (II) AMDGPU(G0): glamor detected, initialising EGL layer.
[     8.655] (==) AMDGPU(G0): TearFree property default: auto
[     8.655] (II) AMDGPU(G0): mem size init: gart size :bfc72000 vram size: s:7f6ac000 visible:feac000
[     8.655] (==) AMDGPU(G0): DPI set to (96, 96)
[     8.655] (==) AMDGPU(G0): Using gamma correction (1.0, 1.0, 1.0)

[     8.815] (II) AMDGPU(G0): [DRI2] Setup complete
[     8.815] (II) AMDGPU(G0): [DRI2]   DRI driver: radeonsi
[     8.815] (II) AMDGPU(G0): [DRI2]   VDPAU driver: radeonsi
[     8.816] (II) AMDGPU(G0): Front buffer pitch: 4096 bytes
[     8.816] (II) AMDGPU(G0): SYNC extension fences enabled
[     8.816] (II) AMDGPU(G0): Present extension enabled
[     8.816] (==) AMDGPU(G0): DRI3 enabled
[     8.816] (==) AMDGPU(G0): Backing store enabled
[     8.816] (II) AMDGPU(G0): Direct rendering enabled
[     8.828] (II) AMDGPU(G0): Use GLAMOR acceleration.
[     8.828] (II) AMDGPU(G0): Acceleration enabled
[     8.828] (==) AMDGPU(G0): DPMS enabled
[     8.828] (==) AMDGPU(G0): Silken mouse enabled
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

Re: External Monitor Lag and Mouse Flickering

Post by ldbm »

inxi -Fxxxrz:

Code: Select all

System:
  Kernel: 5.15.0-72-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Laptop 14-cf1xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 852F v: 16.20 serial: <superuser required> UEFI: Insyde
    v: F.42 date: 06/20/2019
Battery:
  ID-1: BAT0 charge: 19.1 Wh (50.5%) condition: 37.8/37.8 Wh (100.0%)
    volts: 12.5 min: 11.3 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: Charging
CPU:
  Info: quad core model: Intel Core i7-8565U bits: 64 type: MT MCP
    smt: enabled arch: Whiskey Lake rev: B cache: L1: 256 KiB L2: 1024 KiB
    L3: 8 MiB
  Speed (MHz): avg: 800 min/max: 400/4600 cores: 1: 800 2: 800 3: 800
    4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 31999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
    vendor: Hewlett-Packard driver: i915 v: kernel ports:
    active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3ea0
    class-ID: 0300
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
    620/625 Mobile]
    vendor: Hewlett-Packard driver: amdgpu v: kernel pcie: speed: 2.5 GT/s
    lanes: 4 bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380
  Device-3: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-6:3 chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.4 driver: X:
    loaded: amdgpu,ati,modesetting unloaded: fbdev,vesa gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5440x1800 s-dpi: 120 s-size: 1151x381mm (45.3x15.0")
    s-diag: 1212mm (47.7")
  Monitor-1: HDMI-1 mapped: HDMI-A-1 pos: right model: Acer VG240Y V
    serial: <filter> res: 2880x1800 hz: 60 dpi: 139
    size: 527x296mm (20.7x11.7") diag: 604mm (23.8") modes: max: 3840x2160
    min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: AU Optronics res: 2560x1440
    dpi: 210 size: 309x173mm (12.2x6.8") diag: 354mm (13.9") modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:9dc8 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-72-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi
    v: kernel bus-ID: 00:14.3 chip-ID: 8086:9df0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:5 chip-ID: 8087:0aaa class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 100 hci-v: 5.1 rev: 100
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 5060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 476.94 GiB used: 41.93 GiB (8.8%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN520 SDAPNUW-512G-1006 size: 476.94 GiB speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: 20120006 temp: 53.9 C
    scheme: GPT
Partition:
  ID-1: / size: 467.89 GiB used: 41.93 GiB (9.0%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 52.0 C pch: 48.0 C mobo: 50.0 C gpu: amdgpu
    temp: 47.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2176 apt: 2168 flatpak: 8
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://mirror.cov.ukservers.com/linuxmint vera main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:
  Processes: 288 Uptime: 3m wakeups: 1 Memory: 7.65 GiB
  used: 2.07 GiB (27.1%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13
Would it be okay if I set my AMD GPU to be the primary renderer for everything? If so, do I do this by adding "DPI_PRIME=1" to grub or elsewhere?

Thanks for your help.
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: External Monitor Lag and Mouse Flickering

Post by SMG »

ldbm wrote: Fri Jun 02, 2023 1:32 pm Graphics:
Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
vendor: Hewlett-Packard driver: i915 v: kernel ports:
active: HDMI-A-1,eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3ea0
class-ID: 0300
Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
620/625 Mobile]
vendor: Hewlett-Packard driver: amdgpu v: kernel pcie: speed: 2.5 GT/s
lanes: 4 bus-ID: 01:00.0 chip-ID: 1002:6900 class-ID: 0380
Display: x11 server: X.Org v: 1.21.1.4 driver: X:
loaded: amdgpu,ati,modesetting
unloaded: fbdev,vesa gpu: i915
display-ID: :0 screens: 1
OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
v: 4.6 Mesa 22.2.5 direct render: Yes
This is all properly loaded.
ldbm wrote: Fri Jun 02, 2023 1:32 pmWould it be okay if I set my AMD GPU to be the primary renderer for everything?
Yes.
ldbm wrote: Fri Jun 02, 2023 1:32 pmIf so, do I do this by adding "DPI_PRIME=1" to grub or elsewhere?
DRI_PRIME=1 is an environment variable which is part of the operating system set-up. It is not kernel parameter. One only adds kernel parameters to grub.

You would open an terminal and run DRI_PRIME=1 to have it run for that session. If you want that environment variable set up permanently (so you do not have to run it each time you reboot), there is a link to doing that near the bottom of the tutorial I mentioned earlier How to switch to the dedicated GPU on a laptop with Intel-AMD switchable graphics or AMD-AMD switchable graphics.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
ldbm
Level 1
Level 1
Posts: 6
Joined: Thu May 25, 2023 1:28 pm

Re: External Monitor Lag and Mouse Flickering

Post by ldbm »

Amazing, everything seems to working a lot better now. Thanks so much for your help!
Locked

Return to “Graphics Cards & Monitors”