xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 46 forks source link

USB Infrared Toy v2 from dangurous prototypes #689

Open kasteleman opened 9 years ago

kasteleman commented 9 years ago

USB Infrared Toy v2 from dangurous prototypes was not working on XBian. CurlyMo provided a patch:

wget http://download.xbian.org/testing/xbian-package-lirc20150227.deb dpkg -i xbian-package-lirc20150227.deb

I managed to get the irtoy working:

Have added irtoy.conf in /etc/lirc/hardware with the following content:

LIRCD_ARGS="--listen=8765" DRIVER="usb_irtoy" DEVICE="/dev/ttyMCA0"

added --listen=8765 so my domoticasystem can use the irtoy over the network!

Also added a case to the hardware.conf file:

"Prototypes") . /etc/lirc/hardware/irtoy.conf ;;

The only thing i'm wondering about is the following in that file:

. /etc/lirc/hardware/custom.conf if [ -z $LIRCD_ARGS ] && [ -z $LOAD_MODULES ] && [ -z $DRIVER ] && [ -z $DEVICE ] && [ -z $MODULES ] && [ -z $LIRCD_CONF ] && [ -z $LIRCMDCONF ]; then case "$DMESG" in "lircrpi")

Why do you use the custom.conf and then after "then" the case for "$DMESG"? I thought you first catch the case for DMESG and if case match use specific conf file. If no case match, then you use custom.conf. Specific reason for that, or do i misunderstand the syntax?

CurlyMoo commented 9 years ago

Can you use markup code as described in the top right op this reaction box?

kasteleman commented 9 years ago

sorry, new to this. What do you mean by that?

CurlyMoo commented 9 years ago

What i said. You can read about it on the top right of this box Markdown Supported. You must agree that the first post is quit unreadble like this :smile:

kasteleman commented 9 years ago

i Agree...better this way?

CurlyMoo commented 9 years ago

Have you read the markdown supported page?