AW: [mythtv-users] Nova-T PCI Remote Receiver - Key Repeat Rate
toofast
Martin Bene
martin.bene at icomedias.com
Thu Jul 28 07:57:47 EDT 2005
> Actually I'm not using lirc. The cx88-dvb driver just sticks
> remote-control keypresses into the regular keyboard buffer, using the
> /dev/input/event2 device. However your reply got me thinking and
> researching, and it looks like I can run lirc on the back of the
> event2 device. Not sure if it will allow me to control the repeat
> rate, but it may. I'll give it a try tonight.
>
> Is anyone else using lirc like this?
Slightly different hardware, but yes.
I'm using gentoo with a Hauppauge Nova-S with remote controll, keys end
up in /dev/input
First, I've got a somewhat tricky /etc/conf.d/lirc that figures out
which /dev/input file is associated with the remote control:
# Options to pass to the lircd process
if=`cat /proc/bus/input/devices | grep -A 2 "DVB on-card IR receiver" |
grep Handlers | cut -d" " -f 3`
LIRCD_OPTS="-d /dev/input/$if"
This is only needed if you keep adding/removing USB mice or keyboards
like I do :-)
Next, the /etc/lircd.conf file:
#
# lircd.conf (VDR, Hauppauge WinTV Nexus Rev 2.1)
#
# by Martin Bene
#
begin remote
name nexus-event
bits 32
begin codes
POWER 0x80010074
GO 0x80010162
1 0x80010002
2 0x80010003
3 0x80010004
4 0x80010005
5 0x80010006
6 0x80010007
7 0x80010008
8 0x80010009
9 0x8001000a
BACKEXIT 0x800100ae
0 0x8001000b
MENU 0x8001008b
RED 0x8001018e
GREEN 0x8001018f
YELLOW 0x80010190
BLUE 0x80010191
UP 0x80010067
DOWN 0x8001006c
LEFT 0x80010069
RIGHT 0x8001006a
OK 0x80010160
MUTE 0x80010071
_BLANK 0x80010166
FULL 0x8001016d
REW 0x800100a8
PLAY 0x800100cf
FWD 0x800100d0
REC 0x800100a7
STOP 0x80010080
PAUSE 0x80010077
REPLAY 0x8001019c
SKIP 0x80010197
end codes
end remote
Take especial note of the "bits 32" line - took me quite some time to
realize this was necessary to get repeat detection to work when using
the event interface. I'm running lircd 0.7.0; earlier versions don't
handel repeat detection on event interface.
Finally, there's a ~mythtv/.mythtv/lircrc file to configure the key
codes recieved by mythtv:
# lircrc.example.HauppaugeGrey-nativelirc
# 2003-09-17, Robert Kulagowski
# mailto:rkulagow at rocketmail.com
# Save this file in ~/.mythtv/lircrc
begin
prog = mythtv
button = POWER
config = Esc
end
begin
prog = mythtv
button = GO
# Swap the PiP windows
config = N
end
begin
prog = mythtv
button = 1
config = 1
repeat = 100
end
begin
prog = mythtv
button = 2
config = 2
end
begin
prog = mythtv
button = 3
config = 3
end
begin
prog = mythtv
button = 4
config = 4
end
begin
prog = mythtv
button = 5
config = 5
end
begin
prog = mythtv
button = 6
config = 6
end
begin
prog = mythtv
button = 7
config = 7
end
begin
prog = mythtv
button = 8
config = 8
end
begin
prog = mythtv
button = 9
config = 9
end
begin
prog = mythtv
button = BACKEXIT
config = Esc
end
begin
prog = mythtv
button = 0
config = 0
end
begin
prog = mythtv
button = MENU
config = M
end
# Below are keys used with the Hauppauge Grey remote
begin
prog = mythtv
# This is the Red key
# We'll use it for "Delete"
button = RED
config = D
end
begin
prog = mythtv
# This is the Green key
# We'll use it for "Information"
button = GREEN
config = I
end
# 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.
begin
prog = mythtv
# This is the Yellow key
# Use it as a volume key
button = YELLOW
repeat = 3
config = F10
end
begin
prog = mythtv
# This is the Blue key
# Use it as a volume key
button = BLUE
repeat = 3
config = F11
end
begin
prog = mythtv
button = UP
# This is the "up" on the central diamond
repeat = 3
config = Up
end
begin
prog = mythtv
button = DOWN
# This is the "down" on the central diamond
repeat = 3
config = Down
end
begin
prog = mythtv
button = LEFT
# This is the "left" on the central diamond
repeat = 3
config = Left
end
begin
prog = mythtv
button = RIGHT
# This is the "right" on the central diamond
repeat = 3
config = Right
end
begin
prog = mythtv
# Middle button on the diamond
button = OK
config = Return
end
begin
prog = mythtv
button = MUTE
config = F9
end
begin
prog = mythtv
# Change focus for PiP (to change channel in the other window)
button = _BLANK
config = B
end
begin
prog = mythtv
# Toggle PiP on/off
button = FULL
config = V
end
begin
prog = mythtv
button = REW
config = PgUp
end
begin
prog = mythtv
button = PLAY
config = P
end
begin
prog = mythtv
button = FWD
config = PgDown
end
begin
prog = mythtv
button = REC
config = R
end
begin
prog = mythtv
# Teletext
button = STOP
config = T
end
begin
prog = mythtv
button = PAUSE
config = P
end
begin
prog = mythtv
button = REPLAY
# Use for backwards commercial skip
config = Q
end
begin
prog = mythtv
button = SKIP
# Use for forward commercial skip
config = Z
End
Hope this helps,
Martin
More information about the mythtv-users
mailing list