Open endlisnis opened 1 year ago
I can confirm the same problem. I have a USB keyboard connected via USB-c hub and I have to toggle repeat in keyboard settings everytime I reconnect the hub. The notebook keyboard works well all the time.
Same problem happens here.
Still reproducible using Cinnamon v5.6.5.
Still reproducible using Cinnamon v5.6.7.
Same exact problem with Mint 21.1 and Cinnamon 5.6.7. This is SO ANNOYING!!!
Yes, very annoying. I switch between my laptop and desktop every day for work, and now I have to do a special dance every time I switch the keyboard: (1) Toggle my numlock (to enable mouse emulation again). (2) Open the "keyboard" settings panel. (3) Double click the "Enable key repeat" option.
I've done this about 100 times now. Still not getting any less annoying; but I don't see anyone discussing this bug other than people saying that experience it.
Most people aren't touch typists, so it's apparently a low-priority settings, but both the delay and rate are super important to me when coding. However, there are some keyboard shortcuts that can help in some situations (not all) such as ctrl+arrow keys to jump words, and and ctrl+delete to delete from the cursor postion to the end of the word.
What that said, this is definitely a bug, and I cannot wait for it to get fixed. I might have to change distros if this cannot be fixed.
This also disables some of the accessibility features, specifically "control the pointer using the keyboard" when a usb keyboard is reconnected. But I guess that's also a rarely used feature.
Same here. But not only with USB keyboards. The same problem occurs when my bluetooth keyboard disconnect/reconnect. Sometimes after login, when the screen went off.
Hey guys, I have a workaround that beats going into the settings:
Option 1: Setup one of your "Hot Corners" to run a command, specifically "xset r rate 250 60" (adjust as you need). Then when you reconnect your keyboard, just move your mouse to that corner and it will run the command, resetting your keyboard repeat rate and delay back to where you want.
Option 2: Setup a custom key binding in the Keyboard settings panel (e.g., Super+K) and run the same command as above.
This is not a total fix, but it does at least give you a way to reset the rate and delay very quickly.
Hey guys, I have a workaround that beats going into the settings:
Option 1: Setup one of your "Hot Corners" to run a command, specifically "xset r rate 250 60" (adjust as you need). Then when you reconnect your keyboard, just move your mouse to that corner and it will run the command, resetting your keyboard repeat rate and delay back to where you want.
Option 2: Setup a custom key binding in the Keyboard settings panel (e.g., Super+K) and run the same command as above.
This is not a total fix, but it does at least give you a way to reset the rate and delay very quickly.
You are a genious! Thx!!
Hi, I also have this issue, but I also have another one: I use Lenovo Trakcpoint II keyboard. The problem is that the middle + trakckpoint scrolling doesn't work after waking up. I put a very simple script in /lib/systemd/system-sleep:
#!/bin/sh
modprobe -r usbhid && modprobe usbhid && sleep 1 && xset r rate 190 52
It works perfectly for the scrolling issue, but xset r rate
seems to be ignored. Any ideas? :)
I can confirm that this bug exists in Linux Mint 21.1 Cinnamon (5.6.8). There was no such bug in many other Cinnamon/Mint versions I have been using for years, so this is definitely a newly brought bug.
After booting up the key repeat delay is working as needed. But if the keyboard is unplugged and plugged in again, the key repeat changes to some other value. The keyboard setting window still shows the old correct value.
So every time I need to go to settings and disable/enable the "Enable key repeat" toggle to restart the behavior. There is no need to move the slider itself.
Here is what Xorg.0.log
shows unplugging and plugging in:
[ 150.812] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: device removed
[ 150.836] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow
[ 150.837] (II) UnloadModule: "libinput"
[ 150.876] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: device removed
[ 150.928] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow
[ 150.933] (II) UnloadModule: "libinput"
[ 150.948] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: device removed
[ 150.976] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow System Control
[ 150.977] (II) UnloadModule: "libinput"
[ 151.000] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: device removed
[ 151.020] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow Consumer Control
[ 151.022] (II) UnloadModule: "libinput"
[ 151.022] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow Consumer Control
[ 151.023] (II) UnloadModule: "libinput"
[ 151.076] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: device removed
[ 151.096] (II) config/udev: removing device ZSA Technology Labs ErgoDox EZ Glow Keyboard
[ 151.098] (II) UnloadModule: "libinput"
[ 153.517] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow (/dev/input/mouse0)
[ 153.517] (II) No input driver specified, ignoring this device.
[ 153.517] (II) This device may have been added with another device file.
[ 153.579] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow (/dev/input/event3)
[ 153.579] (**) ZSA Technology Labs ErgoDox EZ Glow: Applying InputClass "evdev keyboard catchall"
[ 153.579] (**) ZSA Technology Labs ErgoDox EZ Glow: Applying InputClass "libinput keyboard catchall"
[ 153.579] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow'
[ 153.579] (**) ZSA Technology Labs ErgoDox EZ Glow: always reports core events
[ 153.579] (**) Option "Device" "/dev/input/event3"
[ 153.581] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: is tagged by udev as: Keyboard
[ 153.581] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: device is a keyboard
[ 153.581] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: device removed
[ 153.608] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/0003:3297:4976.0009/input/input30/event3"
[ 153.608] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow" (type: KEYBOARD, id 9)
[ 153.608] (**) Option "xkb_model" "pc105"
[ 153.608] (**) Option "xkb_layout" "fi,ru"
[ 153.608] (**) Option "xkb_variant" "classic,rus_fin"
[ 153.608] (**) Option "xkb_options" "grp_led:scroll,grp:alt_shift_toggle,terminate:ctrl_alt_bksp,lv5:caps_switch_lock,misc:extend"
[ 153.609] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: is tagged by udev as: Keyboard
[ 153.609] (II) event3 - ZSA Technology Labs ErgoDox EZ Glow: device is a keyboard
[ 153.610] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow System Control (/dev/input/event5)
[ 153.610] (**) ZSA Technology Labs ErgoDox EZ Glow System Control: Applying InputClass "evdev keyboard catchall"
[ 153.610] (**) ZSA Technology Labs ErgoDox EZ Glow System Control: Applying InputClass "libinput keyboard catchall"
[ 153.610] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow System Control'
[ 153.610] (**) ZSA Technology Labs ErgoDox EZ Glow System Control: always reports core events
[ 153.610] (**) Option "Device" "/dev/input/event5"
[ 153.611] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: is tagged by udev as: Keyboard
[ 153.611] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: device is a keyboard
[ 153.611] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: device removed
[ 153.640] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.3/0003:3297:4976.000C/input/input32/event5"
[ 153.640] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow System Control" (type: KEYBOARD, id 10)
[ 153.640] (**) Option "xkb_model" "pc105"
[ 153.640] (**) Option "xkb_layout" "fi,ru"
[ 153.640] (**) Option "xkb_variant" "classic,rus_fin"
[ 153.640] (**) Option "xkb_options" "grp_led:scroll,grp:alt_shift_toggle,terminate:ctrl_alt_bksp,lv5:caps_switch_lock,misc:extend"
[ 153.641] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: is tagged by udev as: Keyboard
[ 153.641] (II) event5 - ZSA Technology Labs ErgoDox EZ Glow System Control: device is a keyboard
[ 153.642] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow Consumer Control (/dev/input/event6)
[ 153.642] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: Applying InputClass "evdev keyboard catchall"
[ 153.642] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 153.642] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow Consumer Control'
[ 153.642] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: always reports core events
[ 153.642] (**) Option "Device" "/dev/input/event6"
[ 153.643] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: is tagged by udev as: Keyboard
[ 153.643] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: device is a keyboard
[ 153.643] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: device removed
[ 153.660] (II) libinput: ZSA Technology Labs ErgoDox EZ Glow Consumer Control: needs a virtual subdevice
[ 153.660] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.3/0003:3297:4976.000C/input/input33/event6"
[ 153.660] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow Consumer Control" (type: MOUSE, id 11)
[ 153.660] (**) Option "AccelerationScheme" "none"
[ 153.661] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: (accel) selected scheme none/0
[ 153.661] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: (accel) acceleration factor: 2.000
[ 153.661] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: (accel) acceleration threshold: 4
[ 153.661] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: is tagged by udev as: Keyboard
[ 153.661] (II) event6 - ZSA Technology Labs ErgoDox EZ Glow Consumer Control: device is a keyboard
[ 153.662] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: Applying InputClass "evdev keyboard catchall"
[ 153.662] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: Applying InputClass "libinput keyboard catchall"
[ 153.662] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow Consumer Control'
[ 153.662] (**) ZSA Technology Labs ErgoDox EZ Glow Consumer Control: always reports core events
[ 153.662] (**) Option "Device" "/dev/input/event6"
[ 153.662] (II) libinput: ZSA Technology Labs ErgoDox EZ Glow Consumer Control: is a virtual subdevice
[ 153.662] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.3/0003:3297:4976.000C/input/input33/event6"
[ 153.662] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow Consumer Control" (type: KEYBOARD, id 12)
[ 153.662] (**) Option "xkb_model" "pc105"
[ 153.662] (**) Option "xkb_layout" "fi,ru"
[ 153.662] (**) Option "xkb_variant" "classic,rus_fin"
[ 153.662] (**) Option "xkb_options" "grp_led:scroll,grp:alt_shift_toggle,terminate:ctrl_alt_bksp,lv5:caps_switch_lock,misc:extend"
[ 153.663] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow (/dev/input/event4)
[ 153.663] (**) ZSA Technology Labs ErgoDox EZ Glow: Applying InputClass "evdev pointer catchall"
[ 153.663] (**) ZSA Technology Labs ErgoDox EZ Glow: Applying InputClass "libinput pointer catchall"
[ 153.663] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow'
[ 153.663] (**) ZSA Technology Labs ErgoDox EZ Glow: always reports core events
[ 153.663] (**) Option "Device" "/dev/input/event4"
[ 153.696] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: is tagged by udev as: Mouse
[ 153.696] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: device is a pointer
[ 153.697] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: device removed
[ 153.728] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.2/0003:3297:4976.000B/input/input31/event4"
[ 153.728] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow" (type: MOUSE, id 13)
[ 153.728] (**) Option "AccelerationScheme" "none"
[ 153.729] (**) ZSA Technology Labs ErgoDox EZ Glow: (accel) selected scheme none/0
[ 153.729] (**) ZSA Technology Labs ErgoDox EZ Glow: (accel) acceleration factor: 2.000
[ 153.729] (**) ZSA Technology Labs ErgoDox EZ Glow: (accel) acceleration threshold: 4
[ 153.812] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: is tagged by udev as: Mouse
[ 153.812] (II) event4 - ZSA Technology Labs ErgoDox EZ Glow: device is a pointer
[ 153.814] (II) config/udev: Adding input device ZSA Technology Labs ErgoDox EZ Glow Keyboard (/dev/input/event7)
[ 153.814] (**) ZSA Technology Labs ErgoDox EZ Glow Keyboard: Applying InputClass "evdev keyboard catchall"
[ 153.814] (**) ZSA Technology Labs ErgoDox EZ Glow Keyboard: Applying InputClass "libinput keyboard catchall"
[ 153.814] (II) Using input driver 'libinput' for 'ZSA Technology Labs ErgoDox EZ Glow Keyboard'
[ 153.814] (**) ZSA Technology Labs ErgoDox EZ Glow Keyboard: always reports core events
[ 153.814] (**) Option "Device" "/dev/input/event7"
[ 153.816] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: is tagged by udev as: Keyboard
[ 153.816] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: device is a keyboard
[ 153.816] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: device removed
[ 153.844] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.3/0003:3297:4976.000C/input/input34/event7"
[ 153.844] (II) XINPUT: Adding extended input device "ZSA Technology Labs ErgoDox EZ Glow Keyboard" (type: KEYBOARD, id 21)
[ 153.844] (**) Option "xkb_model" "pc105"
[ 153.844] (**) Option "xkb_layout" "fi,ru"
[ 153.844] (**) Option "xkb_variant" "classic,rus_fin"
[ 153.844] (**) Option "xkb_options" "grp_led:scroll,grp:alt_shift_toggle,terminate:ctrl_alt_bksp,lv5:caps_switch_lock,misc:extend"
[ 153.845] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: is tagged by udev as: Keyboard
[ 153.845] (II) event7 - ZSA Technology Labs ErgoDox EZ Glow Keyboard: device is a keyboard
[ 155.932] (EE) event3 - ZSA Technology Labs ErgoDox EZ Glow: client bug: event processing lagging behind by 32ms, your system is too slow
Running xset r rate 250 33
fixes my keyboard repeat rate after plugging the keyboard back in, but the "control the pointer using the keyboard" settings are still disabled even after running xset
. Hitting the "num-lock" twice is required to re-enable the "control the pointer using the keyboard" option.
Can confirm, I have this exact problem, and this is still a problem in Cinnamon 5.8.4. @nhamawi I will use this workaround in the meantime - thank you for that.
Same here on mint 21.2. Bad bug, please fix
Still reproducible in Cinnamon v6.0.4.
This is really annoying ...
I have the same bug here, i switch my keyboard between my 2 computers using a USB adapter, when i press the button the keyboard and mouse are switch to the another machine, always that i return the keyboard to the linux mint machine the repeat options go to default settings, annoyng.
We should buy a birthday cake with this bug message into a birthday card and send to the cinnamon team.
Please retry after installing inputplug:
apt install inputplug
Inputplug is a daemon that connects to a running X server and monitors its XInput hierarchy modification events, such as input device connected or disconnected, enabled or disabled, etc., and executes some command when these events occur.
You can view changes from System settings -> Keyboard with dconf-editor (path: /org/cinnamon/desktop/peripherals/keyboard/
)
The bug is still present in Linux Mint 21.3 Cinnamon (6.0.4).
Installing inputplug
doesn't change anything for me.
Note that the notebook keyboard works fine all the time, the problem is only with the re-connected external USB keyboard.
It is disappointing that this bug is open for so long. But, here is a workaround using @claudiux 's suggestion.
sudo apt install inputplug
).Write a bash script ~/.local/bin/input-plug.sh
and make it executable (chmod +x ~/.local/bin/input-plug.sh
).
#!/usr/bin/env bash
if [[ "$1" == "XIDeviceEnabled" && "$3" == "XISlaveKeyboard" ]]; then
xset r rate 150 60
fi
/usr/bin/inputplug --command ~/.local/bin/input-plug.sh
CCing myself to this as I've noticed this bug too. Thanks for providing an additional reminder as to why I use Windows for my main desktop OS. How hard is it to avoid introducing incredibly basic bugs like this, really??
Also seeing this bug, makes switching between my mac and linux workstations slightly more annoying.
In the short term I've set up a startup task to kick off this script:
while true; do
xset r rate 380 52
sleep 5
done
Setting AutoRepeat in the X.Org config fixed it for me:
$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "latam"
Option "XkbModel" "pc105"
Option "AutoRepeat" "250 30"
EndSection
Issue
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.
Steps to reproduce
Expected behaviour
I expected the delay before repeat to track the settings when USB cable plugged in.
Other information
I've tried this on 2 different machines, (both running Mint 21); and I even tried it using the Live USB Image of Mint 21. I was able to reproduce it under all circumstances. Oddly, this only impacts USB keyboards. When I use a PS2 keyboard, the settings are always applied.
Syslog
I captured this during the pull and then plug of the keyboard.