25th Feb, 2015, 12:49 AM
(24th Feb, 2015 11:43 PM)CurlyMo Wrote: [ -> ](24th Feb, 2015 11:26 PM)kasteleman Wrote: [ -> ]Then don't quote old posts(24th Feb, 2015 10:37 PM)CurlyMo Wrote: [ -> ]You didn't install the latest deb.Yes i did!
I you have a working setup, i will add your files to the package so all users can use the IRToy from then on.
Have added irtoy.conf in /etc/lirc/hardware with the following content:
# /etc/lirc/hardware/irtoy.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--listen=8765"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=true
#Try to load appropriate kernel modules
#LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="usb_irtoy"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/ttyMCA0"
#MODULES=""
# Default configuration files for your hardware if any
#LIRCD_CONF=""
#LIRCMD_CONF=""
added --listen=8765 so my domoticasystem can use the irtoy over the network!
Configfiles for the remotes follow....
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 $LIRCMD_CONF ]; then
case "$DMESG" in
*"lirc_rpi"*)
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?