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 | 포르테 네비 먹통 되면... | 씬영! | 2017.08.10 | 1701 |
45 | 아빠 | 아빠 | 2017.11.29 | 1559 |
44 | 교회에 중고등부실, 청년부실에 앰프 스피커 기증 | 아빠 | 2018.03.11 | 1871 |
43 | (MCU)인터넷 에서 재미 있는것을 배웠다. | 아빠 | 2018.03.29 | 1527 |
42 | 아빠는 이런거 공부한다~ | 아빠 | 2018.05.03 | 1428 |
41 | 교회 유치부실 스크린 위치 이동 | 아빠 | 2018.05.03 | 1426 |
40 | 울림교회(2018.5.26) | 아빠 | 2018.05.26 | 1395 |
39 | rpi rgb matrix | 아빠 | 2018.06.08 | 1429 |
38 | 드디어! LED SCREEN에 화면이 들어 온다 | 아빠 | 2018.06.28 | 1370 |
37 | 울림교회 내역 | 아빠 | 2018.07.10 | 1341 |
36 | 라즈베리파이로 온습도계 사용하기 | 아빠 | 2018.07.11 | 1418 |
35 | 아두이노 Scroll LED BAR 만들기 [1] | 아빠 | 2018.07.11 | 1615 |
34 | Counter UP program(Arduino) | 아빠 | 2018.07.23 | 13484 |
33 | 2018.8.1~8.2 만리포 휴가 | 아빠 | 2018.08.03 | 1446 |
32 | PC의 DNS 주소 갱신 | 아빠 | 2018.08.05 | 1436 |
31 | freq | 아빠 | 2018.08.18 | 1453 |
30 | 이 산을... | 아빠 | 2018.09.02 | 1468 |
29 | 항상 가장으로서 수고가 많은 아들에게 | 할머니 | 2018.09.15 | 1536 |
» | kubuntu 18.04 lirc tric | 아빠 | 2018.10.18 | 1969 |
27 | kubuntu 18.04 lirc serial_ir configure [2] | 아빠 | 2018.11.06 | 3830 |