Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] LIRC (and irw) not working

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Beans
    7

    [SOLVED] LIRC (and irw) not working

    Hi- I am completely new to Linux and decided to start learning by installing Mythbuntu 7.10. It has been interesting learning how Linux works and so far I have managed to get things working, except Lirc. I have a Snapstream Firefly remote and am having a lot if trouble with it. I used the ControlCenter to enable the Snapstream remote. Then I copied my lirc.conf and .lircrc file to the appropriate directories. I modified the hardware.conf to read [DEVICE="/dev/lirc0"]. The [DRIVER=""], I assume that is correct.

    What I have noticed:
    irw does not run, it simply return me to the prompt. Sometimes I get a "connection refused" message.

    What I have found out so far:
    "/dev/lirc" does not exist. Do I need this?
    I can make irw (and the remote) function properly by creating a /dev/lirc link to /dev/lirc0 [% ln -s /dev/lirc0 /dev/lirc]. Then I need to open 2 terminals and in one run [% sudo lircd -n] and in the other [% irw]. But once I restart my pc, the link is gone and nothing works again.

    Do I need to write a start-up script to create this link every time i reboot? How have others got their remote to work? Is this link typical?

    I appreciate any help and can provide more info if needed. Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: LIRC (and irw) not working

    Quote Originally Posted by de3pc77 View Post
    Hi- I am completely new to Linux and decided to start learning by installing Mythbuntu 7.10. It has been interesting learning how Linux works and so far I have managed to get things working, except Lirc. I have a Snapstream Firefly remote and am having a lot if trouble with it. I used the ControlCenter to enable the Snapstream remote. Then I copied my lirc.conf and .lircrc file to the appropriate directories. I modified the hardware.conf to read [DEVICE="/dev/lirc0"]. The [DRIVER=""], I assume that is correct.

    What I have noticed:
    irw does not run, it simply return me to the prompt. Sometimes I get a "connection refused" message.

    What I have found out so far:
    "/dev/lirc" does not exist. Do I need this?
    I can make irw (and the remote) function properly by creating a /dev/lirc link to /dev/lirc0 [% ln -s /dev/lirc0 /dev/lirc]. Then I need to open 2 terminals and in one run [% sudo lircd -n] and in the other [% irw]. But once I restart my pc, the link is gone and nothing works again.

    Do I need to write a start-up script to create this link every time i reboot? How have others got their remote to work? Is this link typical?

    I appreciate any help and can provide more info if needed. Thanks
    Don't start lirc like that. Use the init script

    sudo /etc/init.d/lirc restart

    This sets up the right device as listed in hardware.conf and such.
    If you have errors anywhere in your hardware.conf or you put the lircd.conf in the wrong place it won't work obviously.

  3. #3
    Join Date
    Nov 2007
    Beans
    7

    Re: LIRC (and irw) not working

    thanks for the quick reply!

    when I use sudo /etc/init.d/lirc restart i get...
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    Stopping lirc daemon: lircmd lircd.
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    starting lirc daemon: lircd.
    ~$

    after this irw still does not work, simply returns me to the prompt.

    my hardware.conf file is in /etc/lirc
    Any ideas? Thanks again
    Last edited by de3pc77; November 2nd, 2007 at 10:20 PM. Reason: updated info

  4. #4
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: LIRC (and irw) not working

    Quote Originally Posted by de3pc77 View Post
    thanks for the quick reply!

    when I use sudo /etc/init.d/lirc restart i get...
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    Stopping lirc daemon: lircmd lircd.
    : not foundardware.conf: 5:
    : not foundardware.conf: 8:
    : not foundardware.conf: 11:
    : not foundardware.conf: 14:
    : not foundardware.conf: 21:
    starting lirc daemon: lircd.
    ~$

    after this irw still does not work, simply returns me to the prompt.

    my hardware.conf file is in /etc/lirc
    Any ideas? Thanks again
    Post your hardware.conf. This sounds like a typo in it or possibly in the init script (if you modified that)

  5. #5
    Join Date
    Nov 2007
    Beans
    7

    Re: LIRC (and irw) not working

    I have attached my hardware.conf file.

    The only thing I changed was the DEVICE = "/dev/lirc0".

    I didn't modify the init script (at least not that I am aware of).
    Attached Files Attached Files

  6. #6
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: LIRC (and irw) not working

    Okay here is the deal.

    You modified that file in an editor that converted it to a windows format line ending. I don't know what editor you used, but don't use it in the future for editing files in Linux.

    In the future you might consider these command line editors:
    nano, pico, vi

    Or these gui editors:
    mousepad,geany,gedit,leafpad

    I'm quite partial to nano for command line and geany for GUI editing myself.


    As for your direct problem, you need to use the utility dos2unix. It's in the package tofrodos.

    Code:
    sudo apt-get intsall tofrodos

  7. #7
    Join Date
    Nov 2007
    Beans
    7

    Re: LIRC (and irw) not working

    Are you referring to the .txt extension? i had to add the .txt in order to attach it in this forum. Leaving it as hardware.conf gave me an error. To edit the file in Linux I used Gedit. Do I need to use the dos2unix utility?

  8. #8
    Join Date
    Oct 2005
    Location
    Austin, TX
    Beans
    2,983
    Distro
    Ubuntu Development Release

    Re: LIRC (and irw) not working

    Quote Originally Posted by de3pc77 View Post
    Are you referring to the .txt extension? i had to add the .txt in order to attach it in this forum. Leaving it as hardware.conf gave me an error. To edit the file in Linux I used Gedit. Do I need to use the dos2unix utility?
    According to the file you gave me, it contained windows line endings. That gave me the exact same errors until I converted it.

  9. #9
    Join Date
    Nov 2007
    Beans
    7

    Re: LIRC (and irw) not working

    It is working, thanks for your help superm1!!!!

  10. #10
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: [SOLVED] LIRC (and irw) not working

    Hi All,

    I'm having a similar issue. But a bit of backstory. . .Basically I had an Ubuntu Desktop 6.10 installed running an older version of MythTV I'd installed from source. Everything was running fine until one day my drive filled up (apparently when you have all your favorite shows slated for "never delete", bad things happen. ).


    Anyway, I wiped the system and started from scratch with Mythbuntu 7.10. For the most part all things work well, except irw. I was having the same problem as "de3pc77", but got that taken care of. Now, however, no remote seems to be picked up by irw. So that leaves me with two hypotheses:

    1) irw is simply broken in Mythbuntu

    2) the IR adapter for my computer was magically physically broken during the software install


    . . .as you can see, I'm pretty much left in a terribly odd spot. Any ideas?

Page 1 of 2 12 LastLast

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
  •