Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce key repeat by kernel #192

Open
mikethebos opened this issue Jun 3, 2023 · 2 comments
Open

Enforce key repeat by kernel #192

mikethebos opened this issue Jun 3, 2023 · 2 comments

Comments

@mikethebos
Copy link

mikethebos commented Jun 3, 2023

As seen in evsieve, it is possible to ask the Linux kernel to insert repeat (EV_KEY, value 2) events automatically for a UInput device:

If repeat=enable is set on an --output device, then all repeat events that reach this --output argument will be dropped, but the kernel will be asked to automatically generate repeat events for this device.

How can I use python-evdev to request this from the kernel, preferably with the rate and delay of some other InputDevice?

@sezanzeb
Copy link
Collaborator

sezanzeb commented Jun 4, 2023

I don't think python-evdev can do it

@mikethebos
Copy link
Author

Thanks. Do any alternatives come to mind (except writing these events manually)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants