You are not logged in.

#1 2016-09-22 13:50:51

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

[solved] problem with uinput?

[EDIT] some days later I recompiled and suddenly it worked [/EDIT]


I installed 2 programs that should create a joystickdevice using uinput:

https://github.com/jbmccarty/ppm
https://github.com/nigelsim/ppmadapter

the first one runs (recieves input from the mic-jack) but doesn't create a joystick device
the second one doesn't run at all reports: "IOError: [Errno 22] Invalid argument"

I'm not sure if the problem is in the software or in my system, but since the first one actualy runs, but creates no device I think I should start asking here before asking the dev(s).

uinput is modprobed

user has access:

[studio@studio input]$ ls -l /dev/uinput
crw-rw---- 1 root wheel 10, 223 set 22 09:17 /dev/uinput

what is strange to me is follwing:

[studio@studio input]$ cd /dev/uinput
bash: cd: /dev/uinput: Não é um diretório

it says that /dev/uinput is not a folder. is this normal?

Last edited by capoeira (2016-09-27 02:03:07)

Offline

#2 2016-09-22 16:12:27

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [solved] problem with uinput?

/dev/uinput is not a directory but a special file for sending emulated input events to the kernel. The emulated devices should appear as /dev/input/eventX.

Offline

#3 2016-09-22 19:24:32

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] problem with uinput?

mich41 wrote:

/dev/uinput is not a directory but a special file for sending emulated input events to the kernel. The emulated devices should appear as /dev/input/eventX.

thanks,

so I looked in the folder, there are 18 event devices.
than I started the software; no new device was added

Offline

#4 2016-09-25 09:29:34

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [solved] problem with uinput?

It's been a while since I used uinput but I think if your users belongs to the wheel group or you run as root, it has no reason not to work. I'd contact the author, it's possible that something has changed in recent kernels and broke this software. "Error: invalid argument" suggests this kind of issue.

Offline

#5 2016-09-25 13:30:47

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: [solved] problem with uinput?

mich41 wrote:

It's been a while since I used uinput but I think if your users belongs to the wheel group or you run as root, it has no reason not to work. I'd contact the author, it's possible that something has changed in recent kernels and broke this software. "Error: invalid argument" suggests this kind of issue.

Thanks, I'll do that

Offline

Board footer

Powered by FluxBB