-
Notifications
You must be signed in to change notification settings - Fork 112
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
Keyboard LED indicators don't work when grab device #10
Comments
Hello, I must admit I don't know how to fix this at the moment. My initial idea was to add from evdev import *
cap = {
ecodes.EV_KEY: list(ecodes.keys.keys()),
ecodes.EV_LED: list(ecodes.LED.keys())[:-2],
ecodes.EV_MSC: list(ecodes.MSC.keys())[:-2],
}
dev = InputDevice('/dev/input/event3')
ui = UInput(cap)
dev.grab()
for ev in dev.read_loop():
ui.write_event(ev) The events emitted through UInput and those that my keyboard typically emits when I'll look in to it. Thank you for reporting this. |
Thank you very much for your answer! I will be wait a solution. This is very usefull feature for the keys mapping applications. |
Thank you very much! Now it works well. |
Hi,
I have a question about your code sample from this issue:
link
This is source code:
The LED indicators don't work when device is grabbed and events are resended by
ui.write_event
function. Is it possible to fix the LEDs work?The text was updated successfully, but these errors were encountered: