Mailinglist Archive: opensuse (878 mails)

< Previous Next >
[SOLVED] Re: [opensuse] Can't exclude/prevent udev/xorg auto-recognition of an IR/Remote as a KEYBOARD device; bug or a config issue?
After a bit of digging in/around kernel, noting,

dmesg | grep -i stream
...
[ 16.510240] IR RC5 (streamzap) protocol handler
initialized
...

it's the RC5 protocol that's the culprit. loaded by,

ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event8) with:
Driver streamzap, table rc-streamzap
Supported protocols: NEC RC-5 RC-6 JVC SONY
SANYO LIRC RC-5-SZ other
Enabled protocols: NEC RC-5 RC-6 JVC SONY SANYO
LIRC RC-5-SZ other
Repeat delay = 500 ms, repeat period = 125 ms

a udev override does the trick,

cat /etc/udev/rules.d/70-infrared.rules
ACTION=="add", SUBSYSTEM=="rc",
RUN+="/usr/bin/ir-keytable --clear"
ACTION=="add", SUBSYSTEM=="rc",
RUN+="/usr/bin/ir-keytable --protocol=LIRC"
reboot
...
ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event11) with:
Driver streamzap, table rc-streamzap
Supported protocols: NEC RC-5 RC-6 JVC SONY
SANYO LIRC RC-5-SZ other
Enabled protocols: LIRC
Repeat delay = 500 ms, repeat period = 125 ms

There are prehaps other ways to achieve this, but, testing, there's no
longer any capture/response -- namely system shutdown! -- on PowerOff
button press.

Good enough.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >