input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/input/input6
First grab the remote control config file and tack this section onto /usr/share/lirc/remotes/dvico/lircd.conf.fusionHDTV:
# Please make this file available to others
# by sending it to
#
# this config file was automatically generated
# using lirc-0.8.0(userspace) on Mon Mar 5 16:00:35 2007
#
# contributed by: Soth
#
# brand: DViCO FusionHDTV DVB-T Dual Digital
# model no. of remote control: Fusion MCE
# devices being controlled by this remote:
#
begin remote
name DViCO_Dual_Digital
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x1
gap 251756
toggle_bit 0
begin codes
#starting at the top
dtv 0x0179
mp3 0x0187
dvd 0x0185
cpf 0x016C
#outer circle clockwise from top
tvpower 0x0164
guide 0x016D
info 0x0166
alttab 0x000F
skip 0x00A3
start 0x001C
replay 0x00A5
dvdmenu 0x008B
back 0x009E
setup 0x008D
#inner circle
up 0x0067
down 0x006C
left 0x0069
right 0x006A
ok 0x0160
#volume and channel
voldn 0x0072
volup 0x0073
chup 0x0192
chdn 0x0193
#keypad
camera 0x00D4
live 0x0182
folder 0x0086
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
aspect 0x0173
0 0x000B
zoom 0x0174
#play buttons
rew 0x00A8
playpause 0x00A4
ff 0x00D0
mute 0x0071
stop 0x0080
rec 0x00A7
power 0x0074
end codes
end remote
Then in /home/user/.lirc/mythtv (where 'user' is the system user that runs the frontend) put your config for what you want each button to do in mythtv, here are some examples (the whole file is too big to include here):
beginIn my setup I have a symlink:
remote = DViCO_Dual_Digital
prog = mythtv
button = fastforward
config = >
repeat = 0
delay = 0
end
begin
remote = DViCO_Dual_Digital
prog = mythtv
button = rewind
config = <
repeat = 0
delay = 0
end
/home/user/.mythtv/lircrc -> ../.lirc/mythtvLirc-aware applications look in your ~/.lircrc, which will look something like this:
include ~/.lirc/mythtvI needed to do a fair bit of work to my ~/.lirc/mplayer, so I have included it here. A full list of mplayer commands is available here:
include ~/.lirc/mplayer
include ~/.lirc/xine
include ~/.lirc/vlc
include ~/.lirc/xmame
include ~/.lirc/xmess
include ~/.lirc/totem
include ~/.lirc/elisa
beginConfigure /etc/lirc/hardware.conf. The important parts are:
remote = DViCO_Dual_Digital
prog = mplayer
button = playpause
config = pause
repeat = 0
delay = 0
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = back
config = quit
repeat = 0
delay = 0
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = stop
config = quit
repeat = 0
delay = 0
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = ff
config = seek +30
repeat = 3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = rew
config = seek -30
repeat =3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = right
config = seek +30
repeat = 3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = left
config = seek -30
repeat =3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = up
config = speed_incr +.1
repeat = 3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = down
config = speed_incr -.1
repeat = 3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = ok
config = speed_set 1
repeat = 0
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = volup
config = audio_delay +.1
repeat = 3
end
begin
remote = DViCO_Dual_Digital
prog = mplayer
button = voldown
config = audio_delay -.1
repeat = 3
end
REMOTE="DViCO_Dual_Digital" REMOTE_MODULES="" REMOTE_DRIVER="devinput" REMOTE_DEVICE="/dev/input/by-path/pci-0000:00:1d.7-event-ir" REMOTE_LIRCD_CONF="dvico/lircd.conf.fusionHDTV" REMOTE_LIRCD_ARGS=""Restart lirc (I found you often need to restart it twice), and you should be good to go. You don't need to restart mythfrontend. The original instructions also have some good troubleshooting tips.
No comments:
Post a Comment