Hardy und LIRC

  • Hardy und LIRC


    Hallo,
    bin umgestiegen auf Hardy. :-))
    Vorher hatte ich mit 7.04 das Zulu Script (danke Marc) verwendet und möchte jetzt unter Hardy mit den Repos von Hanno selbst Hand anlegen.
    Soweit klappt das alles gut nur mit LIRC habe ich Schwierigkeiten und freue mich auf Hilfe.


    Mein Vorgehen:
    apt-get install lirc
    dann soll ich auswählen:
    Choose a remote if you would like to preload a configuration:
    Meine Wahl "Custom"


    dann


    If you need to use an IR transmitter, please select it:
    Meine Wahl "Custom"


    apt meldet
    Richte lirc ein (0.8.3~pre1-0ubuntu7.1) ...


    und nu? Kann mir geholfen werden?


    LIRC vorher auf 7.04:
    Der Empfänger is ein ganz einfacher der seriell angeschlossen wird.
    Unter der 7.04 sagt ps aux
    root@vdr:~# ps aux | grep -i lirc
    root 4814 0.0 0.0 1776 456 ? Ss 21:45 0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc0 --permission=666 /etc/lirc/lircd.conf
    und
    tty0 ist an port 03f8


    Danke M

  • Zur Verwendung kommt ein serieller IR Empfänger am ersten Com-Port.
    Installation mit:
    apt-get install lirc
    dann
    Choose a remote if you would like to preload a configuration: Gewählt: Custom
    If you need to use an IR transmitter, please select it: Gewählt: Custom
    danach


    cat /var/lib/setserial/autoserial.conf If you need to use an IR transmitter, please select it:
    ###PORT STATE GENERATED USING AUTOSAVE-ONCE###
    ###AUTOSAVE-ONCE###
    ###AUTOSAVE-ONCE###
    ###AUTOSAVE###
    #
    # If you want to configure this file by hand, use
    # dpkg-reconfigure setserial
    # and change the configuration mode of the file to MANUAL. If you do not do this, this file may be overwritten automatically the next time you upgrade the
    # package.
    #
    /dev/ttyS0 uart 16550A port 0x03f8 irq 4 baud_base 115200 spd_normal skip_test
    /dev/ttyS1 uart 16550A port 0x02f8 irq 3 baud_base 115200 spd_normal skip_test


    jetzt
    dpkg-reconfigure setserial


    Gewählt: Kernel


    edititieren der utoserial.conf wie folgt:
    vi /var/lib/setserial/autoserial.conf


    #KERNEL
    /dev/ttyS0 uart none


    jetzt


    dpkg-reconfigure lirc


    Choose a remote if you would like to preload a configuration: Gewählt: Home Brew (16x50 UART compatible serial port)
    If you need to use an IR transmitter, please select it: Gewählt: Serial Port : Direct tv receiver
    Choose the port that your serial device is attached to: Gewählt: /dev/ttyS0


    Jetzt testen


    irw und irrecord starten, es gibt aber keine Ausgabe bei Tasenbetätigung auf der FB :(


    also Wilderigels Liste


    # lsmod | grep -i lirc
    lirc_serial 15492 1
    lirc_dev 15732 1 lirc_serial


    # dmesg | grep -i lirc
    [ 121.785973] lirc_dev: IR Remote Control driver registered, at major 61
    [ 122.403552] lirc_serial: auto-detected active low receiver
    [ 122.403571] lirc_dev: lirc_register_plugin: sample_rate: 0


    ps aux | grep -i lirc
    root 6791 0.0 0.2 2932 556 ? Ss 12:15 0:00 /usr/sbin/lircd --device=/dev/lirc0


    # /etc/init.d/lirc restart
    * Stopping remote control daemon(s): LIRC [ OK ]
    * Loading LIRC modules [ OK ]
    * Starting remote control daemon(s) : LIRC [ OK ]


    Syslog
    Sep 12 12:36:31 vdr2-sda1 lircd-0.8.3pre1[6791]: caught signal
    Sep 12 12:36:31 vdr2-sda1 vdr: [6537] ERROR: lircd connection broken, trying to reconnect every 3.0 seconds
    Sep 12 12:36:32 vdr2-sda1 lircd-0.8.3pre1[6858]: lircd(userspace) ready
    Sep 12 12:36:34 vdr2-sda1 vdr: [6537] reconnected to lircd
    Sep 12 12:36:34 vdr2-sda1 lircd-0.8.3pre1[6858]: accepted new client on /dev/lircd


    Habe ich da etwas übersehen oder falsch gemacht?


    Gruss
    M

  • Danke für die Antwort, mal sehen
    # ls -ld /dev/lirc*
    crw-rw---- 1 root root 61, 0 2008-09-17 20:59 /dev/lirc0
    crw-rw---- 1 root root 61, 1 2008-09-17 20:59 /dev/lirc1
    srw-rw-rw- 1 root root 0 2008-09-17 20:59 /dev/lircd
    srw-rw-rw- 1 root root 0 2008-09-17 20:59 /dev/lircd1
    root@vdr:~#


    huch woher das?
    aber
    # mode2 -d /dev/lirc0 (und bei drücken der FB tut sich etwas)
    space 2116589
    pulse 8955
    space 4492
    pulse 551
    space 1656
    pulse 574
    space 1708
    ...


    root@vdr:~# irrecord -d /dev/lirc0 /tmp/lircd.conf
    (hurra beim drücken der FB erscheinen die Pünktchen)


    nur, was ist das für eine komische Anzeige mit # ls -ld /dev/lirc*?

Jetzt mitmachen!

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