Entire display freezes only during mouse movements

Issue Description

When using an external monitor, the screen will stop drawing (freeze) while the mouse is moving. The mouse cursor itself moves around smoothly but, all other areas of the screen including terminals, will remain static. Once movement of the mouse stops, all other areas of the screen will update and continue to redraw until the next mouse movement.

Workstation Information

The computer is a Dell XPS 9500 laptop which is connected to a Dell D6000 docking station via USB-C. The monitor, Acer B276HUL, is connected to the docking station via Display Port. The mouse is connected to the USB HUB on the monitor, which is then connected to the docking station. However, the mouse’s connection proved to be irrelevant during testing.

Here’s a diagram which might make it a little easier to understand the connections:

Hypothesis / Testing

Mouse Refresh Rate

After coming across this somewhat similar post I figured that the mouse was the source of the issue. Basically, it was flooding the bus with data thus overwhelming the dock and clogging the pipes where video traffic would normally flow.

I then installed the razerd and qrazercfg utilities to adjust the “Scan frequency” of the mouse. At first, this seems to mitigate the issue, but not completely resolve it. Setting the value to a low frequency of 125 Hz made game play possible, but the freezing issue was still noticeable.

Faulty Hardware

When the issue became unbearable, I decided to dig a little further into the matter. My first thought was to replace the mouse with a simple, no frills mouse to see if it would make a difference. With the new mouse connected, there was no change in performance and the issue remained.

I did try moving the mouse from the monitor bus, to the dock’s bus, and then finally directly to the laptop, but the issue persisted no matter where the mouse was connected.

USB Bandwidth

Now that I had two completely different pieces of hardware that produced the same issue, I wanted to confirm my original assumption that the mouse itself was sending too much data. I used the usbtop utility to view the “Raw USB traffic” for the devices and their associated buses.

The two components of interest were the dock’s internal display port (DisplayLink Dell Universal Dock D6000) and the mouse itself (Razer USA, Ltd Mamba 2015 Tournament Edition [RZ01-01370100-R3]). When monitoring the bandwidth of the display port, I woud see values in the 100’s or 1,000’s of kb/s. However, when moving the mouse this jumps to 10,000’s of kb/s. Going from an average value of around 5,000 kb/s to 79,000 kb/s.

Again, I moved the mouse to the various buses and was able to reproduce the same jump in bandwidth (to the display port device) regardless of the bus in use. Furthermore, I was able to see the mouse’s traffic in isolation and this would average 5 kb/s.

Too Many Displays

Now that I had hard evidence that the mouse was not flooding the bus as assumed, I turned my attention to the graphics card. I figured a simple test would be disabling the native display, which has a resolution of 3840 x 2400. Effectively reducing the numbers of pixels by over half.

This did not make a difference. That leads me to think that the hardware is more than capable of driving the display. I also know that this exact same hardware did not exhibit this issue when running Windows.

Noisy Device

As my final diagnostic attempt, I completely disabled the external monitor on the display port. My hope was that there was some other data being sent to the port even when the display was disabled. Essentially, I was expecting to see some “noise” on the port when the mouse moved, but this did not occur. Instead, the port’s bandwidth remained at 0.0 kb/s.

The Request

At this point, I’m thinking the issue is related to how many times the monitor is told to redraw the screen. Basically the software version of the hardware’s refresh rate.

I know there are a ton of configuration settings for X and I have no idea where to begin looking for additional diagnostic information related to how X handles communicating with display. So, I’m looking to you, the magnificent Manjaro community, for guidance on next steps.

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots … below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

P.S. If you want to notify me that you did provide this information, please :heart: this message and I’ll come back and have another look.

I am experiencing exactly the same issue and I am really running out of ideas… Could anyone please take a look?

Here my inxi output:

System:
  Kernel: 5.14.16-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/vmlinuz-linux
  root=UUID=250cc007-60e5-4dca-b3e2-08a43255b37c rw loglevel=3 quiet splash
  cryptdevice=UUID=085f6712-8ab8-4e50-b453-0dc2eb52c9b7:cryptroot
  root=/dev/mapper/cryptroot vt.global_cursor_default=0
  Desktop: KDE Plasma 5.23.2 tk: Qt 5.15.2 wm: kwin_x11 vt: 2 dm: SDDM
  Distro: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20S7S5W000 v: ThinkPad T15 Gen 1
  serial: <filter> Chassis: type: 10 serial: <filter>
  Mobo: LENOVO model: 20S7S5W000 v: SDK0J40697 WIN serial: <filter>
  UEFI: LENOVO v: N2XET30W (1.20 ) date: 05/17/2021
