musv Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17022956523ec2f01a46f03.jpg)
Joined: 01 Dec 2002 Posts: 3369 Location: de
|
Posted: Mon May 28, 2007 3:29 pm Post subject: Lirc hat Wurstfinger |
|
|
Hi,
sorry erstmal für den Titel. Aber seit meiner letzten Gentoo-Neuinstallation (war schon im Februar) wollen meine Fernbedienungen nicht mehr richtig funktionieren. Die Konfiguration ist dieselbe wie schon vor ein oder 2 Jahren, als die Fernbedienung noch perfekt funktionierte.
Problembeschreibung:
In der Konsole und auch unter X arbeitet lirc mit irw perfekt. Sobald ich eine Taste drücke, wird mir genau angezeigt, was ich gedrückt hab.
ABER: Wenn ich ein Programm damit bedienen will (tvtime, mplayer, amarok), bekommt die Fernbedienung irgendwie Wurstfinger. D.h.
- es dauert ewig, bis das Programm überhaupt mal auf die Fernbedienung reagiert (bis zu 10 Sekunden)
- es scheint so, als ob gleich mehrere Tasten gedrückt wurden,
z.B. bei tvtime drücke ich auf VOL+, da schaltet tvtime plötzlich auf die 8, ein paar Sekunden gedrückt haltend später schaltet es auf die 3. Die Lautstärke erhöht sich dabei zwar auch aber nur seeeeeeehr langsam. Bei mplayer will ich die Helligkeit erhöhen (liegt bei mir auf CH+), da spult der mplayer auf einmal den Film ein Stück zurück (Taste 1 oder 3). Geb ich die lirc-commands in der Konsole ein, reagiert das Programm einwandfrei (z.B. tvtime-command left).
Ganz gleich, was ich drücke oder welche der beiden Fernbedienungen ich benutze, es werden immer mehrere Funktionen gleichzeitig ausgeführt, alles aber nur sehr langsam. Wie bereits erwähnt, funktioniert die Fernbedienung mit irw perfekt.
Hardware:
WinTV-PCI-Karte mit Lirc-Sensor.
2x Fernbedienung Hauppauge, was halt typisch bei den alten WinTV-Karten dazu war.
Software:
Kernel-2.6.21-r1
lirc-0.8.2_pre2
/etc/make.conf: LIRC_DEVICES="hauppauge"
/etc/conf.d/lirc: LIRCD_OPTS="-d /dev/lirc/0"
irexec starte ich manuell, da ich die Bedeutung des Scriptes in /etc/init.d/irexec noch nicht ganz rausgefunden hab.
Siehe dazu auch hier: https://forums.gentoo.org/viewtopic-t-532780.html
/etc/lircrc: |
# auf TV tvtime an/aus
# auf Radio Amarok an/aus
# Src 1 tvtime
# 2 Amarok
# 3 mplayer
begin
prog = irexec
button = TV
config = tvtime &
mode = tvtime
repeat = 0
end
begin
prog = irexec
button = RADIO
config = amarok &
config = dcop amarok MainApplication-Interface quit
mode = amarok
repeat = 0
end
begin
button = SOURCE
mode = conf
end
####################################### Ende global #########################
####################################### SOURCE Section ######################
begin conf
begin
prog = irexec
button = 1
config = tvtime-command QUIT
mode = tvtime
repeat = 0
end
begin
button = 2
prog = amarok
config = dcop amarok MainApplication-Interface quit
mode = amarok
repeat = 0
end
begin
button = 3
mode = mplayer
end
end conf
#################################### Ende Belegung SOURCE #############################
#################################### Section tvtime ###########################
begin tvtime
begin
prog = irexec
button = FULL_SCREEN
config = tvtime-command TOGGLE_FULLSCREEN
end
begin
prog = irexec
button = MUTE
config = tvtime-command TOGGLE_MUTE
end
begin
prog = irexec
button = CH+
config = tvtime-command UP
repeat = 1
end
begin
prog = irexec
button = CH-
config = tvtime-command DOWN
repeat = 1
end
begin
prog = irexec
button = VOL+
config = tvtime-command RIGHT
repeat = 2
end
begin
prog = irexec
button = VOL-
config = tvtime-command LEFT
repeat = 2
end
begin
prog = irexec
button = RESERVED
config = tvtime-command CHANNEL_PREV
repeat = 1
end
begin
prog = irexec
button = 1
config = tvtime-command CHANNEL_1
end
begin
prog = irexec
button = 2
config = tvtime-command CHANNEL_2
end
begin
prog = irexec
button = 3
config = tvtime-command CHANNEL_3
end
begin
prog = irexec
button = 4
config = tvtime-command CHANNEL_4
end
begin
prog = irexec
button = 5
config = tvtime-command CHANNEL_5
end
begin
prog = irexec
button = 6
config = tvtime-command CHANNEL_6
end
begin
prog = irexec
button = 7
config = tvtime-command CHANNEL_7
end
begin
prog = irexec
button = 8
config = tvtime-command CHANNEL_8
end
begin
prog = irexec
button = 9
config = tvtime-command CHANNEL_9
end
begin
prog = irexec
button = 0
config = tvtime-command CHANNEL_0
end
begin
prog = irexec
button = MINIMIZE
config = tvtime-command ENTER
end
end tvtime
############################################# Ende tvtime ###########################
############################################ Section amarok ###########################
begin amarok
begin
prog = irexec
button = VOL+
config = vol more
repeat = 2
end
begin
prog = irexec
button = VOL-
config = vol less
repeat = 2
end
begin
prog = irexec
button = FULL_SCREEN
config = dcop amarok player play
config = dcop amarok player stop
end
begin
prog = irexec
button = CH+
config = dcop amarok player next
repeat = 1
end
begin
prog = irexec
button = CH-
config = dcop amarok player prev
repeat = 1
end
begin
prog = irexec
button = MUTE
config = dcop amarok player mute
end
# Zufallsmodus
begin
prog = irexec
button = MINIMIZE
config = if [ `dcop amarok player randomModeStatus` == "true" ]; then dcop amarok player enableRandomMode false; else dcop amarok player enableRandomMode true;$
repeat = 1
end
begin
prog = irexec
button = RESERVED
config = dcop amarok player showOSD
end
# Repeat-Modus
begin
prog = irexec
button = 0
config = if [ `dcop amarok player repeatPlaylistStatus` == "true" ]; then dcop amarok player enableRepeatPlaylist false; else dcop amarok player enableRepeatPl$
end
begin
prog = irexec
button = 5
config = dcop amarok player playPause
end
begin
prog = irexec
button = 2
config = dcop amarok player seekRelative +5
end
begin
prog = irexec
button = 8
config = dcop amarok player seekRelative -5
end
end amarok
########################################################### Ende amarok ################################
####################################### Mplayer ###########################
begin mplayer
begin
prog = mplayer
button = MUTE
config = mute
# repeat = 1
end
begin
prog = mplayer
button = CH+
config = brightness +2
repeat = 1
end
begin
prog = mplayer
button = MUTE
config = mute
end
begin
prog = mplayer
button = CH+
config = brightness +2
repeat = 1
end
begin
prog = mplayer
button = CH-
config = brightness -2
repeat = 1
end
begin
prog = mplayer
button = VOL+
config = volume +1
repeat = 1
end
begin
prog = mplayer
button = VOL-
config = volume -1
repeat = 1
end
begin
prog = mplayer
button = FULL_SCREEN
config = vo_fullscreen
end
begin
prog = mplayer
button = 5
config = pause
end
begin
prog = mplayer
button = 1
config = seek -10
repeat = 1
end
begin
prog = mplayer
button = 3
config = seek +10
repeat = 1
end
begin
prog = mplayer
button = 4
config = seek -60
repeat = 1
end
begin
prog = mplayer
button = 6
config = seek +60
repeat = 1
end
begin
prog = mplayer
button = 7
config = seek -600
repeat = 1
end
begin
prog = mplayer
button = 9
config = seek +600
repeat = 1
end
begin
prog = mplayer
button = 2
config = contrast +2
repeat = 1
end
begin
prog = mplayer
button = 8
config = contrast -2
repeat = 1
end
begin
prog = mplayer
button = 0
config = quit
end
begin
prog = mplayer
button = RESERVED
config = osd
repeat = 1
end
end mplayer
############################################## Section Mplayer Ende ####################
|
/etc/lircd.conf: |
begin remote
name Hauppauge
bits 13
flags SHIFT_ENC
eps 30
aeps 100
one 950 830
zero 950 830
plead 960
gap 89584
repeat_bit 2
begin codes
TV 0x000000000000100F
RADIO 0x000000000000100C
FULL_SCREEN 0x000000000000102E
CH+ 0x0000000000001020
CH- 0x0000000000001021
VOL- 0x0000000000001011
VOL+ 0x0000000000001010
MUTE 0x000000000000100D
SOURCE 0x0000000000001022
1 0x0000000000001001
2 0x0000000000001002
3 0x0000000000001003
4 0x0000000000001004
5 0x0000000000001005
6 0x0000000000001006
7 0x0000000000001007
8 0x0000000000001008
9 0x0000000000001009
0 0x0000000000001000
RESERVED 0x000000000000101E
MINIMIZE 0x0000000000001026
end codes
end remote
|
Wie bereits erwähnt, arbeitete dieselbe Konfiguration vor ca. 1 Jahr noch perfekt. Die Batterien sind auch noch voll. |
|