-
Notifications
You must be signed in to change notification settings - Fork 68
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
uinput example doesn't work under ubuntu 14.04 #6
Comments
The error But the case where you run the example with sudo with no visible effects is more interesting. There's couple of ways to debug the issue:
|
Hi!! Thanks for your help. With the first way, I still got nothing. I've runned with sudo and root user, but still nothing shows. Using the second way, still nothing. There is no python-uinput in the list. |
I have the exact same problem, except my program is in c. I am developing a virtual keyboard program in Ubuntu 14.04, and the device just cannot get built simply because I do not have root privileges for uinput. |
@Guha01Gubin Like I explained earlier, |
Hi, I have the same problem as @LuisDiazUgena. For me it shows: Input driver version is 1.0.1 evtest: error reading: No such device What can i do to fix this? If its of any interest, I have used VNC and SSH and OS is Raspian Jessie |
I had this problem in Arch, had this exact problem with the keyboard example and solved it by adding a time.sleep(1) before sending the inputs |
@vagol942 thank you! I am under arch and I was having the same problem. Your suggestion fixed it. |
@HiggsWRX I'm glad. This is interesting, I thought it might be something related to my machine, but it seems the Device creation involves a non blocking process; thus the program continues before the input file has fully initialized. |
It worked in my machine (Fedora 25), but I first needed to load uinput module, so udev can successfully found uinput module in misc class(aka /sys/class/misc/uinput). |
hi |
This also worked for me, and I'm on a vanilla Ubuntu setup. It seems like we need a way to wait for the device to be created. Does this need to be fixed upstream in https://github.com/tuomasjjrasanen/libsuinput? |
Expanding on @hajungong007 's solution to the "Permission denied" error, here's my complete solution for Fedora 30: Create a group designated for users that can read/write to
Add users to ths new group. Start with yourself:
Permissions before:
Change group ownership and permissions on
Permissions after:
|
I had a similar problem on Arch, solved it by enabling uinput with sudo modprobe uinput
sudo python keyboard.py |
I would like to mention about two things.
should be (there is a dash missing)
After that everything works, considering The second thing is, after a reboot, permissions and group ownership on |
Hi!
I've been able to install uinput by following comments on this issue [https://github.com//issues/3] and I wanted to try the library.
After a copy&paste on a new file, I've started (or at least I think so) uinput kernel module (I've tried with modprobe uinput, modprobe -i uinput and sudo modprobe -i uinput.
When I run the file with the keyboard example a error appears:
~/Keyboard emulator/python script/$ python keyboard-emulator.py
Traceback (most recent call last):
File "keyboard-emulator.py", line 4, in
with uinput.Device([uinput.KEY_E, uinput.KEY_H,uinput.KEY_L, uinput.KEY_O]) as device:
File "/usr/local/lib/python2.7/dist-packages/uinput/init.py", line 175, in init
self.uinput_fd = _libsuinput.suinput_open()
File "/usr/local/lib/python2.7/dist-packages/uinput/__init.py", line 70, in _open_error_handler
raise OSError(code, msg)
OSError: [Errno 13] Failed to open the uinput device: Permission denied
If I use sudo, there is no error, but there is also no visible input. I think there is maybe some issue with terminal, so I've added a 5 seconds delay and moved to a text editor but still nothing.
I've tried also the mouse example, but the same errors appears.
What should I do?
Thanks!
The text was updated successfully, but these errors were encountered: