Keyboard Lag

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Sandy04
Level 1
Level 1
Posts: 8
Joined: Sat Jun 03, 2023 2:02 pm

Keyboard Lag

Post by Sandy04 »

I have been experiencing keyboard lag ever since i upgraded to LM21

inxi -Fxxxrz -

Code: Select all

System:
  Kernel: 6.1.0-1013-oem x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33 wm: Mutter vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Pavilion Aero Laptop 13-be2xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8BD6 v: 74.22 serial: <superuser required> UEFI: Insyde
    v: F.05 date: 02/23/2023
Battery:
  ID-1: BAT0 charge: 41.2 Wh (94.7%) condition: 43.5/43.5 Wh (100.0%)
    volts: 12.7 min: 11.6 model: 313-2C-3C-A PC03043XL type: Li-ion
    serial: <filter> status: Discharging cycles: 9
CPU:
  Info: 8-core model: AMD Ryzen 7 7735U with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 1 cache: L1: 512 KiB L2: 4 MiB
    L3: 16 MiB
  Speed (MHz): avg: 1875 high: 4556 min/max: 1600/4817 boost: enabled
    cores: 1: 1600 2: 1330 3: 1600 4: 2700 5: 1600 6: 1600 7: 1600 8: 1425
    9: 1600 10: 1600 11: 1497 12: 2700 13: 1394 14: 1600 15: 4556 16: 1600
    bogomips: 86245
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Rembrandt vendor: Hewlett-Packard driver: amdgpu v: kernel
    pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4, DP-5, HDMI-A-1 bus-ID: 03:00.0
    chip-ID: 1002:1681 class-ID: 0300
  Device-2: Luxvisions Innotech HP Wide Vision HD Camera type: USB
    driver: uvcvideo bus-ID: 1-3:2 chip-ID: 30c9:0065 class-ID: 0e02
    serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.0x12.5")
    s-diag: 599mm (23.6")
  Monitor-1: eDP res: 1920x1200 hz: 60 dpi: 171 size: 286x179mm (11.3x7.0")
    diag: 337mm (13.3")
  OpenGL:
    renderer: REMBRANDT (rembrandt LLVM 15.0.6 DRM 3.49 6.1.0-1013-oem)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: AMD vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Hewlett-Packard driver: snd_pci_acp6x v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 03:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k6.1.0-1013-oem 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: Realtek vendor: Hewlett-Packard driver: rtw89_8852be v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0
    chip-ID: 10ec:b852 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-3:2 chip-ID: 0bda:b85c class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.2 sub-v: 91cb hci-v: 5.2 rev: dfb7
Drives:
  Local Storage: total: 953.87 GiB used: 19.55 GiB (2.0%)
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNU010TZH size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: HPS1 temp: 34.9 C
    scheme: GPT
Partition:
  ID-1: / size: 29.36 GiB used: 19.27 GiB (65.6%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 74.6 MiB (29.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 68.35 GiB used: 218.6 MiB (0.3%) fs: ext4
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: file size: 1.39 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 36.0 C gpu: amdgpu temp: 44.0 C
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Repos:
  Packages: apt: 2241
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa 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
Info:
  Processes: 344 Uptime: 5m wakeups: 706 Memory: 14.83 GiB
  used: 1.67 GiB (11.3%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12/9 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

xinput -

Code: Select all

⎡ Virtual core pointer                     id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer               id=4 [slave  pointer  (2)]
⎜   ↳ Logitech Wireless Mouse                 id=9 [slave  pointer  (2)]
⎜   ↳ ELAN07C5:00 04F3:31B5 Mouse             id=10 [slave  pointer  (2)]
⎜   ↳ ELAN07C5:00 04F3:31B5 Touchpad           id=11 [slave  pointer  (2)]
⎣ Virtual core keyboard                   id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard             id=5 [slave  keyboard (3)]
    ↳ Video Bus                               id=6 [slave  keyboard (3)]
    ↳ Power Button                             id=7 [slave  keyboard (3)]
    ↳ HP Wide Vision HD Camera: HP Wi         id=8 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard             id=12 [slave  keyboard (3)]
    ↳ HP WMI hotkeys                           id=13 [slave  keyboard (3)]

To describe the problems -
Well, it takes a few more milliseconds before what i typed could appear on the screen, this is making typing difficult as it is sometimes -
  • Skipping a few characters that i type
  • Continuously repeating the same character (like pressing j once types out jjjjjjjjjjjjjjjjjjj)
  • And also, i am using a wireless logitech mouse, the touchpad on my laptop doesnt work for some reason too. The two buttons work, but touchpad wont (i cant move the pointer or select something with the touchpad)
Last edited by LockBot on Tue Dec 05, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
MiZoG
Level 8
Level 8
Posts: 2345
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Keyboard Lag

Post by MiZoG »

Your laptop is brand spanking new.
Current oem kernel is not close to be good enough for your machine.

Best thing you can do while on Linux Mint is to install the "mainline" kernel waiting for an updated Ubuntu oem kernel.
There has been an ubuntu PPA around for a while.
I can see there are also alternative methods to install mainline on Ubuntu-based systems.
No personal experience with any of them.

Patience with that machine on Linux. It will take some time for some components to work properly.
Sandy04
Level 1
Level 1
Posts: 8
Joined: Sat Jun 03, 2023 2:02 pm

Re: Keyboard Lag

Post by Sandy04 »

Hi!

Thanks for the reply, and I understand, I only purchased this laptop a few days ago.
However, before I try out your solution, could we please take a look at this?

https://bugzilla.kernel.org/show_bug.cgi?id=217406

The person here has the exact same pavilion 13, with ryzen 7 7735U as me. I'm convinced their problem was the exact same as mine.
They came up with a 'patch' where they change a very small part of the driver code.

So, could I receive some help on how I can apply this patch myself too? I can code but this is still a bit advanced for me... :(
Sandy04
Level 1
Level 1
Posts: 8
Joined: Sat Jun 03, 2023 2:02 pm

Re: Keyboard Lag

Post by Sandy04 »

I have looked at a few places in the file system itself, i dont think there is any C source code available... I only see either object files, or certain .ko files...
So maybe i have to download the kernel, insert the required source, and then take it from there.
User avatar
MiZoG
Level 8
Level 8
Posts: 2345
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Keyboard Lag

Post by MiZoG »

Honestly never patched any kernel. It doesn't look too hard yet I'd rather leave it to those who know what they're doing. Hope someone with experience could come to your aid. It might have found its way to kernel already or it will be there any time soon.
Last edited by MiZoG on Tue Jun 06, 2023 10:17 pm, edited 1 time in total.
Sandy04
Level 1
Level 1
Posts: 8
Joined: Sat Jun 03, 2023 2:02 pm

Re: Keyboard Lag

Post by Sandy04 »

Hmmm alright, so how do you think I would have to wait? (like a rough estimate) Also how will I be notified about when the updates come, and whether the update will support my hardware?
User avatar
MiZoG
Level 8
Level 8
Posts: 2345
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Keyboard Lag

Post by MiZoG »

No idea. By the look of it I say it's almost there.
But you never know. Am not sure how laymen are treated these days on kernel email-lists,
if you let's say want to step in and ask for a "status update".
viveksreedharan
Level 1
Level 1
Posts: 24
Joined: Tue Sep 29, 2020 10:42 pm

Re: Keyboard Lag

Post by viveksreedharan »

I have a solution but it may not be perfect and permanent. This problem is seen even in some 1 year old machines - HP Pavilion laptops.

Make sure to use the latest kernel.. currently it is 6.2.X.. With latest kernels, this problem is not seen much... it takes 30-40 seconds in login screen. There after it is ok.
Locked

Return to “Hardware Support”