View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: LIRC on R5D1
PostPosted: Fri Sep 15, 2006 12:54 pm 
Offline
Joined: Thu Sep 07, 2006 12:59 pm
Posts: 12
I am using R5D1 and I am trying to get LIRC to work with a home-brew serial ir reciever. I tried following the instructions in the wiki, but they are rather confusing, which lots of edits for various versions. Anyway, I got to the part about making the .conf and when I run irrecord I get this:

root@mythtv:/usr/src/lirc-0.8.0# irrecord myremote.conf

irrecord - application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get hardware features
irrecord: this device driver does not support the new LIRC interface
irrecord: major number of /dev/lirc is 4
irrecord: LIRC major number is 61
irrecord: check if /dev/lirc is a LIRC device
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


What should I do?

Thanks,
Zack


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:56 am 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
See the second post in this thread: http://mysettopbox.tv/phpBB2/viewtopic.php?t=10653
It contains "from scratch" instructions for R5C7 updated for R5D1. If you are talking about the LIRCHowTo in the knoppmyth wiki you can ignore everything in it. It was written for older versions of knoppmyth. Everything is already done for you in R5C7 and R5D1.

You still need to have a proper /etc/lircd.conf for your remote and a proper /home/mythtv/.mythtv/lircrc that has button names that match your lircd.conf.

There are also several lines that need to be added to /etc/init.d/bootmisc.sh

You should be able to find a correct lircd.conf for your remote from http://lirc.sourceforge.net/remotes/ and copy it over /etc/lircd.conf. If your remote isn't listed there, see if some other remote in your house is listed there and try that just to see if you can get things working. You can always mess around with irrecord later.

If you did follow the wiki Lirchowto completely, its also possible that you mucked something up in R5D1 and you may need to start over.
Good luck!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 12:44 pm 
Offline
Joined: Thu Sep 07, 2006 12:59 pm
Posts: 12
I think I did mess somthing up following those instructions, is there anything I can do aside from re-installing knoppmyth?
thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 2:02 pm 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
I'm afraid I can't help you there. I'm a noob myself and my first line of defense is always a virgin re-install! Perhaps someone else can help you back out of it.

Did you try adding those lines to bootmisc.sh and then rebooting and then trying irrecord again?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 7:43 pm 
Offline
Joined: Wed Jun 14, 2006 5:47 pm
Posts: 29
Location: Cleveland, Ohio
When I received this message, this is what got irw working:

Code:
fuser /dev/lircd


(it will say something like "/dev/lircd 909")

Code:
kill 909
chmod 666 /dev/lircd
/usr/sbin/lircd


Now try irw again and see if it works. If it does not try re-booting after adding the lines to /etc/init.d/bootmisc.sh as jzigmyth suggests above.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 7:29 am 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
Hi derek1234,
In your code you put
Code:
chmod 666 /dev/lircd

but wouldn't something like this be better?
Code:
chmod 775 /dev/lircd

I think 666 has all the execute permissions turned off. It seems like lircd should be set as executable, right?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 7:42 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
No. That's a device not an executable... Directories have the execute bit turned on because it's overloaded to mean something else there, and links because they're just supposed to be pass through aliases, but you really don't want it on a device or for that matter anything other than an executable program or script.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 12:48 pm 
Offline
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location: middleton wi usa atsc
Sorry I steered someone in the wrong direction. ':oops:'

I got confused between /dev/lircd and /usr/sbin/lircd, in fact I'm still confused. Are these the same thing or is one an executable and one a device? Does one start the other? Could they just as easily have different names or do they have the same name by definition?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 6:37 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Different paths, different objects (modulo aliasing). Why not do an ls -li on both of them and you'll see:

Code:
root@black2:~# ls -li /usr/sbin/lircd /dev/lircd
858160 srw-rw-rw-  1 root root      0 Sep 20 20:56 /dev/lircd
669014 -rwxr-xr-x  1 root root 373288 Aug  3 20:47 /usr/sbin/lircd

This makes it pretty clear that they're as different a Boy George and Curious George. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 4:08 pm 
Offline
Joined: Sun Sep 17, 2006 12:01 am
Posts: 4
I have a pvr-250, which has an ir blaster port on it...but I lost the irblaster cable, so I have a serial irblaster in its place. But when I hooked it up and started up, it picks up no signal. I think myth/lirc is looking for a signal on my pvr 250, how can I disable that and make it look in com1/2?

some portions of my dmesg that may help:


ACPI: Processor [CPU0] (supports 2 throttling states)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

.......

lirc_dev: IR Remote Control driver registered, at major 61

......
lirc_serial: auto-detected active high receiver
lirc_dev: lirc_register_plugin: sample_rate: 0
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.7.0 (tagged release) loading

..............

ivtv: ==================== END INIT IVTV ====================
cx2388x v4l2 driver version 0.0.5 loaded
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
lirc_dev: lirc_register_plugin: sample_rate: 10


........


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 4:09 pm 
Offline
Joined: Sun Sep 17, 2006 12:01 am
Posts: 4
or alternatively, how can i test out each com port with mode2?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu