LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   pb with lirc and xmms (https://www.linuxquestions.org/questions/linux-software-2/pb-with-lirc-and-xmms-306746/)

amine 03-27-2005 03:50 PM

pb with lirc and xmms
 
I've successfully installed and configured lirc 0.7.0 on my suse 9.2 distro. All pressed buttons on the remote are registered by irw. I have created a .lircrc file with the appropriate entries. The lirc plugin for xmms is enabled. I launch irexec with the .lircrc path as parameter.

However, I cannot seem to get xmms do obey the remote control commands.

Has anyone experienced such issues? Any suggestions as to what I am missing?

Thanks in advance.

-a.

lixy 03-27-2005 05:28 PM

Salam,
Well, congratulations! I've been playing around with SUSE 9.2 for a week to setup lirc without much success. I had to install Debian to get it working. Would you please post how you compiled lirc on SUSE.:)
As to your problem with XMMS, are you sure it's the actual lirc plugin you enabled ? (there's another plugin called IRman that confused me for a bit)
XMMS has command line options which you could directly use to do pretty much everything you want. Just issue them thru irexec (xmms -p to start playback, xmms -s to stop it ... Look at the manual !)
If you wanna get your hand dirty you may even try irxevent which emulates keyboard commands to specific windows.
Of course the best way is to get XMMS plugin to work, but I can't help on that. Though if I were you, i'd uninstall XMMS and install it back just to make sure.

amine 03-28-2005 03:23 PM

Hey Lixy, thanks for your input

I too had errors while compiling lirc. It complained about a missing scripts/basic/fixdep file or directory. I looked around for a few minutes but didn't want to spend all day on this. A quick search at RPMSeek revealed the existence of a lirc rpm. That worked flawlessly (well almost :).

As for my issue with the xmms plugin, I tried the solution you suggested. I added the following entries in ~/.lircrc but no go. I also tried running commands other than xmms using the same method but no luck there either.

Code:

begin
 remote = PackBell
 button = ENTER
 prog = irexec
 repeat = 0
 config = xmms -p
end

begin
 remote = PackBell
 button = DISPLAY
 prog = irexec
 repeat = 0
 config = xmms -s
end



Initially I had the following entries using the xmms lirc plugin.

Code:

begin
 remote = PackBell
 button = ENTER
 prog = xmms
 repeat = 0
 config = PLAY
end

begin
 remote = PackBell
 button = DISPLAY
 prog = xmms
 repeat = 0
 config = STOP
end

So I'm thinking that it must irexec that's not working properly. It wouldn't execute anything (not just xmms).

Is there a way to run irexec in debug mode? I couldn't find anything about that anywhere in the docs.

Peace!

-a.

lixy 03-30-2005 06:39 AM

Makes a bit more sense :D
Did you use SUSE's rpm? If so, the Lirc guys make it clear that you should not use a distro-modified kernel. SUSE's Lirc is designed to provide remote control over the nerwork (despite the "ir")
I'm amazed irw works but not irexec! Sorry! No clue.

Best luck,

lixy 04-04-2005 08:58 AM

From the lirc README.debian:

Quote:

If you need irxevent or xmode2 they can be found in lirc-x package. And if you
need smode2 it can be found in lirc-svga package. This split has been done to
prevent dependencies on xlibs and svgalib for the main lirc package.
I guess you just need to install lirc-x (if it ever exists for SUSE).


All times are GMT -5. The time now is 10:51 PM.