View previous topic :: View next topic |
Author |
Message |
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sun Aug 27, 2006 9:42 pm Post subject: Solving Lirc drama |
|
|
Is there a way to control more than one app with lirc? For example, I want to control xmms when it's active, and with the same buttons mplayer too... Also, I've noticed from mplayer's stdout that it recognizes only numbers from remote controller (KP0 - KP9)... Also, that commands show in "mplayer -input keylist". Is there a way to map other buttons from remote controller to work without lirc? If I use irexec nothing changes...
Some keys produce this output in /var/log/messages:
Code: | kernel: cx88 IR (Leadtek Winfast 2000XP: unknown key: key=0x28 raw=0x28 down=1)
kernel: cx88 IR (Leadtek Winfast 2000XP: unknown key: key=0x28 raw=0x28 down=0) |
Can I map them somehow in /etc/lircd.conf? I've tried 0x00028, 0x28000, 0x28, but nothing seems to be working, I still get the same output...
I would appretiate some help here _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Mon Aug 28, 2006 6:30 pm Post subject: |
|
|
I've solved some of these issues... First of all, does anybody know is it possible to control more programs with Lirc, but in the way that the program controlled is only the focused one... For example, here is my ~/.lircrc:
Code: | begin
button = POWER
prog = irexec
config = xmms&
end
begin mplayer
begin
button = POWER
prog = mplayer
config = quit 0
end
end mplayer
begin xmms
begin
prog = xmms
button = POWER
config = QUIT
flags = mode
end
end xmms |
Now, what happens? If I press POWER, XMMS starts up (if irexec is in the background), and thats ok.
But if mplayer is running, it shuts down AND xmms starts up... To make the things worse, if both mplayer and xmms are running, after pressing POWER, both of them shut down. Like CTRL+Q or ALT+F4 shut down all applications and not just the active one Can this thing be manipulated somehow? _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|