Battery:
  ID-1: BAT0 charge: 57.0 Wh (100.0%) condition: 57.0/57.0 Wh (100.0%)
  volts: 13.2 min: 11.6 model: LGC 5B10W13913 type: Li-poly serial: <filter>
  status: Charging cycles: 2
  ID-2: hidpp_battery_2 charge: N/A condition: N/A volts: 3.8 min: N/A
  model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
  serial: <filter> status: Discharging
Memory:
  RAM: total: 46.69 GiB used: 5.09 GiB (10.9%)
  RAM Report:
  missing: Required tool dmidecode not installed. Check --recommends
CPU:
  Info: Quad Core model: Intel Core i7-10610U bits: 64 type: MT MCP
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: C (12)
  microcode: EA cache: L2: 8 MiB bogomips: 36812
  Speed: 700 MHz min/max: 400/4900 MHz Core speeds (MHz): 1: 700 2: 700 3: 723
  4: 800 5: 753 6: 700 7: 700 8: 700
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities
  arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc
  cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms
  est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
  hwp_epp hwp_notify ibpb ibrs ibrs_enhanced ida intel_pt invpcid
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
  nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni
  popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep sgx smap smep
  smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
  tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec
  xsaveopt xsaves xtopology xtpr
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
  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 and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds mitigation: TSX disabled
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Lenovo driver: i915
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo
  bus-ID: 1-4.1.3:36 chip-ID: 046d:0892 class-ID: 0102 serial: <filter>
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:4
  chip-ID: 04f2:b6d0 class-ID: fe01 serial: <filter>
  Display: x11 server: X.org 1.20.13 compositor: kwin_x11 driver:
  loaded: modesetting alternate: fbdev,intel,vesa
  resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Lenovo
  driver: sof-audio-pci-intel-cnl
  alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
  chip-ID: 8086:02c8 class-ID: 0403
  Device-2: Blue Microphones Yeti X type: USB
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4.1.2:33
  chip-ID: 046d:0aaf class-ID: 0300 serial: <filter>
  Device-3: HD Pro Webcam C920 type: USB driver: snd-usb-audio,uvcvideo
  bus-ID: 1-4.1.3:36 chip-ID: 046d:0892 class-ID: 0102 serial: <filter>
  Device-4: DisplayLink ThinkPad Hybrid USB-C with USB-A Dock type: USB
  driver: snd-usb-audio,usbfs bus-ID: 2-2.2:16 chip-ID: 17e9:6015
  class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k5.14.16-arch1-1 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.39 running: no
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
  bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
  port: N/A bus-ID: 00:1f.6 chip-ID: 8086:0d4e class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-3: Lenovo ThinkPad Lan type: USB driver: cdc_ether bus-ID: 2-2.3:17
  chip-ID: 17ef:a359 class-ID: 0a00 serial: <filter>
  IF: enp0s20f0u2u3c2 state: down mac: <filter>
  IF-ID-1: ppp0 state: unknown speed: N/A duplex: N/A mac: N/A
  IP v4: <filter> scope: global
  WAN IP: <filter>
Bluetooth:
  Device-1: N/A type: USB driver: btusb v: 0.8 bus-ID: 1-10:11
  chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: disabled
  rfk-block: hardware: no software: no address: see --recommends
  Device-2: N/A type: USB driver: btusb v: 0.8 bus-ID: 1-4.2.1:38
  chip-ID: 0a12:0001 class-ID: e001
  Report: ID: hci1 rfk-id: 6 state: down bt-service: disabled rfk-block:
  hardware: no software: no address: N/A
Logical:
  Message: No logical block device data found.
  Device-1: cryptroot maj-min: 254:0 type: LUKS dm: dm-0 size: 476.42 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:2 size: 476.44 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 17.65 GiB (3.7%)
  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: 5108AGLA temp: 39.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.42 GiB size: 467.87 GiB (98.21%)
  used: 17.57 GiB (3.8%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
  mapped: cryptroot label: N/A uuid: N/A
  ID-2: /boot raw-size: 512 MiB size: 511 MiB (99.80%) used: 81.1 MiB (15.9%)
  fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A uuid: 71B3-E60A
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-2:41 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.1
  speed: 480 Mb/s chip-ID: 17ef:1028 class-ID: 0900
  Hub-3: 1-2.4:42 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.1
  speed: 480 Mb/s chip-ID: 17ef:1029 class-ID: 0900
  Hub-4: 1-2.4.2:43 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.0
  speed: 480 Mb/s power: 100mA chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-2.4.2.1:44 info: Cypress Billboard Device type: Billboard,HID
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
  power: 100mA chip-ID: 17ef:a354 class-ID: 0300 serial: <filter>
  Hub-5: 1-4:30 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.1
  speed: 480 Mb/s chip-ID: 0451:8142 class-ID: 0900
  Hub-6: 1-4.1:31 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.1
  speed: 480 Mb/s chip-ID: 0451:8142 class-ID: 0900
  Device-1: 1-4.1.2:33 info: Blue Microphones Yeti X type: Audio,HID
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0
  speed: 12 Mb/s power: 100mA chip-ID: 046d:0aaf class-ID: 0300
  serial: <filter>
  Device-2: 1-4.1.3:36 info: HD Pro Webcam C920 type: Video,Audio
  driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s
  power: 500mA chip-ID: 046d:0892 class-ID: 0102 serial: <filter>
  Device-3: 1-4.1.4:39 info: LG USB Controls type: HID
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s
  chip-ID: 043e:9a39 class-ID: 0300 serial: <filter>
  Hub-7: 1-4.2:32 info: Hi-speed hub with multiple TTs ports: 4 rev: 2.0
  speed: 480 Mb/s power: 100mA chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-4.2.1:38 info: N/A type: Bluetooth driver: btusb interfaces: 2
  rev: 2.0 speed: 12 Mb/s chip-ID: 0a12:0001 class-ID: e001
  Device-2: 1-4.2.2:35 info: Logitech USB Receiver type: Keyboard,Mouse,HID
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
  power: 98mA chip-ID: 046d:c539 class-ID: 0300
  Device-3: 1-4.3:34 info: Cypress USB Keyboard / PS2 Mouse
  type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
  speed: 1.5 Mb/s power: 100mA chip-ID: 04b4:0101 class-ID: 0301
  Hub-8: 1-4.4:37 info: Hi-speed hub with multiple TTs ports: 2 rev: 2.1
  speed: 480 Mb/s chip-ID: 0451:8142 class-ID: 0900
  Device-1: 1-8:4 info: Chicony Integrated Camera type: Video driver: uvcvideo
  interfaces: 5 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b6d0
  class-ID: fe01 serial: <filter>
  Device-2: 1-9:7 info: N/A type: <vendor specific> driver: N/A interfaces: 1
  rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 06cb:00bd class-ID: ff00
  serial: <filter>
  Device-3: 1-10:11 info: N/A type: Bluetooth driver: btusb interfaces: 2
  rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0026 class-ID: e001
  Hub-9: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.1 speed: 10 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
  Hub-10: 2-2:15 info: Full speed (or root) Hub ports: 4 rev: 3.1
  speed: 5 Gb/s chip-ID: 17ef:a356 class-ID: 0900
  Device-1: 2-2.2:16 info: DisplayLink ThinkPad Hybrid USB-C with USB-A Dock
  type: Audio driver: snd-usb-audio,usbfs interfaces: 5 rev: 3.2 speed: 5 Gb/s
  power: 8mA chip-ID: 17e9:6015 class-ID: 0102 serial: <filter>
  Device-2: 2-2.3:17 info: Lenovo ThinkPad Lan type: Ethernet Network,CDC-Data
  driver: cdc_ether interfaces: 2 rev: 3.0 speed: 5 Gb/s power: 288mA
  chip-ID: 17ef:a359 class-ID: 0a00 serial: <filter>
  Hub-11: 2-2.4:18 info: Full speed (or root) Hub ports: 4 rev: 3.1
  speed: 5 Gb/s chip-ID: 17ef:a357 class-ID: 0900
  Hub-12: 2-4:12 info: Full speed (or root) Hub ports: 4 rev: 3.0
  speed: 5 Gb/s chip-ID: 0451:8140 class-ID: 0900
  Hub-13: 2-4.1:13 info: Full speed (or root) Hub ports: 4 rev: 3.0
  speed: 5 Gb/s chip-ID: 0451:8140 class-ID: 0900
  Hub-14: 2-4.4:14 info: Full speed (or root) Hub ports: 2 rev: 3.0
  speed: 5 Gb/s chip-ID: 0451:8140 class-ID: 0900
  Hub-15: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-16: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Info:
  Processes: 259 Uptime: 22m wakeups: 16 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 761 lib: 180
  Shell: Zsh v: 5.8 running-in: tmux: inxi: 3.3.08

Okay, it seems like a complete system update actually fixed the issue. I’m still amazed tbh. Especially updating xorg-server was very important.

1 Like