Page 1 of 2
LIRC is now supported on Ubuntu
Posted: Mon Aug 10, 2009 1:49 pm
by irads
You can now use most standard IR remote controls with fit-PC2 running Ubuntu.
See
http://bit.ly/78n0e
Re: LIRC is now supported on Ubuntu
Posted: Sat Aug 22, 2009 8:42 pm
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
Re: LIRC is now supported on Ubuntu
Posted: Sun Aug 23, 2009 11:29 am
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
Re: LIRC is now supported on Ubuntu
Posted: Tue Sep 01, 2009 4:05 am
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!
Re: LIRC is now supported on Ubuntu
Posted: Tue Sep 01, 2009 1:47 pm
by Denis
Try to run
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.
Re: LIRC is now supported on Ubuntu
Posted: Wed Sep 02, 2009 3:41 am
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.
Re: LIRC is now supported on Ubuntu
Posted: Wed Sep 02, 2009 1:34 pm
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
Re: LIRC is now supported on Ubuntu
Posted: Thu Sep 10, 2009 4:15 am
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
Re: LIRC is now supported on Ubuntu
Posted: Thu Sep 10, 2009 9:44 am
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?
Re: LIRC is now supported on Ubuntu
Posted: Tue Sep 29, 2009 3:16 pm
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!