Results 1 to 9 of 9

Thread: Lirc not working on Ubuntu 12.04

  1. #1
    Join Date
    May 2008
    Location
    UK
    Beans
    155
    Distro
    Ubuntu

    Lirc not working on Ubuntu 12.04

    Hi, whenever I try to install lirc on ubuntu 12.04 64bit (up-to-date) it installs, but I get this output during the install:

    Code:
    (Reading database ... 155708 files and directories currently installed.)
    Unpacking lirc (from .../lirc_0.9.0-0ubuntu1_amd64.deb) ...
    Processing triggers for ureadahead ...
    Processing triggers for doc-base ...
    Processing 1 added doc-base file...
    Registering documents with scrollkeeper...
    Processing triggers for man-db ...
    Setting up lirc (0.9.0-0ubuntu1) ...
    ls: cannot access /lib/modules/3.2.0-24-generic/kernel/drivers/staging/lirc: No such file or directory
     * Loading LIRC modules                                                                                                                                                                              [ OK ] 
     * Starting remote control daemon(s) : LIRC
    The install completes, yet the remote does not get picked up in irw (where it used to in 11.10) I presume because of the ls error. Any ideas?

    Thanks

  2. #2
    Join Date
    May 2008
    Location
    UK
    Beans
    155
    Distro
    Ubuntu

    Re: Lirc not working on Ubuntu 12.04

    Bump. Anyone got any ideas on how to fix it, or experiencing the same issues?

  3. #3
    Join Date
    Jan 2009
    Beans
    5

    Re: Lirc not working on Ubuntu 12.04

    Quote Originally Posted by bergqvistjl View Post
    Bump. Anyone got any ideas on how to fix it, or experiencing the same issues?
    I was experiencing similar issues post-upgrade to 12.04.

    If you look in /dev/ for lirc*, there's both lirc0 and lirc1 (at least on my system).

    When I switched from /dev/lirc0 to /dev/lirc1, irw started picking up my mceusb remote again.

  4. #4
    Join Date
    Sep 2009
    Beans
    8

    Re: Lirc not working on Ubuntu 12.04

    Depending on what remote you use maybe this thred (the last post) may help you
    http://ubuntuforums.org/showthread.php?t=2000733
    I'm guessing it is a module or race condition problem

    Good luck! I hope to hear some positive report

  5. #5
    Join Date
    Aug 2009
    Beans
    40
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Lirc not working on Ubuntu 12.04

    Bump...

    I've got the same problem. It used to work on 11.10. On my system (MBP 6,2) there isn't event any /dev/lirc* device. lsusb, however, lists the apple remote as before on 11.10...

    isn't just the lirc kernel driver missing? that error
    Code:
    ls: cannot access /lib/modules/3.2.0-25-generic/kernel/drivers/staging/lirc: No such file or directory
    seems to me to be the main reason...
    MB Pro 6,2

  6. #6
    Join Date
    Aug 2009
    Beans
    40
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Lirc not working on Ubuntu 12.04

    Quote Originally Posted by jonas_t View Post
    On my system (MBP 6,2) there isn't event any /dev/lirc* device.
    Ok, at least there is a lirc0 device in /dev now. I had to manually modprobe the 'irc_serial' module...


    Quote Originally Posted by jonas_t View Post
    Code:
    ls: cannot access /lib/modules/3.2.0-25-generic/kernel/drivers/staging/lirc: No such file or directory
    seems to me to be the main reason...
    After doing some filesystem search and grep, I found that this is problably just an error in the package setup caused by moving kernel modules. The lirc modules are now in drivers/staging/media rather than in drivers/staging.
    MB Pro 6,2

  7. #7
    Join Date
    Dec 2006
    Beans
    7

    Re: Lirc not working on Ubuntu 12.04

    This is the bug report filed for this issue:

    https://bugs.launchpad.net/ubuntu/+s...c/+bug/1004239

    The workaround is

    Code:
    sudo ln -s /lib/modules/3.2.0-25-generic/kernel/drivers/staging/media/lirc /lib/modules/3.2.0-25-generic/kernel/drivers/staging/lirc
    with your version inserted.

  8. #8
    Join Date
    Mar 2013
    Beans
    3

    Re: Lirc not working on Ubuntu 12.04

    Well, here it is, March 30, 2013 and the problem persists. Only the version has been changed to protect the obsolete.

    I'm running Ubuntu 12.04 with all updates applied as of this date.

    Code:
    Preconfiguring packages ...
    Selecting previously unselected package lirc.
    (Reading database ... 190459 files and directories currently installed.)
    Unpacking lirc (from .../lirc_0.9.0-0ubuntu1_amd64.deb) ...
    Processing triggers for ureadahead ...
    Processing triggers for doc-base ...
    Processing 1 added doc-base file...
    Processing triggers for man-db ...
    Setting up lirc (0.9.0-0ubuntu1) ...
    ls: cannot access /lib/modules/3.2.0-39-generic/kernel/drivers/staging/lirc: No such file or directory
     * Loading LIRC modules                                                  [ OK ] 
     * Starting remote control daemon(s) : LIRC
    After installation, I get the following:
    Code:
    irexec: could not open config files /home/silvad/.lircrc and /etc/lirc/lirc/lircrc
    irexec: No such file or directory
    Anyone? Is there a workaround for this? Is this the reason local configuration files aren't created, resulting in lirc not working with vlc? Or should I look elsewhere for the solution to my problem?

  9. #9
    Join Date
    Mar 2013
    Beans
    3

    Re: Lirc not working on Ubuntu 12.04

    Well, I searched and searched before posting here, and THEN found the following fix for this particular problem ("ls: cannot access /lib/modules...").

    It's a bug in the install script because the directory has changed from .../staging/lirc to .../staging/media/lirc, so you have to create a symbolic link unless you can hack the install script and fix it there.

    So, you can fix it thusly:

    Code:
    sudo ln -s /lib/modules/3.2.0-39-generic/kernel/drivers/staging/media/lirc /lib/modules/3.2.0-39-generic/kernel/drivers/staging/lirc
    Be sure to copy/paste the file name from your message because the version, in my case 3.2.0-39 changes over time. So, I pasted the path twice, and inserted "/media" at the proper point in the first paste.

    Then remove and reinstall lirc:
    Code:
    sudo apt-get remove lirc
    sudo apt-get install lirc
    Now that problem is solved, but my other problem remains, so I'm off to search for that one.

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
  •