2009-03-07, 02:27
Instead of doing all that why not just create some aliases to char-major 61 for the two devices
Ie - lirc0 and lirc1 in /etc/modprobe.d/aliases
and then
add your listen and connect lines to your /etc/rc.local
You do not have to modify your /etc/init.d/lirc script AT ALL this way.
just make sure your have your devices set right in the hardware.conf file IE for mine I have
for remote
modules = "lirc_dev lirc_imon"
device = /dev/lirc0
For transmitter I have
modules ="lirc_dev lirc_mceusb2
device = /dev/lirc1
This will automatically start a lircd and lircd1 instance and adding the alias and rc.local stuff I mention above will force them to use the dev numbers on every reboot. then just setup your lircd.conf file for whatever remote you are using as your MCE remote (handheld) and you should be good to go with the imon ir rcvr in the case.
You are always BEST to get one device working completely and 100% first with lirc before attempting to setup a 2nd one. It will save you a pile of work later.
The waf factor is loving the setup in the bedroom now as she only has to press power on the remote and it powers up the TV, Computer, STB and starts mythtv and then she can watch livetv from the main menu or select XBMC from the main menu and then just hit the power button OR the Suspend System from the myth main menu and everything just reverses and all goes to sleep INCLUDING the annoying blue light on the LCD.
Dave
Ie - lirc0 and lirc1 in /etc/modprobe.d/aliases
and then
add your listen and connect lines to your /etc/rc.local
You do not have to modify your /etc/init.d/lirc script AT ALL this way.
just make sure your have your devices set right in the hardware.conf file IE for mine I have
for remote
modules = "lirc_dev lirc_imon"
device = /dev/lirc0
For transmitter I have
modules ="lirc_dev lirc_mceusb2
device = /dev/lirc1
This will automatically start a lircd and lircd1 instance and adding the alias and rc.local stuff I mention above will force them to use the dev numbers on every reboot. then just setup your lircd.conf file for whatever remote you are using as your MCE remote (handheld) and you should be good to go with the imon ir rcvr in the case.
You are always BEST to get one device working completely and 100% first with lirc before attempting to setup a 2nd one. It will save you a pile of work later.
The waf factor is loving the setup in the bedroom now as she only has to press power on the remote and it powers up the TV, Computer, STB and starts mythtv and then she can watch livetv from the main menu or select XBMC from the main menu and then just hit the power button OR the Suspend System from the myth main menu and everything just reverses and all goes to sleep INCLUDING the annoying blue light on the LCD.
Dave