Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Laptop CIR Transceiver & Lirc Problem

  1. #11
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Beans
    11
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Laptop CIR Transceiver & Lirc Problem

    I have an ene0100 chipset. Does anyone know of a driver I can use, and how to set it up so I can use my CIR-reciever?

  2. #12
    Join Date
    Aug 2007
    Beans
    13

    Re: Laptop CIR Transceiver & Lirc Problem

    After updating to Ubuntu 9.04 and following the same procedure everything was working except irexec.

    lircd was created in /dev/ with the correct permissions and irw was working just fine with the lircd.conf file in my /etc/ but I had to define the socket (I had to run: irw /dev/lircd)

    The problem was that irexec does not have an argument to specify a socket, so I looked a bit at config.h in the sources and I found out that the default socket which irexec looks for is /var/run/lirc/lircd

    Then all I had to do was to change the script in /etc/init.d/ to this:

    Code:
    #!/bin/bash
    
    case "$1" in
      start)
        echo -n "Starting lirc daemon:"
        echo -n " lircd"
        echo -n " "
        if [ ! -d /var/run/lirc ]
        then
            mkdir /var/run/lirc
        fi
        LIRCD_ARGS=' --output=/var/run/lirc/lircd --permission=666 --device=/dev/lirc0 /etc/lircd.conf'
        start-stop-daemon --start --exec /usr/local/sbin/lircd -- $LIRCD_ARGS
        echo ""
        ;;
      stop)
        echo -n "Stopping lirc daemon:"
        echo -n " lircd"
        echo -n ""
        start-stop-daemon --stop --exec /usr/local/sbin/lircd
        if [ -d /var/run/lirc ]
        then
            rm -rf /var/run/lirc
        fi
        echo " "
        ;;
      *)
        echo "Usage: /etc/init.d/lircd {start|stop}"
        exit 1
    esac
    
    exit 0
    and everything was back to normal

    Also for some reason I had to create the folder lirc in /var/run/ otherwise the lirc daemon wouldn't start because it couldn't create the folder even when running the script with root permissions.

    Anyway if someone had a problem with Ubuntu 9.04 I hope this helped.

  3. #13
    Join Date
    Feb 2007
    Beans
    92

    Re: Laptop CIR Transceiver & Lirc Problem

    I've got an Acer Aspire 5920G as well, I am going to try installing Karmic Koala Ubuntu 9.10 Alpha5 on it this weekend and see if the kernel module and lirc version work correctly for this hardware

    (Here is a search on packages.ubuntu.com for wpc8796l in all filenames: http://packages.ubuntu.com/search?se...armic&arch=any

  4. #14
    Join Date
    Nov 2007
    Beans
    465

    Re: Laptop CIR Transceiver & Lirc Problem

    Cool- works for me!
    Last edited by FokkerCharlie; December 11th, 2009 at 06:22 AM. Reason: Posted in error.

  5. #15
    Join Date
    Nov 2007
    Beans
    465

    Re: Laptop CIR Transceiver & Lirc Problem

    Actually, it works until I suspend:

    After that, there's no output from irw, sudo mode2 returns:

    Code:
    $ sudo mode2
    mode2: could not get file information for /dev/lirc
    mode2: default_init(): No such file or directory
    I can stop/start the script in init.d OK, but no joy. However, the modules do seem to be loaded (starting / stopping by the script doesn't make a difference to this)

    Code:
    $ lsmod | grep lirc
    lirc_wpc8769l           9936  0 
    lirc_dev               13992  1 lirc_wpc8769l
    After a reboot, all is well. So any idea what's going on here?

    Charlie
    Last edited by FokkerCharlie; December 13th, 2009 at 11:00 AM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •