LIRC is now supported on Ubuntu

irads
Site Admin
Posts: 2365
Joined: Mon Mar 16, 2009 2:11 pm

LIRC is now supported on Ubuntu

Post by irads »

You can now use most standard IR remote controls with fit-PC2 running Ubuntu.
See http://bit.ly/78n0e
-------------------------
Irad Stavi
Forum admin

-------------------------

mpc8248
Posts: 3
Joined: Fri Aug 14, 2009 6:54 am

Re: LIRC is now supported on Ubuntu

Post by mpc8248 »

I tryed it with igor cheskos driver but a module is missing.
The sub tree /ubuntu/media/lirc is missing ..is this ok ?
The AT90S2323-10 USB IR receiver is detected.
http://www.cesko.host.sk/IgorPlugUSB/Ig ... R)_eng.htm

regards mpc8248

root@fitpc2:~# dpkg-reconfigure lirc
* Stopping remote control daemon(s): LIRC [ OK ]
* Reloading kernel event manager... [ OK ]
ls: cannot access /lib/modules/2.6.24-34-fitpc2/ubuntu/media/lirc/: No such file or directory * Loading LIRC modules [ OK ]
* Starting remote control daemon(s) : LIRC [ OK ]
root@fitpc2:~#
root@fitpc2:~# irrecord test.ir

irrecord - application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get file information for /dev/lirc
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
root@fitpc2:~# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 03eb:21fe Atmel Corp.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
root@fitpc2:~# uname -r
2.6.24-34-fitpc2
root@fitpc2:~# lsmod | grep lirc
lirc_igorplugusb 8964 0
lirc_dev 14456 1 lirc_igorplugusb
usbcore 135592 4 lirc_igorplugusb,ehci_hcd,uhci_hcd

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: LIRC is now supported on Ubuntu

Post by Denis »

In our 2.6.24-34-fitpc2 kernel lirc module present under drivers/input/lirc and appropriate device node is /dev/lirc0.
To enable lirc just follow the manual http://fit-pc2.com/wiki/index.php?title ... _in_Ubuntu

Code: Select all

sudo irrecord -d /dev/lirc0 -f /etc/lirc/your_remote_name.conf
Compulab's Linux support

gallyjh
Posts: 6
Joined: Tue Sep 01, 2009 1:02 am

Re: LIRC is now supported on Ubuntu

Post by gallyjh »

Has anyone gotten an apple remote (A1156) to work with fit-PC2? The strange thing is that I can fit-PC2 to pick up the buttons with irrecord but it fails to show any buttons being pushed when using irw. Any idea? If you got it to work can you post your lircd.conf? I've tried several different ones posted on numerous websites.

Thanks!

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: LIRC is now supported on Ubuntu

Post by Denis »

Try to run

Code: Select all

sudo xmode2 -d /dev/lirc0
and press buttons on your remote. You should see waveforms of IR signals. Ensure that you have same waveform while pressing on same button, that signals for all buttons have same length, may be you will see something unusual. If you do not have xmode2 - it`s in lirc-x package.
Compulab's Linux support

gallyjh
Posts: 6
Joined: Tue Sep 01, 2009 1:02 am

Re: LIRC is now supported on Ubuntu

Post by gallyjh »

Hi Denis,

First off, thanks for you help. I can see the frequency but I don't understand how this helps me with lircd. The frequencies seem to be the same. The only thing that differs is how long I hold down the button for. Holding it longer shows a longer frequency obviously. I've attached an image displaying this.

Does this mean the remote will not work with irw? My goal is to get the remote to work with XBMC.
Attachments
Picture 1.png
Picture 1.png (32 KiB) Viewed 9044 times

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: LIRC is now supported on Ubuntu

Post by Denis »

Xmode picture is fine, it means that your remote is sending appropriate signals, kernel driver is capable to decode them. Here are things that can be verified:

1. While recording with irrecord do you receive "Signal length is 39" messages in dialog? If not - start irrecord again. You should press remote buttons about 1 sec, not release them immediately.

2. Check if /etc/lirc/your_remote_name.conf was created properly and contains button`s names and their raw_codes.

3. Don`t forget to copy your_remote_name.conf to /etc/lircd.conf before testing with irw

Code: Select all

sudo cp /etc/lirc/your_remote_name.conf /etc/lircd.conf
sudo /etc/init.d/lirc restart
irw
Compulab's Linux support

gallyjh
Posts: 6
Joined: Tue Sep 01, 2009 1:02 am

Re: LIRC is now supported on Ubuntu

Post by gallyjh »

Hi Denis I have tried your steps. I actually followed your walkthrough you posted [1]. Still not working though. Have you tried with an apple remote or did you try with some other generic remote?

[1]
http://bit.ly/78n0e

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: LIRC is now supported on Ubuntu

Post by Denis »

I have tried several remotes, even some buttons of air conditioner controller give good signal (like in picture you have sent).

Let`s debug step by step.
1. Do you receive "Signal length is 39" messages in irrecord dialog?
2. /etc/lirc/your_remote_name.conf contains button`s names and their raw_codes?
3. /etc/lircd.conf and /etc/lirc/your_remote_name.conf are the same files?
Compulab's Linux support

gallyjh
Posts: 6
Joined: Tue Sep 01, 2009 1:02 am

Re: LIRC is now supported on Ubuntu

Post by gallyjh »

Sorry for the delay in reply. I'm still working on this. I will try to get you some postings once I get out of work! Thanks Denis for being patient!

Post Reply

Return to “Ubuntu 8.04”