1. apt purge ir-keytable lirc
2. 1) nano /etc/apt/sources.list
2) append 'deb http://ca.archive.ubuntu.com/ubuntu/ xenial universe'
3. apt update
4. apt install lirc/xenial
5. apt-mark hold lirc
6. 1) nano /etc/apt/sources.list
2) remove 'deb http://ca.archive.ubuntu.com/ubuntu/ xenial universe'
7. apt update
8. 1) vi /etc/serial.conf
2) /dev/ttyS0 uart none
9. edit /etc/lirc/hardware.conf
like this:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Custom"
REMOTE_MODULES=""
REMOTE_DRIVER=""
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="Custom"
TRANSMITTER_MODULES="lirc_dev ir_lirc_codec serial_ir" # chage 'lirc_serial' to 'serial_ir'
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE="/dev/lirc0"
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally. Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
----------------------
my system status
lsmod | grep lirc
ir_lirc_codec 16384 0
lirc_dev 16384 2 ir_lirc_codec
rc_core 36864 14 ir_sanyo_decoder,ir_rc6_decoder,ir_nec_decoder,ir_mce_kbd_decoder,ir_xmp_decoder,ir_sony_decoder,rc_rc6_mce,ir_lirc_codec,ir_sharp_decoder,lirc_dev,ir_jvc_decoder,serial_ir,ir_rc5_decoder
dmesg | grep lirc
[ 3602.237308] lirc_dev: IR Remote Control driver registered, major 243
[ 3851.644751] lirc lirc0: lirc_dev: driver ir-lirc-codec (serial_ir) registered at minor = 0
dmesg | grep serial
[ 35.696068] serial_ir serial_ir.0: auto-detected active low receiver
[ 36.184151] rc rc0: Serial IR type home-brew as /devices/platform/serial_ir.0/rc/rc0
[ 36.184252] input: Serial IR type home-brew as /devices/platform/serial_ir.0/rc/rc0/input11
[ 36.184632] lirc lirc0: lirc_dev: driver ir-lirc-codec (serial_ir) registered at minor = 0
dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 2.020170] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
46 | Adios! Amigo! Bonjour enchate! [1] | 아빠 | 2019.09.20 | 25161 |
45 | 네트워크 기능이 없는 프린터 raspberry pi + cups + xinetd를 이용하여 9100 포트 생성하기 | 아빠 | 2021.04.22 | 20628 |
44 | 세탁기 소스 | 아빠 | 2019.11.27 | 16802 |
43 | Counter UP program(Arduino) | 아빠 | 2018.07.23 | 13477 |
42 | kubuntu 18.04 lirc serial_ir configure [2] | 아빠 | 2018.11.06 | 3829 |
» | kubuntu 18.04 lirc tric | 아빠 | 2018.10.18 | 1969 |
40 | 목사님 강대상 마이크 연장 스탠드 자작 | 아빠 | 2018.11.12 | 1871 |
39 | 교회에 중고등부실, 청년부실에 앰프 스피커 기증 | 아빠 | 2018.03.11 | 1871 |
38 | Amoonsky - LedVideo Processor. | 아빠 | 2018.11.12 | 1705 |
37 | 포르테 네비 먹통 되면... | 씬영! | 2017.08.10 | 1701 |
36 | 사외이사 사직 [2] | 아빠 | 2019.01.22 | 1687 |
35 | seagate 1.5T DIE | 아빠 | 2018.12.20 | 1659 |
34 | 싱크대 조명 | 아빠 | 2019.08.28 | 1635 |
33 | 약 3일동안의 미세먼지 | 아빠 | 2019.07.15 | 1627 |
32 | 아두이노 Scroll LED BAR 만들기 [1] | 아빠 | 2018.07.11 | 1615 |
31 | 사랑하는 아들에게^^ | 할머니 | 2019.05.07 | 1605 |
30 | 교회에서 | 아빠 | 2019.06.16 | 1585 |
29 | 아빠 | 아빠 | 2017.11.29 | 1559 |
28 | 항상 가장으로서 수고가 많은 아들에게 | 할머니 | 2018.09.15 | 1536 |
27 | (MCU)인터넷 에서 재미 있는것을 배웠다. | 아빠 | 2018.03.29 | 1527 |