Author |
Message |
BabaO'Riley
|
Posted: Mon Dec 04, 2006 8:31 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
ok. so this may be another example of my poor searching skills, but...
is there something special i need to do to get this remote to work?
i'm not even sure that lirc is running. typing lirc at the command prompt brings me back to the command prompt (no errors) but there is no log file for lirc in /var/log.
if i understand everything i've read. lirc should create a log file when it runs.
is there a switch for some kind of verbose mode?
running irw brings me back to the command prompt. (because i have no lirc.conf?)
mode2 gives me "error opening /dev/lirc" and "no such device"
running
Code: irrecord --device=/dev/lirc0 /tmp/lirc.conf
yields "irrecord: could not init hardware (lircd running? --> close it, check permissions"
all searches i've done on this error point to irda devices or serial devices. i'm not smart enough to transpose the 'cure' for my shiny new usb device.
i've tried killing lircd by the pid
i've tried chmod 666 lirc
i've tried singing 'hail to the chief' while jumping on one leg and pinching my nose.
that's all i've got.
any ideas?
b
|
|
Top |
|
 |
slowtolearn
|
Posted: Mon Dec 04, 2006 9:51 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
BabaO'Riley wrote: if i understand everything i've read. lirc should create a log file when it runs. is there a switch for some kind of verbose mode? Not that I am aware of or can find in man lircd. You could find entries in /var/log/daemon.log, /var/log/dmesg, /var/log/kern.log, /var/log/messages and/or /var/log/syslog BabaO'Riley wrote: running irw brings me back to the command prompt. (because i have no lirc.conf?) Quite honestly I have never seen anything more than that from irw. Certainly could be my own lack of knowledge/skills BabaO'Riley wrote: Code: irrecord --device=/dev/lirc0 /tmp/lirc.conf
yields "irrecord: could not init hardware (lircd running? --> close it, check permissions" This is where I may be of some help. If you run Code: ls -l /dev/lir* What does it return? I think at the very least you should have Code: crw-r--r-- 1 root root 61, 0 Jun 22 00:25 /dev/lirc crw-r--r-- 1 root root 61, 1 Oct 1 2005 /dev/lirc1 srw-rw-rw- 1 root root 0 Dec 3 21:38 /dev/lircd prw-r--r-- 1 root root 0 Jul 30 2004 /dev/lircm In your example above you refer to /dev/lirc0, perhaps /dev/lirc or /dev/lirc1 would work for you? Also, since you have a USB receiver, what is the output of "lsusb" (no quotes) ? BabaO'Riley wrote: all searches i've done on this error point to irda devices or serial devices. i'm not smart enough to transpose the 'cure' for my shiny new usb device. i've tried killing lircd by the pid i've tried chmod 666 lirc Hmm, not sure what you changed here, would depend on the directory you were in (or was that chmod 666 /???/lirc ?" BabaO'Riley wrote: i've tried singing 'hail to the chief' while jumping on one leg and pinching my nose. But did you try "Hail to the Victors" while pinching your significant other's toes? Sorry, couldn't help myself!  OK, seriously, what shows up if you issue Code: dmesg | grep -i lir | more
Scott
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Mon Dec 04, 2006 10:16 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
wow. thanks for the prompt reply.
Code: ls -l /dev/lir*
gives me /dev/lirc /dev/lirc1 /dev/lircd /dev/lircm Trying to use irrecord with lirc or lirc1 gets me the same error message. lsusb gives me a bunch of 'unknown line' lines and then three bus 00x lines the important one looks line 'Bus 001 Device 002: ID 1784:0001' the chmod, i'm really not sure now. i've been all over this directory structure looking for clues. One thing i found interesting (maybe useful) is when i type: Code: cat /proc/bus/usb/devices
i get a ref to what looks like my usb tranceiver (calls it topspeed eHome) but down the list it says 'Driver=none'
hmmmmm... the toes eh? i'll try that next.
|
|
Top |
|
 |
Dak48
|
Posted: Tue Dec 05, 2006 8:18 am |
|
Joined: Mon May 29, 2006 2:16 pm
Posts: 52
Location:
Lincoln, Nebraska
|
Is this the silver dog-bone remote that on the bottom has a sticker reading RC6? If so, run the lirc config script add_lircd.sh I think its called, and select the type 27 for Microsoft remote. YOu will get a second selection after a warning that it was detected... on that menu select option B.
I also reboot after that, and the remote works. Note, with this remote I have tried using the Hauppauge selections, but they just do not work with this remote.
Hope this helps ya some.
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 8:39 am |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
dak48
the remote does say RC-6 on the bottom, but it does not seem to fit the description of the other remotes with this designation. there are no colored buttons at the bottom. but it does have the stupid windows logo button in the middle and is silver, bone shaped, etc.
I'll give your suggestion a shot when i get home from work.
thanks for the reply
b
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 10:50 am |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
Just for the record, this is the remote i have. it is similar to many others (including the microsoft mce remote) but not exactly the same (so maybe the electronics are not the same either).
http://www.hauppauge.com/pages/products/data_pvr150mcekit.html
it looks like there a few diferent manufactures of the eHome usb ir transceiver. hopefully they are the same internally.
|
|
Top |
|
 |
