Mint 21: Keyboard repeat settings ignored when USB keyboard attached

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
endlisnis
Level 2
Level 2
Posts: 61
Joined: Tue Jan 27, 2015 10:59 am

Mint 21: Keyboard repeat settings ignored when USB keyboard attached

Post by endlisnis »

I have a non-default repeat delay set on my keyboard (I set it using the standard keyboard settings app in Mint). I've been using this setting (which is a smaller delay before the repeats begin) for many years with Linux Mint. I recently upgraded to Mint 21; but now I've run into a problem.

If I disconnect and then reconnect my keyboard, it reverts back to the default delay before the repeat begins. The keyboard settings app still SHOWS the setting I want, but it's not how the keyboard behaves. If I disable and then enable the repeat option using the keyboard settings app, everything works correctly.

I switch my keyboard between a Linux Mint machine and a work laptop every day, so I'm confident that this used to work and now I must disable and re-enable the setting every time I plug the USB keyboard back in.

Also, I use an accessibility setting "Control the pointer using the keypad". This also stops working if I unplug and then replug the USB keyboard. Hitting the numlock key a couple of times seems to make it start working again.

I'm pretty sure I was using the 5.15 kernel with Mint 20 before the upgrade, so I don't think it's a kernel problem.

Code: Select all

System:
  Kernel: 5.15.0-47-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.12 tk: GTK 3.24.33 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Gigabyte product: B360M-DS3H v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: B360M DS3H v: x.x serial: <superuser required>
    UEFI: American Megatrends v: F14 date: 03/14/2019
CPU:
  Info: 6-core model: Intel Core i5-9400 bits: 64 type: MCP
    smt: <unsupported> arch: Coffee Lake rev: C cache: L1: 384 KiB L2: 1.5 MiB
    L3: 9 MiB
  Speed (MHz): avg: 800 min/max: 800/4100 cores: 1: 800 2: 800 3: 800
    4: 800 5: 800 6: 800 bogomips: 34798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GP107GL [Quadro P400] driver: nvidia v: 515.65.01 pcie:
    speed: 8 GT/s lanes: 16 ports: active: none off: DP-1,DP-2 empty: DP-3
    bus-ID: 01:00.0 chip-ID: 10de:1cb3 class-ID: 0300
  Display: x11 server: X.org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    display-ID: localhost:11.0
  Message: No GL data found on this system.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fb9
    class-ID: 0403
  Device-3: C-Media Audio Adapter (Unitek Y-247A) type: USB
    driver: cmedia_hs100b,snd-usb-audio,usbhid bus-ID: 1-7:3 chip-ID: 0d8c:0014
    class-ID: 0300
  Sound Server-1: ALSA v: k5.15.0-47-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: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Drives:
  Local Storage: total: 6.87 TiB used: 1.61 TiB (23.4%)
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW020T8 size: 1.86 TiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 002C temp: 43.9 C
    scheme: MBR
  ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-3: /dev/sdb vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC46 scheme: MBR
  ID-4: /dev/sdc vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB
    speed: 6.0 Gb/s type: HDD rpm: 5425 serial: <filter> rev: 0001 scheme: GPT
Partition:
  ID-1: / size: 60.98 GiB used: 24 GiB (39.4%) fs: ext4 dev: /dev/nvme0n1p1
  ID-2: /boot/efi size: 246.1 MiB used: 5.2 MiB (2.1%) fs: vfat
    dev: /dev/nvme0n1p3
  ID-3: /home size: 1.76 TiB used: 1.21 TiB (68.9%) fs: ext4
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: partition size: 16 GiB used: 1.69 GiB (10.5%)
    priority: -2 dev: /dev/nvme0n1p5
Sensors:
  System Temperatures: cpu: 27.8 C pch: 54.0 C mobo: 16.8 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2923 apt: 2905 flatpak: 12 snap: 6
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/deadsnakes-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  No active apt repos in: /etc/apt/sources.list.d/kelleyk-emacs-focal.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
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
    1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 353 Uptime: 4d 14h 55m wakeups: 0 Memory: 15.56 GiB
  used: 7.5 GiB (48.2%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11/9 Shell: Bash v: 5.1.16 running-in: tmux: inxi: 3.3.13
Last edited by LockBot on Fri Mar 24, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Mint 21: Keyboard repeat settings ignored when keyboard attached

Post by Cosmo. »

Do you say, that it worked as expected in LM 20.3? I am not sure about this.

Open Users & Groups and create a new account for testing. Reboot and log into the new account. Test the problem there.
endlisnis
Level 2
Level 2
Posts: 61
Joined: Tue Jan 27, 2015 10:59 am

Re: Mint 21: Keyboard repeat settings ignored when keyboard attached

Post by endlisnis »

This worked as expected in Mint 20.3.

I just tried your suggestion, but I can reproduce the problem using a new user as well.

I created a new local user account "test". I rebooted and logged in as test. I changed the delay before the keyboard repeat to as low as it would go. Checked it (it was working); then I pulled the USB cable for my keyboard, and then put it back in. The delay was back to default, even though the settings app showed a non-default setting. Toggling the setting in the keyboard config app restored the delay.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Mint 21: Keyboard repeat settings ignored when keyboard attached

Post by Cosmo. »

A bug?

Boot the live system with Mint 21 and check, how it behaves there.
endlisnis
Level 2
Level 2
Posts: 61
Joined: Tue Jan 27, 2015 10:59 am

Re: Mint 21: Keyboard repeat settings ignored when keyboard attached

Post by endlisnis »

I tried booting a live USB Mint v21.

I was able to reproduce the same problem there (and even on a different desktop computer). Oddly, that system had both a PS2 keyboard and a USB keyboard on it. The problem was only reproducible on the USB keyboard. The PS2 keyboard repeat worked fine.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Mint 21: Keyboard repeat settings ignored when USB keyboard attached

Post by Cosmo. »

This confirms my suspicion. You can report it here: https://github.com/linuxmint/cinnamon/issues
endlisnis
Level 2
Level 2
Posts: 61
Joined: Tue Jan 27, 2015 10:59 am

Re: Mint 21: Keyboard repeat settings ignored when USB keyboard attached

Post by endlisnis »

Thanks, I reported the bug.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Mint 21: Keyboard repeat settings ignored when USB keyboard attached

Post by Cosmo. »

A link is in this helpful to keep track. Here it is: https://github.com/linuxmint/cinnamon/issues/11198
Locked

Return to “Other topics”