config.txt
dtoverlay=gpio-ir |
콘솔에서 테스트
# systemctl stop kodi # systemctl stop eventlircd # ir-keytable -t # irw |
[링크 : https://wiki.libreelec.tv/infrared_remotes]
dmesg 내용 lircd 이런 문구는 빠지고 단지 RC라던가 gpio_ir 이런식으로 문구가 바뀌어있다.
[ 4.189143] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000 [ 4.204139] Registered IR keymap rc-rc6-mce [ 4.204602] input: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0/input0 [ 4.205457] rc rc0: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0 [ 4.249361] IR RC6 protocol handler initialized [ 4.275615] Console: switching to colour dummy device 80x30 [ 4.340170] IR NEC protocol handler initialized [ 4.626084] usbcore: registered new interface driver brcmfmac [ 4.790759] uart-pl011 3f201000.serial: no DMA platform data [ 4.818228] brcmfmac: Firmware version = wl0: Aug 29 2016 20:48:16 version 7.45.41.26 (r640327) FWID 01-4527cfab [ 4.863885] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup |
특이하게도(?) 하라는대로 안되서 일단 삐딱선을 타는중
irw로는 eventlircd 에서 잡고 있어서 읽히지 않고 서비스를 죽이면 irw로 읽지 못한다 -_-
그래서 ir-keytable로 읽히는걸 확인
OpenELEC:~ # irw ^C OpenELEC:~ # systemctl stop eventlircd OpenELEC:~ # systemctl stop kodi OpenELEC:~ # irw connect: No such file or directory OpenELEC:~ # ir-keytable Found /sys/class/rc/rc0/ (/dev/input/event0) with: Driver gpio-rc-recv, table rc-rc6-mce Supported protocols: unknown other rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp Enabled protocols: nec rc-6 Name: gpio_ir_recv bus: 25, vendor/product: 0001:0001, version: 0x0100 Repeat delay = 500 ms, repeat period = 125 ms OpenELEC:~ # ir-keytable -t Testing events. Please, press CTRL-C to abort. 1537273010.205799: event type EV_MSC(0x04): scancode = 0x5e 1537273010.205799: event type EV_SYN(0x00). 1537273010.671725: event type EV_MSC(0x04): scancode = 0x5e 1537273010.671725: event type EV_SYN(0x00). 1537273011.578027: event type EV_MSC(0x04): scancode = 0x58 1537273011.578027: event type EV_SYN(0x00). 1537273012.054831: event type EV_MSC(0x04): scancode = 0x04 1537273012.054831: event type EV_SYN(0x00). 1537273012.423875: event type EV_MSC(0x04): scancode = 0x06 1537273012.423875: event type EV_SYN(0x00). 1537273012.979334: event type EV_MSC(0x04): scancode = 0x59 1537273012.979334: event type EV_SYN(0x00). 1537273014.182888: event type EV_MSC(0x04): scancode = 0x44 1537273014.182888: event type EV_SYN(0x00). 1537273014.540484: event type EV_MSC(0x04): scancode = 0x45 1537273014.540484: event type EV_SYN(0x00). 1537273014.865167: event type EV_MSC(0x04): scancode = 0x48 1537273014.865167: event type EV_SYN(0x00). |
음.. 이 변화가 커널 영향인가 아니면.. 라즈베리 배포판 시기 문제인가..
# uname -a Linux OpenELEC 4.9.25 #1 SMP Sat Apr 29 05:11:28 CEST 2017 armv7l GNU/Linux |
'embeded > raspberry pi' 카테고리의 다른 글
rpi face detection & recognition (4) | 2018.11.16 |
---|---|
openELEC(kodi) 미스테리.. (0) | 2018.09.22 |
라즈베리 파이 3 + openELEC (0) | 2018.09.16 |
라즈베리 파이 3B 소비전류 (0) | 2018.09.16 |
라즈베리 파이 3 - 블루투스 / wifi (2) | 2018.09.15 |