creative

kubuntu 18.04 lirc tric

아빠 2018.10.18 17:00 조회 수 : 1940

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

 
 

menu