Saturday, April 21, 2007

Dvico Remote with Knoppmyth R5E50

Set up latest (0.8.1 at the moment) lirc:
Download, decompress it
./setup
Choose USB->Dvico
Exit and run configure
make
make install
Make lirc run at boot
echo "/usr/sbin/lircd --driver=dvico --device=/dev/usb/hiddev0" > /etc/rc5.d/S20

I put this in my ~mythtv/.mythtv/lircrc


# lircrc.buzz.dvico-MCE-irxevent
# 2006-01-25, David Bussenschutt
# mailto:buzz at oska.com
# Save this file in ~/.lircrc
# 'man irxevent' for more info on format
# set the startup mode to nothing except jump to the dvico mode:
#
begin
flags = startup_mode
mode = dvico
end
#
#start dvico mode
begin dvico
begin
button = ok
prog = irxevent
# Middle button = on the diamond
config = Key Return CurrentWindow
end
begin
button = up
prog = irxevent
# This is the "up" on the central diamond
repeat = 3
config = Key Up CurrentWindow
end
begin
button = down
prog = irxevent
# This is the "down" on the central diamond
repeat = 3
config = Key Down CurrentWindow
end
begin
button = left
prog = irxevent
# This is the "left" on the central diamond
repeat = 3
config = Key Left CurrentWindow
end
begin
button = right
prog = irxevent
# This is the "right" on the central diamond
repeat = 3
config = Key Right CurrentWindow
end
begin
# magic button = to restart myth frontend...
button = setup
prog = irexec
repeat = 0
config = "pkill -9 mythfrontend ; sleep 2 ; mythfrontend"
end
begin
button = tv_onoff
prog = irxevent
#config = unused
end
begin
button = guide
prog = irxevent
# EPG:
config = Key M CurrentWindow
end
begin
button = dtv
prog = irxevent
#config = unused
end
begin
button = mp3
prog = irxevent
#config = unused
end
begin
button = dvd
prog = irxevent
#config = unused
end
begin
button = cpf
prog = irxevent
#config = unused
end
begin
button = back
prog = irxevent
config = Key Escape CurrentWindow
end
begin
button = more
prog = irxevent
# We'll use it for "Information"
config = Key I CurrentWindow
end
begin
button = dvd_menu
prog = irxevent
config = Key M CurrentWindow
end
begin
button = alt_tab
prog = irxevent
config = Key Alt-Tab CurrentWindow
end
begin
button = replay
prog = irxevent
# Use for backwards commercial skip
config = Key Q CurrentWindow
end
begin
button = skip
prog = irxevent
# Use for forward commercial skip
config = Key Z CurrentWindow
end
begin
button = start
prog = irxevent
#config = unused
end
begin
button = vol_up
prog = irxevent
# Use it as a volume key
repeat = 3
config = Key F10 CurrentWindow
end
begin
button = vol_down
prog = irxevent
# Use it as a volume key
repeat = 3
config = Key F11 CurrentWindow
end
begin
button = ch_up
prog = irxevent
# This is the "up" on the channel changer oval
repeat = 3
config = Key Up CurrentWindow
end
begin
button = ch_down
prog = irxevent
# This is the "down" on the channel changer oval
repeat = 3
config = Key Down CurrentWindow
end
begin
button = photo
prog = irxevent
config = Key P CurrentWindow
end
begin
button = live
prog = irxevent
#config = unused - set to livetv jump point?
end
begin
button = folder
prog = irxevent
#config = unused
end
begin
button = 1
prog = irxevent
config = Key 1 CurrentWindow
end
begin
button = 2
prog = irxevent
config = Key 2 CurrentWindow
end
begin
button = 3
prog = irxevent
config = Key 3 CurrentWindow
end
begin
button = 4
prog = irxevent
config = Key 4 CurrentWindow
end
begin
button = 5
prog = irxevent
config = Key 5 CurrentWindow
end
begin
button = 6
prog = irxevent
config = Key 6 CurrentWindow
end
begin
button = 7
prog = irxevent
config = Key 7 CurrentWindow
end
begin
button = 8
prog = irxevent
config = Key 8 CurrentWindow
end
begin
button = 9
prog = irxevent
config = Key 9 CurrentWindow
end
begin
button = 0
prog = irxevent
config = Key 0 CurrentWindow
end
begin
button = ratio
prog = irxevent
config = Key W CurrentWindow
end
begin
button = zoom
prog = irxevent
# Swap the PiP windows
config = Key N CurrentWindow
end
begin
button = rew
prog = irxevent
config = Key Left CurrentWindow
end
begin
button = playpause
prog = irxevent
config = Key P CurrentWindow
end
begin
button = ff
prog = irxevent
config = Key Right CurrentWindow
end
begin
button = mute
prog = irxevent
config = Key F9 CurrentWindow
end
begin
button = stop
prog = irxevent
# We'll use it for "Delete"
config = Key D CurrentWindow
end
begin
button = rec
prog = irxevent
config = Key R CurrentWindow
end
begin
button = power_onoff
prog = irxevent
#config = unused
end
end dvico
#
# Note the "repeat =" strings in the volume and channel.
# This means that if you hold down the key, every nth instance will be
# passed. This depends on your system, so you may want to increase or
# decrease this and see what happens. repeat = 1 is probably too
# fast.


Reboot and go :)

No comments: