Open Sjoerd82 opened 6 years ago
Sorry for the delay looking into this issue, I was without a Linux machine for a while.
I think the problem is that your system doesn't have the uinput module. keyboard
tries to open the file /dev/uinput expecting to create a new device, but ends up just creating a regular file at that location. This can be seen by the mode of the file, -rw-r--r--
, instead of crw-------
, where c
means "character special file".
uinput is used to ensure we can always send any keys without depending on physical keyboard limitations, or even the presence of a physical keyboard. If your system has a plugged in keyboard we can try removing the dependency on uinput; if it doesn't have either uinput or a plugged in keyboard, I'm out of ideas.
Additionally, I'll add a check to ensure uinput exists before trying to create the file.
Missing uinput shouldn't error out anymore. Please give the master branch a try and tell me if that fixes your problem.
I'll retest soon, I'll let you know.
I have the same error on the master branch.
Edit: Enabling uinput in the kernel fixes everything.
Running the Example from the Readme.md, I am greeted with:
My /dev/uinput:
My /dev/input
by-id:
by-path:
I'm running as root. Distribution is Buildroot. Perhaps I'm missing libs? But I have the kbd libs.