The Linux Infrared Remote Control (LIRC) Project
I cheated a little for the software and used a short cut made possible by Jarod Wilson, who has done a great job of documenting MythTV and Fedora Core 4. After you have used up2date to bring your system up to date with the latest security patches, start up a terminal session and enter:
su <enter the root password> echo "export KVER=\`uname -r\`" >> /etc/profile.d/kver.sh cd /etc/yum.repos.d/ wget http://wilsonet.com/mythtv/atrpms.repo wget http://wilsonet.com/mythtv/freshrpms.repo yum install lirc-kmdl-$KVER yum install lirc-lib wget --no-check-certificate https://svn.wilsonet.com/svn/mythtvology/trunk/rc.sysinit-mm.diff patch /etc/rc.d/rc.sysinit < rc.sysinit-mm.diff yum install lirc
Assuming that you are connecting the detector to ttyS0, put the following lines in file /etc/modprobe.conf:
install lirc_serial /bin/setserial /dev/ttyS0 uart none ; /sbin/modprobe --ignore-install lirc_serial alias char-major-61 lirc_serial options lirc_serial irq=4 io=0x3f8
If you are connecting the detector to ttyS1, enter the following lines:
install lirc_serial /bin/setserial /dev/ttyS1 uart none ; /sbin/modprobe --ignore-install lirc_serial alias char-major-61 lirc_serial options lirc_serial irq=3 io=0x2f8
To test that you have a working infrared detector, type mode2. Point a working remote control at your detector and start pressing buttons. If you see something like:
pulse 1187 space 596 pulse 598 space 623 pulse 553 space 643 pulse 630 space 603
you have a working detector. If not, it's time to open up the hood and start troubleshooting. The first thing to check for is cold solder joints, where the solder has not bonded properly with the parts. Look for connections with a dull surface. Clip the heat sink to the appropriate nearby part, reheat those joints and remove the old solder with your solder remover. Then, re-solder using fresh solder.
Assuming things do work now, you need to start configuring your system to work with the remote. But that is another significant project, one for another article.
Colin McGregor works for a Toronto area charity, does consulting on the side and has served as President of the Toronto Free-Net. He also is secretary for and occasional guest speaker at the Greater Toronto Area Linux User Group meetings.
- « first
- ‹ previous
- 1
- 2
- 3
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- Evernote is much more...
1 hour 25 min ago - Reply to comment | Linux Journal
10 hours 10 min ago - Dynamic DNS
10 hours 44 min ago - Reply to comment | Linux Journal
11 hours 43 min ago - Reply to comment | Linux Journal
12 hours 33 min ago - Not free anymore
16 hours 35 min ago - Great
20 hours 22 min ago - Reply to comment | Linux Journal
20 hours 30 min ago - Understanding the Linux Kernel
22 hours 45 min ago - General
1 day 1 hour ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




Comments
A minor detail, but it's
A minor detail, but it's called a DE9 connector, not a DB9 :)
Actually, it is called a DB9
Actually, it is called a DB9 connector... but again... minor point.
I'll jump in on this just
I'll jump in on this just because I can :)
http://en.wikipedia.org/wiki/D-subminiature
IR Detector
I Could not find where the software is to use with the IR Detector. Do I just download the mythtv software or is there a specific software for the IR detector. I just need the software for the IR detector. I do not plan to use the myth tv stuff.
IR Detector software
It's lirc. Go to http://www.lirc.org for more information.
For a better usage of the 5V regulator
The capacitor should be connected to the input pin of the regulator instead of the output pin.
This way, you'll get a much better 5V supply.
creative infra
Hi Did you manage to get it working with an creative infra drive. I have been struggling for the same for days now. It requires it to have the ide-scsi module loaded; and then use scsi inquiries to do the same. Would this work with oldish mother boards / very old Creative Infra drive ??
Actually, you need a cap at
Actually, you need a cap at both the input & the output for regulation and stabilty, respectively. A 1uF at the input and a 0.1uF at the output is fine for this.
Make me one!!
That serial device looks really cool. And while it appears to be simple enough, I was born with five thumbs on each hand and soldering irons hate me. Would there be any volunteers to make one for me? :) (How can someone contact me though? I left my valid email address but it won't show publically...)
maybe, i don't know, type it
maybe, i don't know, type it in the big comment box
Check out this one:
Check out this one: http://www.igalaxie.com/ltt/mp3/ir/index.html.
I added a little led, to blink when I receive some IR signal (this is great for debuging and every days job)
Why not radio?
IR is quite anitquated. It's cool for TV's and video where you have line of sight, but not much use for things like controlling music from another room.
Why not go radio? Or WiFi? Or Bluetooth? Linux should take the lead on some of these instead of just playing catchup.
RF remote with Lirc
I use an rf remote, the X10 Mp3Anywhere remote with Lirc.
Where do you get the appliances ?
1) Where do you get a 'radio' capable remote control ?
2) Where do you get a 'WiFi' capable remote control ?
3) Where do you get a 'Bluetooth' capable remote control ?
LIRCD allows you to interact with a Linux based computer using the same technology as you use to interact with your TV/VCR/DVD/Stereo/... equipment.
If you were to say use something like a Nokia 770 as your remote (hope the battery does not go flat) to control all your home AV equipment, then you need something to convert it's signals from Radio/WiFI/Bluetooth back to IR to allow you to interact with the end appliances.
IR may be old, but it's cheap, pervasive, reliable, secure, and proven to work.
Secure?
I think you might need to re-evaluate that statement:
www.hackaday.com/entry/1234000950059571/
www.schneier.com/blog/archives/2005/08/hacking_hotel_i.html
www.i-hacked.com/content/view/176/44/
A simple brute force attack reneders every "secure" ir system useless. For example, most garage door systems work off sending an 8 bit message to the reciever. If you brute force this, that means that you only have to send out 256 guesses ( do you know how fast your computer can count to 256). Furthermore, the most "secure" ir systems use 16 bits which can be brute forced with 64k attempts which at most will take about 3 mins to break. Just a little food for thought.
Antiquated but affordable
I suppose the problem is to find a device that will be able to send information to the PC via your preferred method. Currently, finding an infra-red remote is fairly easy, not to mention cheap.
Sure it's a great ID. I personnally love my UHF remote on my PVR, but finding those remotes is not easy, and I didn't even look for an appropriate receiver.