Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-17-2011, 05:16 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 10

Rep: Reputation: 0
Installed LIRC-0.9.0 on Fedora 14, /dev/lirc was not created, lirc programs won't run

I installed LIRC-0.9.0 on a fresh 'software developer' installation of Fedora 14 using "sudo yum install lirc-*" as advised by a colleague who is a linux expert. I can run lircd now but when I try to run applications using lircd (irrecord, mode2) I get an error message:
irrecord: could not get file information for /dev/lirc0
irrecord: default_init(): No such file or directory

When I look for /dev/lirc I don't see it, the device was not created during installation. Also, when I type lsmod I don't see any lirc_dev or lirc_serial device in the list.

I'm wondering if using yum package install was a bad idea, maybe I should uninstall and follow the build procedure on, although I don't relish the idea of building a kernel just to get lirc running, ugh!

Any recommendations on this?
(I try not to over-pester my colleague with linux questions)
Old 05-19-2011, 06:06 PM   #2
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
You may just need to reboot, but do you know what IR kernel module you are loading? I believe a driver needs to be properly loaded before anything will show up under /dev/.

At the very least, do you know what IR hardware you have?

Last edited by spankbot; 05-19-2011 at 06:09 PM.
Old 05-20-2011, 09:04 AM   #3
LQ Newbie
Registered: Apr 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the reply!
Reboot! Surely you jest, isn't that for Windoz only! (just kidding)
The loadable kernel modules I'm using are lirc_serial.ko and lirc_dev.ko

Interestingly, I was able to get things working if I did 'make', then manually loaded these two modules using insmod. I manually started lircd, then I was able to run mode2 and irrecord successfully, recording all the buttons from my Sony XDR-F1HD Tuner remote (sony_rmt-cf1a.conf).

(When I install lirc_serial.ko manually the device /dev/lirc0 is created so I must use the --device=/dev/lirc0 command line arg (or is it --driver=..., I forget). There is no /dev/lirc device)

I'm still sorting through why 'make install' doesn't work at all for me, I find that VERY strange, since it must be working for many other people out there.

Also, I'm trying to get transmits to work, I have to build lirc_serial.ko with CONFIG_LIRC_SERIAL_TRANSMITTER defined.
Old 06-02-2011, 01:12 PM   #4
LQ Newbie
Registered: Apr 2011
Posts: 10

Original Poster
Rep: Reputation: 0
More info on installing LIRC on Fedora 14

I'll reply to myself, I got some key info in a few e-mails that might be useful to other newbie's:
Note: I'm running kernel

1) Read the LIRC.ORG documentation but DON'T do everything it says. Fedora 14 (and probably latest versions of other distros) include the loadable kernel modules lirc_*.ko with the distro. Use the loadable kernel modules from the distro, no need to build yours, in fact you'll probably break things if you do 'make install'

2) Just so it's clear to other newbie's: lirc_serial.ko requires that lirc_dev.ko be installed first. lirc_serial.ko also requires control over the serial port so make sure you execute(for COM1): 'sudo setserial /dev/ttyS0 uart none port 0 irq 0' to disable the base system control of COM1 before you install lirc_serial.ko

3) I found that I needed to specify the device /dev/lirc0 because my build defaulted to /dev/lirc which is not created by lirc_serial.ko. On my Fedora 14 install, loading lirc_serial.ko creates the device file /dev/lirc0, so whenever I execute a program such as lircd or irsend I had to specify the device using the cmd line arg '-d /dev/lirc0'
I saw the following 2009 note in the history about lirc0 being the default, I haven't quite figured out why my programs don't default to the correct device, I'll post again when I figure this out.

2009-07-21 - Jarod Wilson 0.8.6-0.3.pre1
- Set up tools to use /dev/lirc0 instead of /dev/lirc by default
Old 06-06-2011, 10:33 AM   #5
LQ Newbie
Registered: Apr 2011
Posts: 10

Original Poster
Rep: Reputation: 0
I solved this issue with your help, thanks...

I found that most of my issues came from following the installation instructions on I would like to volunteer to update those instructions, especially for users relatively new to Linux that don't know any better (like me!). My updates would need to be reviewed I think since I'm brand new to these forums. Here's what I would add for newbie's on

1) Please read through all the LIRC docmentation to familiarize yourself with the LIRC project and its history. When it is time to setup your Fedora 14 system please follow these updated instructions.

Updated LIRC instructions for users new to Linux.
Getting started with your home-brew serial IR receiver/transmitter:

First: Get lirc running manually:
1) Install Fedora 14, or later
Open a terminal

2) Manually free up the serial port your home-brew hardware will use, in this sample, COM1.
'sudo setserial /dev/ttyS0 uart none port 0 irq 0'

3) Manually load the lirc_dev.ko and lirc_serial.ko loadable kernel modules. First you need
to locate them using the find command:
'sudo find / -name lirc_*.ko'
On my system they were found here:

Load them using insmod, you must load lirc_dev.ko first:
'sudo insmod /lib/modules/'
'sudo insmod /lib/modules/'

After lirc_serial.ko is loaded you will see the device file /dev/lirc0 has been created. To allow
any user access to the lirc0 device change the permissions of the device file:
'sudo chmod 666 /dev/lirc0'

4) Install the usermode lirc software using the following command:
'sudo yum install lirc-*'
I'm sure you can do the same thing using the GUI Add/Remove Software tool but I didn't use it.

5) You may need to change permission on the files in /var/run/lirc:

6) Copy your LIRC config file to /etc/lirc/lircd.conf if you have one

7) Run the lircd daemon using its default settings: 'sudo lircd'

8)Run usermode lirc tools, mode2, irrecord, irsend

Second: To have LIRC startup at system boot time:
(Still on Fedora 14
1) Use the "Services" tool to Enable & Start LIRCD at system startup.
2) Add the following lines to your /etc/rc.d/rc.local startup script

# Stop the COM1 module and load the lirc_serial modules
setserial /dev/ttyS0 uart none port 0 irq 0
insmod /lib/modules/
insmod /lib/modules/

Note: There are probably smarter ways to disable COMn support

Ubuntu 10.04 LTS setup is similar but not exactly the same.
A notable difference on my Ubuntu setup was that the lirc tools use /dev/lirc by default so you must specify '-d /dev/lircd' for the tools to find the socket and '-d /dev/lirc0' for the tools to find the hardware serial port. Example: irsend needs /dev/lircd while irrecord needs /dev/lirc0, very confusing. I need to confirm this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lirc-0.9.0 installs on Fedora13 but /dev/lirc_serial is missing? FalkiD Fedora 11 12-13-2011 10:50 AM
Odd behaviour from LIRC /dev/input Akdor 1154 Linux - Software 0 03-04-2008 05:33 AM
Lirc not correctly installed Arla Linux - Hardware 4 07-14-2007 11:21 AM
/dev/lirc does not exist unholy Linux - Software 0 12-03-2004 06:26 PM
Lirc Won't Compile Igman Linux - General 4 01-20-2004 09:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration