Manjaro get's slow and has input delay sometimes

not sure why but when i’m typing there is a delay in the output sometimes

I am on Kernel 5.10 LTS and i’m using a wireless keyboard if that helps. The delay is noticable when I type fast in vscode, xfce terminal or firefox.

sometimes when I type more characters are repeated as well even though I only pressed them once

System:
 Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 
  Desktop: Xfce 4.16.0 Distro: Manjaro Linux 
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A 
  serial: <superuser required> 
  Mobo: ASUSTeK model: PRIME B560M-A v: Rev 1.xx 
  serial: <superuser required> UEFI: American Megatrends v: 0820 
  date: 04/27/2021 
CPU:
  Info: Quad Core model: Intel Core i3-10320 bits: 64 type: MT MCP cache: 
  L2: 8 MiB 
  Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] driver: nvidia v: 470.57.02 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia resolution: 
  1: 1024x1280~60Hz 2: 1920x1080~60Hz 3: 1024x1280~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 960/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.57.02 
Audio:
  Device-1: Intel driver: snd_hda_intel 
  Device-2: NVIDIA GM206 High Definition Audio driver: snd_hda_intel 
  Sound Server-1: ALSA v: k5.10.53-1-MANJARO running: yes 
  Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e 
  IF: eno1 state: down mac: fc:34:97:9f:37:4d 
  Device-2: Intel Wireless 7265 driver: iwlwifi 
  IF: wlp3s0 state: up mac: 90:cc:df:ad:2e:dd 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb 
  Report: rfkill ID: hci0 state: up address: see --recommends 
Drives:
  Local Storage: total: 465.76 GiB used: 15.84 GiB (3.4%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS500G3X0C-00SJG0 
  size: 465.76 GiB 
Partition:
  ID-1: / size: 457.08 GiB used: 15.84 GiB (3.5%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-2: /boot/efi size: 299.3 MiB used: 288 KiB (0.1%) fs: vfat 
  dev: /dev/nvme0n1p1 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A gpu: nvidia temp: 60 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 245 Uptime: 7h 3m Memory: 15.49 GiB used: 2.63 GiB (17.0%) 
  Shell: Bash inxi: 3.3.06 

Maybe related to autosuspend of usb. Check it:

sudo tlp-stat --usb
--- TLP 1.3.1 --------------------------------------------

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = disabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 8087:0a2a control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Bluetooth wireless interface (btusb)
Bus 001 Device 004 ID 0b05:19af control = on,   autosuspend_delay_ms = 2000 -- ASUSTek Computer, Inc. AURA LED Controller (usbhid)
Bus 001 Device 006 ID 046d:c52b control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Unifying Receiver (usbhid)
Bus 001 Device 005 ID 046d:c537 control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Cordless Mouse Receiver (usbhid)
Bus 001 Device 003 ID 05e3:0610 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

device 6 would be the bluetooth receiver for the keyboard

Yepp it is is auto suspending after 2000ms, if it is really bluetooth… otherwise it is this:

(and that is NOT bluetooth, but has maybe a wireless receiver.)

Create file:

sudo nano /etc/tlp.d/00-bluetooth.conf

and add there:

USB_BLACKLIST_BTUSB=1
# and maybe also:
USB_BLACKLIST="8087:0a2a"

and restart the service:

sudo systemctl restart tlp

then check again:

sudo tlp-stat --usb
1 Like

after running it i still get this as output and still notice delay

--- TLP 1.3.1 --------------------------------------------

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = 8087:0a2a
Bluetooth blacklist = enabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 8087:0a2a control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Bluetooth wireless interface (btusb)
Bus 001 Device 004 ID 0b05:19af control = on,   autosuspend_delay_ms = 2000 -- ASUSTek Computer, Inc. AURA LED Controller (usbhid)
Bus 001 Device 006 ID 046d:c52b control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Unifying Receiver (usbhid)
Bus 001 Device 005 ID 046d:c537 control = on,   autosuspend_delay_ms = 2000 -- Logitech, Inc. Cordless Mouse Receiver (usbhid)
Bus 001 Device 003 ID 05e3:0610 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

Then reboot the computer. :wink:

keyboard is using the wireless receiver to connect with the computer? isn’t blacklist “8087:0a2a” to blacklist the intel bluetooth receiver? how would that effect the keyboard?

sorry i may be wrong

May want to experiment with a wired keyboard.

Because you said:

And the only bluetooth device is:

But these:

are not bluetooth at all. So I assumed there must be another keyboard which is connected via bluetooth.

However… blacklisting both devices would not make any difference because they are always on. I would rather blacklist the hub then or just disable autosuspend completely. Have a look at /etc/tlp.conf.