Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with lirc not creating /dev/lirc/0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Thu Jul 13, 2006 4:03 pm    Post subject: Trouble with lirc not creating /dev/lirc/0 Reply with quote

I did the following:

emerge lirc (with hauppauge support)
/etc/init.d/lircd start

then lirc_dev and lirc_i2c were loaded (as told by lsmod)

but only /dev/lircd was created. No /dev/lirc or /dev/lirc/0. I didn't mess with the udev rules file and /etc/conf.d/lircd contains the following:
# Options to pass to the lircd process
LIRCD_OPTS="-d /dev/lirc/0"

I have i2c support built in to the kernel.

From dmesg:
lirc_dev: IR Remote Control driver registered, at major 61

From /var/log/messages:
Jul 13 11:50:36 andrewlinux lircd-0.8.0[9727]: caught signal
Jul 13 11:53:00 andrewlinux lircd-0.8.0[15143]: lircd(hauppauge) ready
Jul 13 11:54:03 andrewlinux lirc_dev: IR Remote Control driver registered, at ma
jor 61
Jul 13 11:55:46 andrewlinux lircd-0.8.0[15143]: caught signal
Jul 13 11:55:55 andrewlinux lircd-0.8.0[15228]: lircd(hauppauge) ready

When I try to run mode2:
mode2: error opening /dev/lirc/0
mode2: No such device

When I try to run cat /dev/lirc/0:
cat: /dev/lirc/0: No such device

I have tried to search these forums and google. There are tons of postings out there about this problem, but nobody seems to know how to fix it,, other than to make sure the udev rules are set correctly, which mine are.

Does anybody have any ideas? any possible log files that might give me more clues as to what I need to do?

I tried to do the following as found on a google search, but i get the same results:
mkdir /dev/lirc
mknod -m 666 /dev/lirc/0 c 61 0



EDIT:

Also, I tried unemerging lirc and deleting the /dev/lirc* files, then downloading the source and compiling it myself. The compile fails with the following errors:

Code:
  gcc -m32 -Wp,-MD,/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/.lirc_i2c.o.
d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include -D__KERNEL__
-Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -
Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -m
soft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=p
entium4  -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-stat
ement  -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/h
ome/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/../.. -I/lib/modules/2.6.17-ck1-r
1/build//include/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(l
irc_i2c)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_i2c)" -c -o /home/andrew/Desktop/li
rc-0.8.0/drivers/lirc_i2c/lirc_i2c.o /home/andrew/Desktop/lirc-0.8.0/drivers/lir
c_i2c/lirc_i2c.c
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: error: unknown
field `name' specified in initializer
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: warning: initia
lization makes integer from pointer without a cast
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: `I2C_DRI
VERID_EXP3' undeclared here (not in a function)
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: initiali
zer element is not constant
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: (near in
itialization for `driver.id')
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: unknown
field `flags' specified in initializer
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: `I2C_DF_
NOTIFY' undeclared here (not in a function)
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: initiali
zer element is not constant
/home/andrew/Desktop/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: (near in
itialization for `driver.class')


I don't really know what that has to do with anything. I'm not sure why emerge could build it fine but it won't when I do it myself?
Back to top
View user's profile Send private message
thdrcat
n00b
n00b


Joined: 30 Mar 2004
Posts: 43

PostPosted: Sat Jul 15, 2006 9:49 pm    Post subject: Reply with quote

I am having the same problem.
Back to top
View user's profile Send private message
nagjames
n00b
n00b


Joined: 16 Jul 2005
Posts: 11
Location: vancouver

PostPosted: Mon Jul 17, 2006 3:18 am    Post subject: Reply with quote

same here

just did an emerge world after 2 months. mythtv is working fine but lirc-0.8.0-r3 doesn't create the device.
even if I create the device manually it still fails

tux udev # lircd -n
lircd-0.8.0[27183]: lircd(hauppauge) ready
lircd-0.8.0[27183]: accepted new client on /dev/lircd
lircd-0.8.0[27183]: could not open /dev/lirc/0
lircd-0.8.0[27183]: default_init(): No such device
lircd-0.8.0[27183]: caught signal
Terminated
tux udev #

after starting irw in a different shell

jtux samba # lsmod|grep lirc
lirc_i2c 10244 0
lirc_dev 14836 1 lirc_i2c
i2c_core 20992 13 lirc_i2c,cx88xx,bttv,it87,i2c_isa,wm8775,cx25840,tda9887,nvidia,tuner,ivtv,i2c_algo_bit,tveeprom
tux samba #

dmesg:
lirc_dev: IR Remote Control driver registered, at major 61
_________________
Sempron 2400+, MB 741GX-M, 512RAM 100GB HD, Hauppauge wintv-pvr150, fx5200 DVI out, SONY 42" EDTV
AMD 3800+ dual core, A8N-VM CSM, 2x1Gb RAM 200Gb Seagate HDD
Back to top
View user's profile Send private message
mlcraig58
n00b
n00b


Joined: 08 Apr 2005
Posts: 11
Location: Dallas, TX

PostPosted: Thu Jul 27, 2006 8:50 pm    Post subject: Reply with quote

I was having this problem as well. I'm using the lirc_mceusb2 module. To get it to work I manually load the module using "modprobe lirc_mceusb2". This created /dev/lirc0. I then manually started lircd with "lircd -d /dev/lirc0". I added these two commands to my /etc/conf.d/local.start file so they would load at reboot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum