[mythtv-users] Can't open /dev/lirc error

Christopher Flynn flynnguy at gmail.com
Wed Oct 20 03:18:10 UTC 2004


I'm not familiar with your exact setup (I have a homebrew serial IR)
but it looks like your lirc_serial isn't loaded. I have 2 devices in
my lsmod: (lsmod | grep lirc)
lirc_serial            12768  0 
lirc_dev               13452  1 lirc_serial

It appears that you have the lirc_dev module loaded but not the actual
driver for your device. In your modprobe.conf you will need to load
you lirc_<device> where device is the type of IR you compiled the
device for. In my case it's lirc_serial.

If the device isn't properly loaded it will give you the:
could not open /dev/lirc
default_init(): No such device
error.
-Chris

On Tue, 19 Oct 2004 22:51:10 -0400, John <waligory at gmail.com> wrote:
> I'm having some troubles getting lirc to work.  I've been over it a
> few times now and I still can't seem to figure it out. I've been
> following Jarrod's excellent guide but I just seem to be stuck.  I'd
> rather try to figure my problem out than reformat it (again).  I'm
> using a PVR-350 with a grey hauppage remote running on FC2 (Kernel
> 2.6.8-1.521).  Everything else seems to be working just fine.  Sorry
> for all the detail in this post but I was hoping someone can just look
> at this and realize where I messed up.  Any help would be much
> appreciated.
> 
>  /var/log/messages is as follows:
> Oct 18 23:17:25 MYTHTV kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
> Oct 18 23:17:25 MYTHTV kernel: lirc_dev: lirc_register_plugin:sample_rate: 10
> Oct 18 23:17:50 MYTHTV lircd 0.7.0pre8[3480]: lircd(any) ready
> Oct 18 23:17:50 MYTHTV lircd: lircd startup succeeded
> Oct 18 23:18:00 MYTHTV lircd 0.7.0pre8[3480]: accepted new client on /dev/lircd
> Oct 18 23:18:05 MYTHTV lircd 0.7.0pre8[3480]: removed client
> Oct 18 23:20:01 MYTHTV lircd 0.7.0pre8[3480]: caught signal
> Oct 18 23:20:01 MYTHTV lircd: lircd shutdown succeeded
> Oct 18 23:21:35 MYTHTV lircd 0.7.0pre8[2284]: lircd(any) ready
> Oct 18 23:21:35 MYTHTV lircd: lircd startup succeeded
> Oct 18 23:22:03 MYTHTV lircd 0.7.0pre8[2284]: accepted new client on /dev/lircd
> Oct 18 23:22:03 MYTHTV kernel: lirc_dev: IR Remote Control driver
> registered, at major 61
> Oct 18 23:22:03 MYTHTV lircd 0.7.0pre8[2284]: could not open /dev/lirc
> Oct 18 23:22:03 MYTHTV lircd 0.7.0pre8[2284]: default_init(): No such device
> Oct 18 23:22:03 MYTHTV lircd 0.7.0pre8[2284]: caught signal
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# ls -la /dev |grep lirc
> c---------   1 root   root    61,   0 Oct 11 14:34 lirc
> srw-rw-rw-   1 root   root          0 Oct 19 22:03 lircd
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# rpm -qa |grep lirc
> kernel-module-lirc-2.6.8-1.521-0.7.0-41_pre8.rhfc2.at
> lirc-0.7.0-41_pre8.rhfc2.at
> lirc-lib-0.7.0-41_pre8.rhfc2.at
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# rpm -qa ivtv
> ivtv-0.1.10-48.3_pre2_ck100zz.rhfc2.at
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# /sbin/lsmod
> Module                  Size  Used by
> lirc_dev               10636  0
> snd_mixer_oss          14017  2
> snd_intel8x0           30829  3
> snd_ac97_codec         58821  1 snd_intel8x0
> snd_pcm                83529  1 snd_intel8x0
> snd_timer              25413  1 snd_pcm
> snd_page_alloc          8393  2 snd_intel8x0,snd_pcm
> gameport                4033  1 snd_intel8x0
> snd_mpu401_uart         7361  1 snd_intel8x0
> snd_rawmidi            21733  1 snd_mpu401_uart
> snd_seq_device          6473  1 snd_rawmidi
> snd                    45477  10
> snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
> soundcore               7713  3 snd
> ivtv_fb                22400  0
> msp3400                22036  0
> saa7127                10248  0
> saa7115                10628  0
> tuner                  17944  0
> tveeprom                9248  0
> ivtv                  781348  1 ivtv_fb
> i2c_algo_bit            7497  1 ivtv
> i2c_core               17345  6
> msp3400,saa7127,saa7115,tuner,tveeprom,i2c_algo_bit
> videodev                7105  1 ivtv
> parport_pc             21249  1
> 
> ....continues
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# dmesg |grep ivtv
> ivtv: ==================== START INIT IVTV ====================
> ivtv: version 0.1.10 (0.1.10-48.3_pre2_ck100zz.rhfc2.at) loading
> ivtv: Linux version: 2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3
> ivtv: In case of problems please include the debug info
> ivtv: between the START INIT IVTV and END INIT IVTV lines when
> ivtv: mailing the ivtv-devel mailinglist.
> ivtv: Autodetected WinTV PVR 350 card
> ivtv: Found an iTVC15 based chip
> ivtv: pci: PCIBUS detected device: 0x2570 vendor: 0x8086
> ivtv: i2c attach [client=tveeprom[0],ok]
> ivtv: Tuner Type 2, Tuner formats 0x00001000, Radio: yes, Model
> 0x00a93493, Revision 0x00000001
> ivtv: NTSC tuner detected
> ivtv: Radio detected
> tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
> ivtv: i2c attach [client=(tuner unset),ok]
> saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
> ivtv: i2c attach [client=saa7115[0],ok]
> ivtv: i2c attach [client=saa7127[0],ok]
> ivtv: i2c attach [client=MSP3448W-A2,ok]
> ivtv: Encoder revision: 0x02040011
> ivtv: Decoder revision: 0x02020023
> ivtv: Configuring WinTV PVR 350 card with 9 streams
> ivtv: Create DMA stream 0 using 128 buffers of size 32768
> ivtv: Create DMA stream 1 using 128 buffers of size 32768
> ivtv: Create stream 2 using 128 buffers of size 52224
> ivtv: Create DMA stream 3 using 128 buffers of size 32768
> ivtv: Create stream 4
> ivtv: Create DMA stream 5 using 16 buffers of size 32768
> ivtv: Create stream 6 using 128 buffers of size 4096
> ivtv: Create stream 7
> ivtv: Create DMA stream 8 using 16 buffers of size 32768
> ivtv: Setting Tuner 2
> tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by
> ivtv i2c driver #0
> ivtv: Setting audio matrix to input 3, output 1
> ivtv: Switching standard to NTSC.
> ivtv: Initialized WinTV PVR 350, card #0
> ivtv: ====================  END INIT IVTV  ====================
> ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
> ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and
> has 1704960 bytes.
> ivtv-osd: screen coords: [0 0] -> [720 480]
> ivtv-osd: original global alpha = 208
> ivtv-osd: current OSD state = 39
> ivtv-osd: new global alpha = 208 (1 255 0)
> ivtv-osd: Good video_base is inside valid allocated space.
> ivtv-osd: framebuffer at 0xed510000, mapped to 0x22584000, size 1350k
> ivtv-osd: mode is 720x480x32, linelength=2880
> ivtv-osd: fb0: iTVC15 TV out frame buffer device
> ivtv: v4l2 ioctl: set frequency 7412
> ivtv: Finished with Mute
> ivtv: VIM Restart
> ivtv: OSD wait done at 0 jiffies.
> ivtv: v4l2 ioctl: set frequency 7508
> ivtv: Finished with Mute
> ivtv: VIM Restart
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# /sbin/chkconfig --list |grep -e lirc -e myth
> mythbackend     0:off   1:off   2:on    3:on    4:on    5:on    6:off
> lircd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
> 
> +++++++++++++++++++++++++++++++++++++++++++
> 
> [root at MYTHTV mythtv]# cat /etc/modprobe.conf
> alias eth0 tg3
> alias scsi_hostadapter ata_piix
> alias snd-card-0 snd-intel8x0
> install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&
> /usr/sbin/alsactl restore >/dev/null 2>&1 || :
> remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ;
> }; /sbin/modprobe -r --ignore-remove snd-intel8x0
> 
> alias char-major-61 lirc_i2c
> 
> alias usb-controller ehci-hcd
> alias usb-controller1 uhci-hcd
> 
> # ivtv modules setup
> alias char-major-81 videodev
> alias char-major-81-0 ivtv
> 
> install ivtv /sbin/modprobe --ignore-install ivtv; /sbin/modprobe ivtv-fb
> 
> install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install lirc_i2c
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 
> 
> 


-- 
You must be the change you wish to see in the world. - Gandhi


More information about the mythtv-users mailing list