yaUsbIR V3 LIRC USB IR Empfänger/Sender/Einschalter

  • Das Desktoptool finde ich ziemlich unubersichtlich im Vergleich mit der Silverlight Version.


    Es kann aber mehr. Du gewöhnst Dich daran.


    Albert

  • @DaKilla


    Ja mag sein, ich bin umgestiegen, weil ich die Wiederholung (wieder mal versteckt) von 2 auf 0 setzen wollte. Aber die Punkte sind wirklich versteckt.

  • Aber die Punkte sind wirklich versteckt.


    Oh ja. Fehlerbehandlung. :D


    Albert

  • Hallo,


    ich bekomme den Treiber unter Arch Linux (64 bit) nicht compiliert, bzw. scheitere schon am ./configure


    Code
    [root@xbmc lirc-0.9.0]# ./configure --with-driver=ya_usbirchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for gcc... gccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... gcc3checking whether gcc and cc understand -c and -o together... yeschecking for a BSD-compatible install... /usr/bin/install -cchecking whether make sets $(MAKE)... (cached) yeschecking for mknod... /usr/bin/mknodchecking for mkfifo... /usr/bin/mkfifochecking for depmod... /sbin/depmodchecking for libusb-config... /usr/bin/libusb-configchecking whether ln -s works... yeschecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for a sed that does not truncate output... /usr/bin/sedchecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for fgrep... /usr/bin/grep -Fchecking for ld used by gcc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking the maximum length of command line arguments... 1572864checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking for /usr/bin/ld option to reload object files... -rchecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for ar... archecking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking how to run the C preprocessor... gcc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... yeschecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yeschecking for python... nochecking for python2... /usr/bin/python2checking for python version... 2.7checking for python platform... linux2checking for python script directory... ${prefix}/lib/python2.7/site-packageschecking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packageschecking for ANSI C header files... (cached) yeschecking whether time.h and sys/time.h may both be included... yeschecking fcntl.h usability... yeschecking fcntl.h presence... yeschecking for fcntl.h... yeschecking limits.h usability... yeschecking limits.h presence... yeschecking for limits.h... yeschecking sys/ioctl.h usability... yeschecking sys/ioctl.h presence... yeschecking for sys/ioctl.h... yeschecking sys/time.h usability... yeschecking sys/time.h presence... yeschecking for sys/time.h... yeschecking syslog.h usability... yeschecking syslog.h presence... yeschecking for syslog.h... yeschecking for unistd.h... (cached) yeschecking for an ANSI C-conforming const... yeschecking for inline... inlinechecking for off_t... yeschecking for pid_t... yeschecking for size_t... yeschecking whether struct tm is in sys/time.h or time.h... time.hchecking return type of signal handlers... voidchecking for vprintf... yeschecking for _doprnt... nochecking for gethostname... yeschecking for gettimeofday... yeschecking for mkfifo... yeschecking for select... yeschecking for socket... yeschecking for strdup... yeschecking for strerror... yeschecking for strtoul... yeschecking for snprintf... yeschecking for strsep... yeschecking for vsyslog... yeschecking for forkpty... nochecking for forkpty in -lutil... yeschecking vga.h usability... nochecking vga.h presence... nochecking for vga.h... nochecking for X... libraries , headers checking for gethostbyname... yeschecking for connect... yeschecking for remove... yeschecking for shmat... yeschecking for IceConnectionNumber in -lICE... yeschecking for getopt_long... yeschecking for mktemp... yeschecking for Linux kernel sources... /lib/modules/3.8.10-1-ARCH/build/checking for which drivers can be installed on this system... checking for caraca_init in -lcaraca_client... nochecking ftdi.h usability... yeschecking ftdi.h presence... yeschecking for ftdi.h... yeschecking iguanaIR.h usability... nochecking iguanaIR.h presence... nochecking for iguanaIR.h... nochecking for ir_strerror in -lirman... yeschecking for ir_strerror in -lirman_sw... nochecking portaudio.h usability... yeschecking portaudio.h presence... yeschecking for portaudio.h... yeschecking for Pa_Initialize in -lportaudio... yeschecking alsa/asoundlib.h usability... yeschecking alsa/asoundlib.h presence... yeschecking for alsa/asoundlib.h... yeschecking for snd_pcm_open in -lasound... yeschecking for ALSA SB RC hwdep support... yeschecking scsi/sg.h usability... yeschecking scsi/sg.h presence... yeschecking for scsi/sg.h... yeschecking linux/input.h usability... yeschecking linux/input.h presence... yeschecking for linux/input.h... yeschecking linux/types.h usability... yeschecking linux/types.h presence... yeschecking for linux/types.h... yeschecking for linux/hiddev.h... yeschecking for HIDDEV_FLAG_UREF support... yeschecking sys/soundcard.h usability... yeschecking sys/soundcard.h presence... yeschecking for sys/soundcard.h... yeschecking linux/i2c-dev.h usability... yeschecking linux/i2c-dev.h presence... yeschecking for linux/i2c-dev.h... yesconfigure: error: *** it is not possible to install the specified driver	on this system



    autoreconf --install wirft auch Fehler:


    Code
    [root@xbmc lirc-0.9.0]# autoreconf --installconfigure.ac:11: error: 'AM_CONFIG_HEADER': this macro is obsolete.    You should use the 'AC_CONFIG_HEADERS' macro instead./usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...configure.ac:11: the top levelautom4te: /usr/bin/m4 failed with exit status: 1aclocal: error: echo failed with exit status: 1autoreconf: aclocal failed with exit status: 1



    Kann mir bitte jemand der sich besser auskennt genau erklaeren was ich machen muss um yaUsbIR V3


    unter Arch Linux zum laufen zu bekommen?


    Danke Euch!


    Gruß,
    flo

  • ich bekomme den Treiber unter Arch Linux (64 bit) nicht compiliert


    Vielleicht hilft dir das: https://github.com/seahawk1986/arch-lircd

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Du brauchst nur lirc-utils, nicht das lirc Paket.

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)


  • Du brauchst nur lirc-utils, nicht das lirc Paket.

    Ok das paket hatte ich instaliert aber ich sehe folgendes in /var/log/lircd


    Code
    May  6 21:07:30 xbmc lircd: accepted new client on /var/run/lirc/lircdMay  6 21:07:30 xbmc lircd: could not get file information for /dev/lircMay  6 21:07:30 xbmc lircd: default_init(): No such file or directoryMay  6 21:07:30 xbmc lircd: WARNING: Failed to initialize hardwareMay  6 21:07:33 xbmc lircd: removed client




    kannst Du mir sagen was ich in der Datei /etc/conf.d/lircd.conf angeben muss?

  • Ich habe da so etwas drin stehen:

    Code
    #
    # Parameters for lirc daemon
    #
    LIRC_DEVICE="/dev/lirc0"
    LIRC_DRIVER="ya_usbir"
    LIRC_EXTRAOPTS=""
    LIRC_CONFIGFILE="/etc/lirc/lircd.conf"

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Code
    May  6 22:14:14 xbmc lircd: could not open config file '/etc/lirc/lircd.conf'May  6 22:14:14 xbmc lircd: No such file or directoryMay  6 22:14:14 xbmc lircd: lircd(ya_usbir) ready, using /var/run/lirc/lircdMay  6 22:14:18 xbmc lircd: accepted new client on /var/run/lirc/lircdMay  6 22:14:18 xbmc lircd: yaUsbIr: Initializing yaUsbIrMay  6 22:14:18 xbmc lircd: yaUsbIr: device: vid=10C4, pic=876C, with 1 interfaceMay  6 22:14:18 xbmc lircd:          Manufacturer: UG Development Lab                Product: yaUsbIR V3:IR transceiver with power switch                hid interface (generic)


    Wenn ich lirc von hand starte erkennt lirc ya_usbir laut log aber wenn ich dann irw starte und Tasten auf der Fernbedienung druecke kommt kein Output. Den PC einschalten per Fernbedienung klappt aber (habe die Taste per externen Taster angelernt)

  • bei mir gibt es kein device "/dev/lirc0". Muss ich das Device von Hand anlegen???


    Das wird hier gar nicht benötigt. Stört aber auch nicht wenns zufällig in der Config steht.


    aber wenn ich dann irw starte und Tasten auf der Fernbedienung druecke kommt kein Output.


    Steht doch da
    ---
    ircd: could not open config file '/etc/lirc/lircd.conf'
    ---


    Ohne lircd.conf kein irw. Du kannst aber mode2 nutzen (vorher lircd stoppen) um zu testen ob ir Signale ankommen (und um zu sehen obs generell funktioniert).


    cu

  • ok mode2 klappt


    scheinbar wird meine /etc/conf.d/lircd.conf ignoriert. Egal was ich als "driver" eintrage meldet lircd:





    May 7 00:38:18 xbmc lircd: lircd(default) ready, using /var/run/lirc/lircd
    May 7 00:38:26 xbmc lircd: accepted new client on /var/run/lirc/lircd
    May 7 00:38:26 xbmc lircd: could not get file information for /dev/lirc
    May 7 00:38:26 xbmc lircd: default_init(): No such file or directory
    May 7 00:38:26 xbmc lircd: WARNING: Failed to initialize hardware



    Starte ich lircd von hand inkl. -n -H ya_usbir meldet lircd:



    May 6 22:33:48 xbmc lircd: lircd(ya_usbir) ready, using /var/run/lirc/lircd
    May 6 22:33:52 xbmc lircd: accepted new client on /var/run/lirc/lircd
    May 6 22:33:52 xbmc lircd: yaUsbIr: Initializing yaUsbIr
    May 6 22:33:53 xbmc lircd: yaUsbIr: device: vid=10C4, pic=876C, with 1 interface
    May 6 22:33:53 xbmc lircd: Manufacturer: UG Development Lab
    Product: yaUsbIR V3:IR transceiver with power switch
    hid interface (generic)

  • scheinbar wird meine /etc/conf.d/lircd.conf ignoriert


    Dann nimm das doch mal raus oder passe es an deinen Pfad an.

    Code
    LIRC_CONFIGFILE="/etc/lirc/lircd.conf"

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Irgendwie habe ich den Eindruck beim richtigen Start (sysvinit, upstart oder so) wird ein anderes lircd verwendet als beim manuellen Konsolenstart.


    Hast du zwei lircd im System?


    cu

  • Irgendwie habe ich den Eindruck beim richtigen Start (sysvinit, upstart oder so) wird ein anderes lircd verwendet als beim manuellen Konsolenstart.


    Hast du zwei lircd im System?


    cu

    Hmm also ich habe kein anderes Lirc Paket ausser das gebaute lirc-utils paket



    [root@xbmc ~]# find / -name "lircd"
    /usr/src/lirc/arch-lircd/lircd
    /usr/src/lirc/arch-lircd/src/lircd
    /usr/src/lirc/arch-lircd/src/lirc-0.9.0/daemons/lircd
    /usr/src/lirc/arch-lircd/pkg/lirc-utils/usr/sbin/lircd
    /usr/src/lirc/arch-lircd/pkg/lirc-utils/etc/rc.d/lircd
    /usr/sbin/lircd
    /var/log/lircd
    /dev/lircd
    /run/lirc/lircd
    /etc/rc.d/lircd


    wie kann ich denn sicherstellen, dass /etc/conf.d/lircd.conf überhaupt eingelesen wird? wird die datei von systemd oder von lircd eingelesen?



    [root@xbmc ~]# cat /usr/lib/systemd/system/lirc.service
    [Unit]
    Description=Linux Infrared Remote Control


    [Service]
    ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd
    ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid
    Type=forking
    PIDFile=/run/lirc/lircd.pid


    [Install]
    WantedBy=multi-user.target

  • /etc/rc.d/lircd


    Die rc.d Geschichte wurde doch eigentlich durch systemd abgelöst - du nutzt schon die lirc.service Unit, oder?

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)


  • Die rc.d Geschichte wurde doch eigentlich durch systemd abgelöst - du nutzt schon die lirc.service Unit, oder?

    ja logo - hab gerade neu installiert und nur noch systemd drauf...



    auszug aus deinem PKGBUILD:



    cd "${srcdir}/lirc-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -d "${pkgdir}/usr/share/lirc" "${pkgdir}/etc/rc.d"
    cp "${srcdir}"/{lircd,lircmd,irexecd} "${pkgdir}/etc/rc.d"
    install -D -m644 "${srcdir}"/lirc.service "${pkgdir}"/usr/lib/systemd/system/lirc.service
    install -D -m644 "${srcdir}"/lircm.service "${pkgdir}"/usr/lib/systemd/system/lircm.service
    install -D -m644 "${srcdir}"/irexec.service "${pkgdir}"/usr/lib/systemd/system/irexec.service
    install -D -m644 "${srcdir}"/lirc.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/lirc.conf
    cp -rp remotes "${pkgdir}/usr/share/lirc"
    chmod -R go-w "${pkgdir}/usr/share/lirc/"



    ich habe das gefuehl die /etc/conf.d/lircd.conf wird von systemd nicht eingelesen?

  • Wie sieht denn der Aufruf von lirc aus?

    Code
    $ ps ax | grep sbin/lircd


    Bei mir bekomme ich so eine Befehlszeile:

    Code
    /usr/sbin/lircd --pidfile=/run/lirc/lircd-lirc.pid -o /run/lirc/lirc --driver=ya_usbir /etc/lirc/lircd.conf


    Und meine angepasste Sytemd-Unit sieht so aus (ich haben den Lirc-Sockel unter /run/lirc/lirc statt /run/lirc/lircd, da ich eventlircd nutze):

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!