View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 30, 2010 3:24 pm 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
Just trying out LinHES (6.03) after my previous Mythbuntu install went AWOL, and so far it looks like a nicer, more integrated distro.

Having trouble setting up my remote using a Hauppauge Nova-T DVB-T USB Stick and the IR receiver therein. I had all manner of fun setting this up on MythTV, so I'm more familiar than I really wanted to be with the various config files involved.

As I did under Myth, I'd like to check/change the path to the IR receiver. However, I don't seem to have a /etc/lirc and therefore no /etc/lirc/hardware.conf.

Sorry if I'm missing something really obvious here...


Last edited by otoh on Fri Jul 02, 2010 2:21 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2010 7:05 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
Try checking out the service menu. Off the top of my head...

Main Menu > Service Menu > LinHES Config > Remotes (?)

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 3:14 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Search is your friend: http://knoppmyth.net/phpBB2/viewtopic.p ... light=lirc

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 3:18 am 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
Thanks for the reply - I had a look there but whatever I select in remote and receiver type, I don't have any luck.

I had the same issue in MB, and had to tell explicitly tell lirc the path to my receiver, after which it worked. But to do that, I had to edit /etc/lirc/hardware.conf which should be in any lirc install, but I don't even have /etc/lirc.

I do have /etc/lircd.conf, the remote frequency/button mappings; and /etc/lircrc, the key and function mappings for MythTV). But no hardware.conf, which tells it the /dev path to the receiver itself.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 3:22 am 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
graysky wrote:


Oops sorry, posted at the same time as you - thanks for the link, but I already found the lircd.conf and the lircrc, which I understand from my previous MB install.

I'm still mystified as to where the hardware.conf is, though, that tells lirc where to find the receiver itself. Along the lines of:

Code:
DRIVER="dev/input"
DEVICE="/dev/input/event2"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 4:40 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
otoh wrote:
graysky wrote:


Oops sorry, posted at the same time as you - thanks for the link, but I already found the lircd.conf and the lircrc, which I understand from my previous MB install.

I'm still mystified as to where the hardware.conf is, though, that tells lirc where to find the receiver itself. Along the lines of:

Code:
DRIVER="dev/input"
DEVICE="/dev/input/event2"


My bad, I didn't read your post carefully. I dunno about hardware.conf but I can have a look when I get home.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 6:57 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Find is your friend. As root:
Code:
find / -name hardware.conf -ls

If it's on the system, that will tell you where.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2010 2:08 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
tjc wrote:
Find is your friend. As root:
Code:
find / -name hardware.conf -ls

If it's on the system, that will tell you where.


Right! Alternatively, if you don't know the filename but you do know some contents:

Code:
find / -type f -exec grep -i "key words you know" {} \; -print

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 12:01 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I think the issue is there is no hardware.conf in R6. That was a feature of the way the R5.5 lirc scripts worked. In the R6 updates that allowed the remote selection from the service menu, and the changes to use runit for starting services, and the chaining if lircd instances, the features that hardware.conf provided were lost.

For now, until someone knowledgeable has the time & inclination, it is handled in the run script which has become more complex than necessary:
http://linhes.org/cgit/cgit.cgi/LinHES- ... /lircd/run


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 12:25 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Having just taken the time to read your original post, I wonder if my regular Nova-T solution will work for you?

Have a look at this: clicky

It took me a few days of scratching my head and reading around!

HTH

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 11:20 am 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
Folks, thank you all for your help so far! Much appreciated, and I think I'm getting there :)

Quote:
Having just taken the time to read your original post, I wonder if my regular Nova-T solution will work for you?


I tried this, but alas with no luck. The code in the usr/share/hal/fdi/preprobe/20thirdparty/lirc.fdi seems to match the name I get when I do cat /proc/bus/input/devices, but still no luck. In your successful config there, what do you have the remote and receiver set to in LinHES Config > Remotes?

Many thanks graysky for the grep tips, I can never remember the syntax for that stuff. With a bit of fooling around with it, I discovered what Greg said, that there is no hardware.conf.

Instead I found /etc/sv/lircd/run - which seems to fire up lircd with arguments according to the LinHES settings. As in the comments, it can be overridden by creating /etc/runit/lirc.sh - which I did, with this:

Code:
/usr/sbin/lircd -r -d /dev/input/by-path/pci-2-3-event- -H dev/input --output /dev/lircd


And... yay, it works! However, it doesn't seem to run on boot. When I boot, there is no lircd running at all. Once I manually run my /etc/runit/lirc.sh (and restart the front end), my remote is working as expected.

So my next - hopefully last - question to all you patient folk is:

a) Any ideas why it doesn't start? or
b) Where is a good alternative place to put my lircd command, such that it will run on start?

MTIA!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 11:56 am 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
otoh wrote:
a) Any ideas why it doesn't start? or
b) Where is a good alternative place to put my lircd command, such that it will run on start?


Code:
$ sudo add_service.sh lircd
should do it.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 1:26 pm 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
Code:
$ sudo add_service.sh lircd


Thanks - but this just replies:

Code:
lircd is already present


I promise I've not fooled around with anything else, I've just installed LinHES :) There is definitely no lircd process on reboot, but then running /etc/sv/lircd/run (or my own /etc/runit/lirc.sh that it calls) gets it going correctly. Any other place I can run this to fire up lircd?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 1:50 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
otoh wrote:
I promise I've not fooled around with anything else, I've just installed LinHES :) There is definitely no lircd process on reboot, but then running /etc/sv/lircd/run (or my own /etc/runit/lirc.sh that it calls) gets it going correctly. Any other place I can run this to fire up lircd?


I think your lircd process is forking to the background and runit needs to keep it in the foreground. In your lirc.sh add the -n switch to your /usr/sbin/lircd command and see if that helps.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 02, 2010 2:20 pm 
Offline
Joined: Wed Jun 30, 2010 3:15 pm
Posts: 6
Yay! Working a treat; reboot and straight into frontend with remote working. Thank you Mike and everyone else!


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu