Petter Holt Juliussen • Mail | GitHub | Letterboxd

for later reference.

LIRC

2019-04-04

Service

sudo service lirc [start|restart|stop]

Testing

irw

Recording

irsend SEND_ONCE RCVR VIDEO1
irsend --count=1 SEND_ONCE RCVR VIDEO1

Sending

irsend SEND_ONCE RCVR VIDEO1
irsend --count=1 SEND_ONCE RCVR VIDEO1

Hardware configuration

/etc/lirc/hardware.conf

# Arguments which will be used when launching lircd
LIRCD_ARGS="-d /dev/ttyUSB0"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="uirt2_raw"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE=""
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

Remote configuration

/etc/lirc/lircd.conf

Receiver

begin remote

  name  RCVR
  bits           15
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2410   501
  one          1201   500
  zero          607   500
  gap          42830
  min_repeat      2
  #  suppress_repeat 2
  #  uncomment to suppress unwanted repeats
  toggle_bit_mask 0x0

      begin codes
          VIDEO1                   0x220C
          VIDEO2                   0x3C0C
          VIDEO3                   0x210C
          DVD                      0x5F0C
          TVSAT                    0x2B0C
          MDTAPE                   0x4B0C
          SACD                     0x520C
          TUNER                    0x420C
          PHONO                    0x020C
          AUX                      0x5C0C
          MULTICH                  0x270C
          SOURCE                   0x6F9E
          2CH                      0x410D
          AFD                      0x210D
          MOVIE                    0x610D
          MUSIC                    0x490D
          TESTONE                  0x290D
          DIRECT                   0x490C
          POWER                    0x540C
          VOLUP                    0x240C
          VOLDOWN                  0x640C
          MUTE                     0x140C
      end codes
end remote

NUC (N2QAJB)

begin remote

  name            N2QAJB
  bits            16
  flags           SPACE_ENC
  eps             30
  aeps            100

  header          3498  1549
  one             499  1150
  zero            499   300
  ptrail          499
  pre_data_bits   32
  pre_data        0x40040D00
  gap             72100
  toggle_bit_mask 0x0
  frequency       38000

      begin codes
          KEY_POWER               0xBCB1
          KEY_PROG1               0xA6AB    # AV ENHANCER
          KEY_SELECT              0x6D60    # FL SELECT
          KEY_EJECTCD             0x808D    # OPEN / CLOSE
          KEY_PROG2               0x7974    # ADVANCED SURROUND
          KEY_MODE                0x030E    # PICTURE MODE
          KEY_PROG3               0x313C    # REPEAT

          KEY_1                   0x0805
          KEY_2                   0x8885
          KEY_3                   0x4845
          KEY_4                   0xC8C5
          KEY_5                   0x2825
          KEY_6                   0xA8A5
          KEY_7                   0x6865
          KEY_8                   0xE8E5
          KEY_9                   0x1815
          KEY_0                   0x9895
          KEY_NUMLOCK             0x919C    # ABOVE 10
          KEY_CANCEL              0xC1CC    # CANCEL

          KEY_PAGEUP              0xC6CB    # PLAY SPEED UP
          KEY_PAGEDOWN            0x262B    # PLAY SPEED DOWN
          KEY_MEMO                0x626F    # POSITION MEMORY
          KEY_REPLY               0xD1DC    # QUICK REPLAY

          KEY_NEXT                0x525F   # SKIP FORWARD
          KEY_PREVIOUS            0x929F   # SKIP BACKWARD
          KEY_FORWARD             0xA0AD   # SLOW/SEARCH FORWARD
          KEY_REWIND              0x202D   # SLOW/SEARCH BACKWARD

          KEY_STOP                0x000D
          KEY_PAUSE               0x606D
          KEY_PLAY                0x505D

          KEY_UP                  0xA1AC
          KEY_RIGHT               0x111C
          KEY_DOWN                0x616C
          KEY_LEFT                0xE1EC
          KEY_ENTER               0x414C

          KEY_MOVE                0xD9D4    # DIRECT NAVIGATOR / TOP MENU
          KEY_MENU                0x010C    # PLAYLIST / MENU
          KEY_VIDEO               0x4944    # DISPLAY
          KEY_BACK                0x818C    # RETURN

          KEY_SUBTITLE            0x8984    # SUBTITLE
          KEY_AUDIO               0xCCC1    # AUDIO
          KEY_ANGLE               0x0904    # ANGLE / PAGE
          KEY_SETUP               0x2924    # SETUP
          KEY_PLAYER              0xB1BC    # PLAY MODE
          KEY_SLEEP               0xD7DA    # SLEEP
          KEY_ZOOM                0x838E    # ZOOM
          KEY_PROG4               0x070A    # GROUP
      end codes

end remote