Conversation
delay and repeat were swapped
|
Hi. Could you please elaborate a bit why this change is necessary? |
|
Hi sezanzeb, if I run the following commands in python as root import evdev the output is repeat 250, delay 33 With evtest I get the correct data: Key repeat handling: I need to know the real values to fix a keyboard problem with my Thinkpad E15 Gen 3 (other Thinkpads are effected as well). On that keyboard there is a second backspace key which sends scancodes for key down and key hold but none for key up. Thus this key behaves sticky in gnome. |
|
Thanks. I can confirm the issue. Starts repeating after ~250ms, every ~33ms, while it stores them in reverse:
|
|
No, wait. So if someone had If they did If someone knew that it was reverse, they would have done So I think this is fine. I'll look at this again tomorrow with a clear head. |
|
Or am I missing something? I just need to take people with legacy code into consideration before merging things. |
|
(I'll remove python 3.7 from the ci soon, has reached EOL https://devguide.python.org/versions/) |
|
I was confused about the different naming period (evtest) vs repeat (python-evdev). A repeat rate of 33 per second would mean a period 1s / 33 = 0.03030... s = 30,30 ... ms which is quit close to 33 ms. In the source of truth (the kernel headers, https://github.com/torvalds/linux/blob/master/include/uapi/linux/kd.h) I found this: struct kbd_repeat { So the naming and the documentation should be updated as well. |
|
Yes, I'm fine with just merging the first commit. |
|
No problem. You could try: git clone https://github.com/dani-hs/python-evdev.git
cd python-evdev
git checkout patch-1
git reset --hard f8ee702a265e2141ed6827c6a02b7a130c2e3d9c
git push --forceI made a local copy of your branch already, so there isn't really anything you could do wrong. |
|
Thanks a lot. It worked. |
|
Thank you, too! |
delay and repeat were swapped