LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-07-2009, 06:19 PM   #16
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 16

you want it to be /dev/lirc , instead of /dev/lirc0

thats what the default lircd looks for, but i dont know why you have /dev/lirc/0 .

my install shows /dev/lirc0 by default then i link it to /dev/lirc

then everything seems to work.

im lost at this point.

Last edited by Scuzz; 09-07-2009 at 06:23 PM.
 
Old 09-07-2009, 07:22 PM   #17
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
Hmmm...if irexec works (starts up xine) but not xine, I think the problem is with your xine build. Do you have another application on the same partition you can test lirc with?

Another thought: stop lircd, and start it manually in a terminal (not as a daemon). See if there's any output after trying the remote with xine.

Last edited by vik; 09-07-2009 at 07:28 PM.
 
Old 09-07-2009, 09:19 PM   #18
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
thats what the default lircd looks for, but i dont know why you have /dev/lirc/0
I don't know either. Would you please post the commands you run when booting?

Quote:
Hmmm...if irexec works (starts up xine) but not xine, I think the problem is with your xine build. Do you have another application on the same partition you can test lirc with?
I was thinking about trying that. There is mplayer. I don't think I have any lircrc entries for mplayer. I'll have to find a config file.

Something that has always bothered me is I never see any device listed in /proc/bus/input/devices. Perhaps that is because the device is USB, perhaps not. The device is listed in lsusb, lspci, lshal, and the lirc_mceusb kernel module loads automatically.

Last edited by Woodsman; 09-07-2009 at 09:36 PM.
 
Old 09-07-2009, 09:46 PM   #19
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
My microsoft USB transceiver registers in /dev/lirc/0 as well. Don't worry about it: either fix it in /etc/lircd.conf or create a link to /dev/lircd from it. Also, if your IR blaster works well enough to receive even one command and starts up xine, your hardware's probably fine. I think the slackbuild mplayer has lirc support, so hopefully you can test with it. There's examples of mplayer lircrc files all over the web: just change your remote to mceusb and your button to whatever it says in your lircd.conf file and you should be fine.
 
Old 09-07-2009, 10:48 PM   #20
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 16
well just so i know what i have done to my system, i did a complete reinstall of slackware.

Same issue, xine-ui packaged with slackware-13.0 doesnt work for me
with the default lircd.conf and a custom made lircd.conf.

I once again removed xine-ui and compiled the exact same way i posted in the #2 post of this thread.

And both the default lircd.conf and the custom one i had made both work
after restarting lircd.

So once again i would have to assume its xine-ui not built with lirc enabled.

and i had changed the .lircrc file twice while changing between my lircd.conf to match the default and custom config.

Last edited by Scuzz; 09-07-2009 at 10:50 PM.
 
Old 09-07-2009, 11:39 PM   #21
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
if your IR blaster works well enough to receive even one command and starts up xine, your hardware's probably fine.
I agree. This is starting to take shape much like the audio over HDMI problem I had. The basics work but not the specifics. I had help to get that other problem out of the way and much the same is happening here.

Quote:
I think the slackbuild mplayer has lirc support, so hopefully you can test with it. There's examples of mplayer lircrc files all over the web: just change your remote to mceusb and your button to whatever it says in your lircd.conf file and you should be fine.
I created an mplayer section in /etc/lircrc. I restarted lircd and irexec (-d /etc/lircrc). Mplayer also does not respond to the remote.

Quote:
So once again i would have to assume its xine-ui not built with lirc enabled.
I believe what you report on your box. Right now all I know here is I recompiled xine with the --enable-lirc option and mplayer also does not work. Perhaps a day or two away from the problem might help.

Edit: A thought. I checked the lircd log. Whenever I run the irw command, the log reports 'accepted new client on /var/run/lirc/lircd'. With version 0.8.6pre2, that is the location of the lircd socket. When I run xine or mplayer and test the remote control I see no messages in the log. Perhaps neither app is finding the socket? In previous versions the socket was located at /dev/lircd.

Update: Some good news in a oddball sense. I successfully built xbmc 9.04.1 using a great build script from larryhaja. Absolutely stunning to see. The first thing I did after xbmc started was to grab the remote control but nothing happened. Thus I have confirmed three apps that do not respond to the remote control: xine, mplayer, and now xbmc. As the remote control and receiver works with the irw command, I have to suspect something fundamental for why no apps can see the device.

Last edited by Woodsman; 09-08-2009 at 01:30 AM.
 
Old 09-08-2009, 02:02 AM   #22
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Update: I created a sym link to the new socket location created by 0.8.6pre2:

ln -s /var/run/lirc/lircd /dev/lircd

I now can use xbmc with the remote control!

XBMC must somehow access the lircd socket directly. I really don't know.

Xine and mplayer still do not respond. I'd like to get that remedied, but now that I have XBMC as a front-end for viewing, I would much rather use that interface. XBMC is very nice. I'm much impressed!
 
Old 09-08-2009, 08:30 AM   #23
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 16
Well Woodsman i followed your example and enabled lirc in the xine-ui.Slackbuild and it works fine this way. I didnt know the sources had build scripts like that.

Learn something new everyday.

Also got Mplayer working this way also.

Last edited by Scuzz; 09-08-2009 at 08:56 AM.
 
