# Customized setings for lirc daemon /etc/sysconfig/lircd

# The hardware driver to use, run lircd --driver=? for a list

DRIVER=default

# Hardware driver module to load
HWMOD=lirc_gpio

# The device node that communicates with the IR device.
# if you are using lirc_serial, set DEVICE to /dev/ttyS[0-9]
# where 0-9 is the serial port your IR receiver is plugged

# with devfs enabled
DEVICE=/dev/lirc/0
#DEVICE=/dev/lirc/serial

# without devfs
#DEVICE=/dev/lirc

# Serial port for the receiver (for serial driver)
# COM1 (/dev/ttyS0)
#COM_PORT=/dev/ttyS0
#DRIVER_OPTS="irq=4 io=0x3f8"

# COM2 (/dev/ttyS1)
#COM_PORT=/dev/ttyS1
#DRIVER_OPTS="irq=3 io=0x2f8"

# COM3 (/dev/ttyS2)
#COM_PORT=/dev/ttyS2
#DRIVER_OPTS="irq=4 io=0x3e8

# COM4 (/dev/ttyS3)
#COM_PORT=/dev/ttyS3
#DRIVER_OPTS="irq=3 io=0x2e8"


# /etc/lircd.conf
# this config file was automatically generated
# using lirc-0.6.1 on Tue Apr 25 14:31:21 2000
#
# contributed by Christoph Bartelmus <lirc@bartelmus.de>
#
# brand: AVerMedia
# model: ?
# supported devices: TVCapture98 card
#
# This config file does work with both homebrew receivers and
# original AVerMedia TV cards !!!
#

begin remote

name AVerMedia
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9078 4437
one 615 1631
zero 615 515
ptrail 620
repeat 9080 2189
pre_data_bits 16
pre_data 0x40BF
gap 108056
repeat_bit 0

begin codes
POWER 0x00000000000000FF
TV/FM 0x000000000000807F
CD 0x00000000000040BF
TELETEXT 0x000000000000C03F
VIDEO 0x00000000000020DF
1 0x000000000000A05F
2 0x000000000000609F
3 0x000000000000E01F
AUDIO 0x00000000000010EF
4 0x000000000000906F
5 0x00000000000050AF
6 0x000000000000D02F
FULLSCREEN 0x00000000000030CF
7 0x000000000000B04F
8 0x000000000000708F
9 0x000000000000F00F

PREVIEW 0x00000000000008F7
0 0x0000000000008877
DISPLAY 0x00000000000048B7
LOOP 0x000000000000C837
MUTE 0x00000000000028D7
AUTOSCAN 0x000000000000A857
FREEZE 0x0000000000006897
CAPTURE 0x000000000000E817
PLAY 0x00000000000018E7
RECORD 0x0000000000009867
PAUSE 0x00000000000058A7
STOP 0x000000000000D827
YELLOW 0x00000000000038C7
RED 0x000000000000B847
VOL_DOWN 0x0000000000007887
VOL_UP 0x000000000000F807
end codes

end remote

begin remote

name AVerMedia_ext
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9078 4437
one 615 1631
zero 615 515
ptrail 620
repeat 9080 2189
pre_data_bits 16
pre_data 0xC03F
gap 108056
repeat_bit 0

begin codes
BLUE 0x00000000000000FF
GREEN 0x000000000000807F
CH_DOWN 0x00000000000040BF
CH_UP 0x000000000000C03F
end codes

end remote


# lircmd config file /etc/lircmd.conf
#
PROTOCOL IntelliMouse

# ACCELERATOR start max multiplier

ACCELERATOR 2 30 5

ACTIVATE * PLAY
#TOGGLE_ACTIVATE * Source

MOVE_N * 2
MOVE_NE * 3
MOVE_E * 6
MOVE_SE * 9
MOVE_S * 8
MOVE_SW * 7
MOVE_W * 4
MOVE_NW * 1
MOVE_IN * CH_UP
MOVE_OUT * CH_DOWN

BUTTON1_TOGGLE * 5
BUTTON1_TOGGLE * Mute
BUTTON2_TOGGLE * Capture
BUTTON3_TOGGLE * Freeze

BUTTON1_CLICK * FullScreen
BUTTON2_CLICK * TV
BUTTON3_CLICK * Video

# BUTTONx_CLICK, BUTTONx_UP, BUTTONx_DOWN are also possible