OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.6k stars 887 forks source link

ir-keytable not able to change protocol #3137

Closed trsqr closed 9 years ago

trsqr commented 10 years ago

Running OE 4.0 Beta 6 on Generic x64.

Whenever I try to change the protocol of the IR receiver using the ir-keytable, I get an error ")'/protocol: No such file or directory". This does not happen if device is not specified (but then only the protocol of the first IR device is changed).

ir-keytable -d /dev/input/event8 -c -p RC6

Old keytable cleared )'/protocol: No such file or directory Couldn't change the IR protocols

Happens with all my IR receivers and consistently. Googling about the issue found forum posts stating that this is an ir-keytable bug, but they were ancient (2011): http://sourceforge.net/p/lirc/mailman/message/27543780/ .

More debug from my system: http://sprunge.us/Fhea dmesg: http://sprunge.us/eaid

jenkins101 commented 9 years ago

Hi!

Is this still an issue?

trsqr commented 9 years ago

Just tried it out on 4.0.7 and it still doesn't look too good:

MediaCenter:~ # ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event8) with: Driver nuvoton-cir, table rc-rc6-mce Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other Enabled protocols: RC-6 Repeat delay = 500 ms, repeat period = 250 ms Killed MediaCenter:~ # ir-keytable -c -p RC6 Old keytable cleared Protocols changed to RC-6 MediaCenter:~ # ir-keytable -c -p RC5 Old keytable cleared Protocols changed to RC-5 MediaCenter:~ # ir-keytable -c -p RC5 -d /dev/input/event8 Old keytable cleared Segmentation fault

stefansaraev commented 9 years ago

it's a bug in ir-keytable. do not use --device= run it like

ir-keytable -c -s rc0 -p RC5

EDIT: segfault is still there in v4l-utils-1.2.1 so not worth bumping it.just dont use -d

trsqr commented 9 years ago

My issue is with multiple devices. I can make sure that the /dev/input/eventX numbering stays the same using udev, but the /sys/class/rc/rc0 is not necessarily the same device after reboot. I have a workaround in place, but this would make my life easier. Seeing that the issue is there in v4l-utils, am not sure what could be done though.

trsqr commented 9 years ago

Did discuss this with Mauro, would need additional development of ir-keytable anyway to achieve what I want to do. Let's close it.