138
Part II: Advanced Hacks, Tools, and Techniques
Exhibit B: Dedicated IR Remote Control Support Files
These files can also be found at http://www.linuxprofessionalsolutions.com/pavlicek/tv.htm.
/etc/lircd.conf
# Copyright (C) 1999 Christoph Bartelmus
#
# You may only use this file if you make it available to others,
# i.e. if you send it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.6.5(any) on Tue Oct 15 02:57:40 2002
#
# contributed by
#
# brand: irr.tmp
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name PackardBell
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9007 4528
one 571 1667
zero 571 557
ptrail 541
repeat 9001 2285
pre_data_bits 16
pre_data 0x8F7
gap 107827
toggle_bit 0
begin codes
Menu 0x00000000000008F7
Mute 0x0000000000008877
Help 0x00000000000020DF
Phone 0x000000000000609F
Message 0x00000000000022DD
SR5 0x000000000000629D
CD 0x000000000000A05F
Aux1 0x000000000000E01F
Aux2 0x000000000000A25D
Aux3 0x000000000000E21D
Enter 0x000000000000708F
ChannelUp 0x000000000000B04F
ChannelDown 0x00000000000030CF
Display 0x000000000000F00F
Exhibit B
ch07_video.indd 138
1/21/2002 12:52:51 PM
139
Chapter 7, How to Build a Digital Video Recorder
VolumeUp 0x00000000000048B7
VolumeDown 0x000000000000C837
N1 0x00000000000042BD
N2 0x000000000000C23D
N3 0x000000000000E817
N4 0x00000000000002FD
N5 0x000000000000827D
N6 0x0000000000006897
N7 0x00000000000040BF
N8 0x000000000000C03F
N9 0x000000000000A857
Asterisk 0x00000000000000FF
N0 0x000000000000807F
Pound 0x00000000000028D7
MB1 0x000000000000B847
MB2 0x00000000000038C7
ArrowUp 0x000000000000906F
ArrowDown 0x00000000000050AF
ArrowLeft 0x00000000000010EF
ArrowRight 0x000000000000D02F
end codes
end remote
/etc/lircmd.conf
#
# lircmd config file
#
PROTOCOL IntelliMouse
#PROTOCOL MouseSystems
# ACCELERATOR start max multiplier
ACCELERATOR 2 30 5
#ACTIVATE * MENU
MOVE_N * N2
MOVE_NE * N3
MOVE_E * N6
MOVE_SE * N9
MOVE_S * N8
MOVE_SW * N7
MOVE_W * N4
MOVE_NW * N1
#MOVE_N * ARROW_UP
#MOVE_E * ARROW_RIGHT
#MOVE_S * ARROW_DOWN
#MOVE_W * ARROW_LEFT
#MOVE_IN * CH_UP
#MOVE_OUT * CH_DOWN
/etc/lircd.conf (continued)
Exhibit B
ch07_video.indd 139
1/21/2002 12:52:51 PM
140
Part II: Advanced Hacks, Tools, and Techniques
#BUTTON1_TOGGLE * 5
#BUTTON2_TOGGLE * 0
#BUTTON3_TOGGLE * LIST
#BUTTON1_CLICK * OK
#BUTTON1_CLICK * MUTE
#BUTTON3_CLICK * POWER
# BUTTONx_CLICK, BUTTONx_UP, BUTTONx_DOWN are also possible
MOVE_N * ArrowUp
MOVE_S * ArrowDown
MOVE_W * ArrowLeft
MOVE_E * ArrowRight
BUTTON1_CLICK * MB1
BUTTON2_CLICK * MB2
BUTTON3_CLICK * Help
/etc/lircd.conf
begin
button = Enter
prog = irxevent
config = Key Return CurrentWindow
end
begin
button = SR5
prog = irexec
config = xterm -geometry 50x20+80+40 &
end
begin
button = Aux1
prog = irexec
config = xawtv -geometry +50+70 &
# flags = once
mode = tv
end
begin
button = Aux2
prog = irexec
config = xine -f shows/*avi &
# flags = once
mode = xine
end
begin tv
begin
prog = irxevent
button = Asterisk
config = Key f xawtv
end
begin
/etc/lircmd.conf (continued)
Exhibit B
ch07_video.indd 140
1/21/2002 12:52:51 PM
141
Chapter 7, How to Build a Digital Video Recorder
prog = irxevent
button = Pound
config = Key q xawtv
end
begin
prog = irxevent
button = ChannelUp
config = Key space xawtv
end
begin
prog = irxevent
button = ChannelDown
config = Key Page_Down xawtv
end
begin
prog = irxevent
button = Menu
config = Key ctrl-z xawtv
end
begin
prog = irxevent
button = Mute
config = Key KP_Enter xawtv
end
begin
prog = irxevent
button = VolumeUp
config = Key KP_Add xawtv
end
begin
prog = irxevent
button = VolumeDown
config = Key KP_Subtract xawtv
end
begin
prog = irxevent
button = N0
config = Key KP_0 xawtv
end
begin
prog = irxevent
button = N1
config = Key KP_1 xawtv
end
begin
prog = irxevent
button = N2
config = Key KP_2 xawtv
end
begin
prog = irxevent
button = N3
config = Key KP_3 xawtv
end
/etc/lircd.conf (continued)
Exhibit B
ch07_video.indd 141
1/21/2002 12:52:51 PM
142
Part II: Advanced Hacks, Tools, and Techniques
begin
prog = irxevent
button = N4
config = Key KP_4 xawtv
end
begin
prog = irxevent
button = N5
config = Key KP_5 xawtv
end
begin
prog = irxevent
button = N6
config = Key KP_6 xawtv
end
begin
prog = irxevent
button = N7
config = Key KP_7 xawtv
end
begin
prog = irxevent
button = N8
config = Key KP_8 xawtv
end
begin
prog = irxevent
button = N9
config = Key KP_9 xawtv
end
end tv
begin xine
begin
prog = irxevent
button = Asterisk
config = Key f xine
end
begin
prog = irxevent
button = Pound
config = Key q xine
end
begin
prog = irxevent
button = Menu
config = Key g xine
end
begin
prog = irxevent
button = Display
config = Key space xine
/etc/lircd.conf (continued)
Exhibit B
ch07_video.indd 142
1/21/2002 12:52:51 PM

Get Hardware Hacking Projects for Geeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.