mlbuser
|
Posted: Tue Dec 05, 2006 12:53 pm |
|
Joined: Tue Sep 26, 2006 9:35 am
Posts: 85
|
I have this remote (comes with the PVR-150 model 1062). Take a look at the last message in this thread (valid for R5D1).
http://mysettopbox.tv/phpBB2/viewtopic.php?t=11930&highlight=
Just today I changed a couple of things because the asterisk and hash keys were not defined, and changed ChannelUp, ChannelDown to do page up/down, instead of up/down, as the cursor keys already do that, and I was tired of scrolling without page increments.
_________________ nMediaPC HT100SA ASUS A8N-VM CSM
AMD 3200+ AMPO DDR 3200 512MB RAM
PVR-150 (1062) WD 320 GB SATA-2 HD
NEC OEM ND-3550A DVD burner
D-Link DWL-G510 PCI wireless adapter
MS wireless optical desktop 1000
R5F27 (+ modified sa3250ch)
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 5:56 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
Rats
came home and ran lirc-reconfig.sh
chose 27 (which is mceusb on my version)
chose b (newer)
tried to wget the lircrc from the wiki (failed, no file)
double, tripple checked my typing before trying to go there in a brouser, where i got 404'd.
irw behaves the same
mode2 behaves the same
rebooted
still have a huge pail of no joy.
what does the lircrc file do, exactly?
not sure if this is important. but
Code: cat /proc/bus/usb/devices
still tells me that there is no driver.
|
|
Top |
|
 |
Dak48
|
Posted: Tue Dec 05, 2006 5:59 pm |
|
Joined: Mon May 29, 2006 2:16 pm
Posts: 52
Location:
Lincoln, Nebraska
|
Yup, that is the same remote that I have. Using type 27,b should work. Not sure whats up with your situation though, maybe the lirc file is now corrupt. Anyone else have any ideas?
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 6:04 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
maybe. i've been donking around with it quite a bit trying to get this thing to work.
How do i tell what version i'm running? and which version should i be running?
and finally, how do i upgrade? (i'm assuming wget but what from where)
thanks again
b
|
|
Top |
|
 |
slowtolearn
|
Posted: Tue Dec 05, 2006 7:04 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
Can you tell if the IR receiver is actually receiving data? IE - Are there lights on it that go on and off when you push buttons on the remote? Anything to indicate that the receiver actually works?
Try this: Unplug the receiver, run "tail -f /var/log/messages" in an Xterm (no quotes), then plug the receiver back in. What shows up on your screen?
I don't know what file the Wiki is pointing to, but the lircrc file is the remote button mappings for the various portions within MythTV - Channel up means do this, Channel down means do that, etc. You should have one in /home/mythtv/.mythtv that you can look at to get an idea (but you don't need it until the remote actually does something!)
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 7:36 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
slowtolearn
thanks for looking again.
yeah. the usb box is picking up the signal. it has a little red led that flashes when i hit buttons on the remote (any remote for that matter...)
the tail command you asked me to run yields (can't copy/paste so i'll type the important parts).
date mythtv kernel: ohci_hcd 0000:00:02.2 wakeup
" :usb 1-2: new full speed usb device using ohci_hcd and address 4
" :usb 1-2: configuration #1 chosen from 1 choice
|
|
Top |
|
 |
slowtolearn
|
Posted: Tue Dec 05, 2006 8:34 pm |
|
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location:
Farmington, MI USA
|
Hmm, OK, I may be off base here as I have an LC10M with the builtin receiver. The output from the tail command doesn't look like it recognizes what is plugged in, only that something is plugged in.
What is the output from "lsmod | grep lirc"? And it would be nice if we could get the output of "cat /proc/bus/usb/devices" on Dak48's system (and mlbuser's). I'm guessing you don't have the proper module(s) loaded...
|
|
Top |
|
 |
BabaO'Riley
|
Posted: Tue Dec 05, 2006 8:58 pm |
|
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
|
i'm beginning to suspect the same thing.
lsmod | grep lirc gives me
lirc_mceusb2 11268 0
lirc_dev 14468 1 lirc_mceusb2
usbcore 112000 8 lirc_mceusb2,usbhid,ttusb_dec,dvb_ttusb_budget,ehci_hcd,ohci_hcd,uhci_hcd
I've been surfing while i wait  and found some instructions for installing with mce remote that call for skipping the lirc config when first installing (which i didn't do. i chose hauppauge). did i blow it? if so, how do i fix this? i'd hate to reinstall again...
|
|
Top |
|
 |
mlbuser
|
Posted: Wed Dec 06, 2006 8:05 am |
|
Joined: Tue Sep 26, 2006 9:35 am
Posts: 85
|
Sorry didn't check the forum last night, I'll dump my lsusb and lsmod when I get a chance. You shouldn't have to reinstall, I don't think you can do any damage to lirc unless you start deleting files in a fit of frustration
You need two files to configure the remote /etc/lircd.conf (sic) which holds the codes your remote generates, and ~mythtv/.mythtv/lircrc which translates them into commands mythtv or other apps can use.
lirc_reconfig.sh should have populated /etc/lircd.conf for you. You can also generate your own such file with irrecord (/etc/init.d/lircd stop; irrecord /tmp/foo; cp /tmp/foo /etc/lircd.conf; /etc/init.d/lircd start). Of course you should check what irrecord generated before copying it. I didn't bother with this as lirc_reconfig.sh works fine.
As far as lircrc, there is a basic one here: http://svn.mythtv.org/trac/browser/trunk/mythtv/contrib/configfiles/lircrc.native.example.mceusb2
I will paste my lircd.conf and lircrc files here later.
Also it may matter which version of Knoppmyth you are using. R5D1?
_________________ nMediaPC HT100SA ASUS A8N-VM CSM
AMD 3200+ AMPO DDR 3200 512MB RAM
PVR-150 (1062) WD 320 GB SATA-2 HD
NEC OEM ND-3550A DVD burner
D-Link DWL-G510 PCI wireless adapter
MS wireless optical desktop 1000
R5F27 (+ modified sa3250ch)
|
|
Top |
|
 |