Old 09-08-2009, 10:57 AM   #24
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
Just to narrow down the issue, have you tried running xine or mplayer without irexec running? I'm wondering if maybe that is interfering. Also, use the lircrc I posted previously (with just the xine entries in it) and put that in ~/.lircrc. If you have an lircrc in /etc, rename it temporarily. Also, kill lircd and restart it. Make sure only one is running. Then pop in a dvd, and start xine from the command line like this:
Code:
xine -V xv -D dvd:/
see if you get any output from xine about lirc not working
if you get an error like unable to open xine, try running xine without the -V xv option.

Last edited by vik; 09-08-2009 at 11:00 AM.
 
Old 09-08-2009, 03:50 PM   #25
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
have you tried running xine or mplayer without irexec running? I'm wondering if maybe that is interfering.
Okay, I tried that. Still no response with xine but XBMC responds perfectly.

Quote:
Also, use the lircrc I posted previously (with just the xine entries in it) and put that in ~/.lircrc. If you have an lircrc in /etc, rename it temporarily. Also, kill lircd and restart it.
Tried that too. Xine did not respond. I could not test mplayer because the ~/.lircrc file contains only those few xine commands. XBMC still worked.

Quote:
Then pop in a dvd, and start xine from the command line like this:
Okay, I tried that too. I had been using AVI and ISO files to test. So I figured trying a physical DVD might be different. No difference. I saw messages about libdvdread and libdvdcss.

Next I temporarily renamed the ~/.xine directory. No change, no lirc messages. Xine does respond to the mouse pointer, which is why I considered a fresh xine configuration might help.

Although I am discovering that XBMC is a true treat, I'm still pursuing a solution for xine. I plan to buy a wireless mouse for the system but using a remote control for quick video viewing with xine would be nice too.

I don't know how XBMC intercepts the lirc functions but I suspect the developers do something directly with lirc rather than indirectly through irexec like most apps.
 
Old 09-08-2009, 04:27 PM   #26
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
After running Xine with a DVD, did you see any video output? If not, do you have libdvdcss installed?
 
Old 09-08-2009, 09:38 PM   #27
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
After running Xine with a DVD, did you see any video output? If not, do you have libdvdcss installed?
Oh yes, sorry about that. I have the libdvdcss package installed. The DVD played fine and I could use the mouse to select subtitles, etc. Just no response to the remote control.

I'm going to reboot into 12.2 and repeat the process there. I'm beginning to think there is some kind of bug with how lirc 0.8.6pre2 works. I know so little about lirc that I don't know whether this is a PEBKAC problem or a bug with prelease software. I do know that XBMC 9.04.1 works fine (and what a pleasure the program is!) as does the irw command. For whatever reason the codes are not being passed to external apps.

Edit: Okay, same results in 12.2. Messages about using libdvdcss and libdvdread getting keys and then the video plays as expected. No response to the remote control. The irw command works fine too. I later loaded irexec again as a daemon with /etc/lircrc with the same non-results. I don't have xbmc installed there.

No messages in either system about lirc. In 12.2 I'm using the stock xine package. In 13.0 I'm using a rebuilt package adding the --enable-lirc option in the build script.

Last edited by Woodsman; 09-08-2009 at 09:52 PM.
 
Old 09-09-2009, 06:02 AM   #28
Scuzz
Member
 
Registered: Jul 2009
Posts: 35

Rep: Reputation: 16
When you enabled lirc in the xine-ui slackbuild , did you add it in this section ?

Code:
XINE_BUILD=$TARGET \
./configure \
  --prefix=/usr \
  --with-aalib \
  --with-caca \
  --enable-lirc \
  --build=$TARGET

And this is where i enabled lirc in Mplayer

Code:
./configure --prefix=/usr \
            --mandir=/usr/man \
            --confdir=/etc/mplayer \
            --enable-gui \
            --enable-menu \
	    --enable-lirc \
            --enable-largefiles \
            --disable-arts \
            --codecsdir=${CODECSDIR} \
            --win32codecsdir=${CODECSDIR} \
            --realcodecsdir=${CODECSDIR} \
            --language="${LANGUAGES}" \
            ${EXTRACONFIGUREOPTIONS} \
            ${DO_PATENTED} \
As vic has said , if irexec works then it still maybe not enabled
in both xine and mplayer. Its the only thing that makes sense right now.

Last edited by Scuzz; 09-09-2009 at 06:13 AM.
 
Old 09-09-2009, 12:02 PM   #29
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
When you enabled lirc in the xine-ui slackbuild, did you add it in this section?
Yes, my build script looks exactly the same.

Quote:
And this is where i enabled lirc in Mplayer
I have not tried rebuilding mplayer. That would be a good step. I'm building now and will report later.

Quote:
Its the only thing that makes sense right now.
Makes sense to me too.

I'm curious how XBMC works with lirc without any lircrc entries.
 
Old 09-09-2009, 12:15 PM   #30
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
while running Xine from the command line, do you see any output when you press Play or Pause on the remote?
 
  


Reply

Tags
lirc, slackware, video, xine



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware-current and Xine lirc problem Scuzz Slackware 0 07-26-2009 02:36 PM
no xine executable after installing xine-lib and xine-ui schneidz Linux - Software 2 01-08-2009 11:52 AM
streamzap remote control - lirc & controlling the desktop lowebb Linux - Software 0 01-22-2007 04:28 PM
Controlling Konqueror with LIRC-Remote lagu2653 Linux - General 1 03-31-2006 10:12 AM
Xine and LIRC Aeiri Linux - Software 1 06-16-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration