MandrivaUsers.org : Lirc_serial_home for 2006RC2 [solved] - MandrivaUsers.org

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Lirc_serial_home for 2006RC2 [solved] Kernel module for 2.6.12-12mdk 2006RC2

#1 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 29 October 2005 - 02:51 AM

Hi ,
I was trying to use aRTee's 10.1 lirc_serial_home.ko for my home made IR receiver in 2006RC2.
when i do modprobe:

[root@localhost ~]# modprobe lirc_serial_home
FATAL: Error inserting lirc_serial_home (/lib/modules/2.6.12-12mdk/kernel/3rdparty/lirc/drivers/lirc_serial/lirc_serial_home.ko): Invalid module format

Is this due to incorrect kernel version?

This modeule worked fine in 101.1.

Is this module availble anywhere for 2006 Rc2 please?

Ben

[moved from Hardware by spinynorman]
0

#2 User is offline   devries 

  • paashaas
  • Group: Members
  • Posts: 4,120
  • Joined: 10-August 03

Posted 29 October 2005 - 06:52 AM

Yes. Why don t you try the lirc rpm packages? Mandriva 2006 comes with lirc 0.71 and it should work with most remotes.

http://mandrivausers...showtopic=28910
0

#3 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 30 October 2005 - 01:38 AM

I am using lirc-0.7.1-5mdk,liblirc0-0.7.1-5mdk & lirc-remotes-0.6.6-4mdk packages.
My /etc/sysconfig/lircg
==================
DRIVER=DEFAULT

# Hardware driver module to load
HWMOD=lirc_serial

# with devfs enabled
DEVICE=/dev/lirc/0
#DEVICE=/dev/lirc/serial

# Serial port for the receiver (for serial driver)
# COM1 (/dev/ttyS0)
COM_PORT=/dev/ttyS0
DRIVER_OPTS="irq=4 io=0x3f8"

/etc/modprobe.conf
================
alias char-major-61-0 lirc_serial
options lirc_serial irq=4 io=0x3f8

irw don't give anything unlike with Madrake10.1

any help is much appreciated.

Ben
0

#4 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 30 October 2005 - 02:24 AM

A bit more from my system:
[root@localhost dev]# ps -ef|grep lirc
root      4989     1  0 22:20 ?        00:00:00 lircd --driver=DEFAULT --device=/dev/lirc/0
root      5022     1  0 22:20 ?        00:00:00 lircmd
root      5030  4307  0 22:20 pts/0    00:00:00 grep lirc
[root@localhost dev]# irw


IRW just waits here...................
0

#5 User is offline   devries 

  • paashaas
  • Group: Members
  • Posts: 4,120
  • Joined: 10-August 03

Posted 30 October 2005 - 07:51 AM

Sounds like a problem with the lircd.conf. Do you still have the one from the 10.1 install?
0

#6 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 30 October 2005 - 09:47 AM

I deleted 10.1 and installed 2006RC.
But i kept lircd.conf file. My remote is not included in Lirc so I made the file using Winlirc and this file worked fine in 10.1

Are there additional debugging commands I can use to see what the problem is?

My lircd.conf file attached.

Thanks

Ben
Attached File  mr_remote.jpg (68.22K)
Number of downloads: 115

Attached File(s)


0

#7 User is offline   devries 

  • paashaas
  • Group: Members
  • Posts: 4,120
  • Joined: 10-August 03

Posted 30 October 2005 - 10:48 AM

http://www.lirc.org/html/help.html

Look in the lircd logs. Perhaps something can be found there. And try generating a lircd.conf. I noticed it's for 0.6xx.
0

#8 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 01 November 2005 - 05:24 AM

The lircd.conf format has not changed betweent lirc6.xx and 7.xx.
your info is incorrect.

If you remember aRtee had the same problem in 10.1 and aRTee made lirc_serial_home module for 101.

Once again Mandrake Team has left out lirc_serial_home module and pixelview module for Mandrake 2006 !

It is clearly dissapointing given this is a large distribution and a lot of people will be affected by this.

Ben
0

#9 User is offline   aRTee 

  • Mandriva Guru
  • Group: Members
  • Posts: 2,216
  • Joined: 08-November 02

Posted 01 November 2005 - 08:29 PM

I see the serial module in my system:

ll /lib/modules/2.6.12-12mdk/kernel/3rdparty/lirc/drivers/lirc_serial/
total 8
-rw-r--r-- 1 root root 6687 Sep 9 18:16 lirc_serial.ko.gz

So I don't know what your issue is, but it's not this.
What happens when you do (as root) :
lsmod
are any lirc modules present?
My desktop output:
lsmod | grep lirc
lirc_i2c 8036 1
lirc_dev 11812 1 lirc_i2c
i2c_core 17360 12 cx88xx,rivatv,lirc_i2c,asb100,i2c_sensor,i2c_viapro,tuner,tvaudio,msp3400,bttv,i
2c_algo_bit,tveeprom

Your /etc/sysconfig/lircd looks good to me...

What's your output of
ls -l /dev/lirc/0

On my mdv05le system (which also has a homebrew receiver), I have nothing in my /etc/modprobe.conf, and my /etc/sysconfig/lircd is practically identical to yours, minus that the device is /dev/lirc0 but other than that, no difference...
System specs.

Mandrake/Mandriva linux tips 4 free

"You can do things with a computer with a graphical user interface (GUI),
whereas a computer with a command line interface (CLI) can do things for you." - aRTee, May 2008
0

#10 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 02 November 2005 - 04:10 AM

Thanks for the reply. Below are my printouts:

[root@localhost dev]# ls -l /dev/lirc/0               
crw-rw----  1 root root 61, 0 Oct 31 21:53 /dev/lirc/0
[root@localhost dev]# 

[root@localhost dev]# ls -l /dev|grep lirc               
drwxr-xr-x  2 root root           60 Oct 31 21:53 lirc/
srw-rw-rw-  1 root root            0 Oct 31 21:53 lircd=
prw-r--r--  1 root root            0 Oct 31 21:53 lircm|


lsmod
======
Module                  Size  Used by
lirc_serial            11712  1 
lirc_dev               11812  1 lirc_serial
md5                     3584  1 
ipv6                  234016  8 
raw                     6592  1 
snd_seq_dummy           2532  0 
snd_seq_oss            31136  0 
snd_seq_midi_event      5696  1 snd_seq_oss
snd_seq                46960  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6828  3 snd_seq_dummy,snd_seq_oss,snd_seq
-------<cut>_-----------
sis_agp                 6052  1 
agpgart                29032  1 sis_agp
bt878                   8184  0 
bttv                  148944  1 bt878
video_buf              17060  1 bttv
firmware_class          7456  1 bttv
i2c_algo_bit            8488  1 bttv
v4l2_common             4640  1 bttv
btcx_risc               3912  1 bttv
tveeprom               11512  1 bttv
i2c_core               17360  3 bttv,i2c_algo_bit,tveeprom
videodev                7104  1 bttv
tsdev                   5984  0 
ohci_hcd               19140  0 
usbcore               108348  2 ohci_hcd


modprobconfig
============
alias sound-slot-0 snd-intel8x0
remove snd-intel8x0 /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-intel8x0
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe ohci-hcd; /bin/true

#********LIRC*************
#alias char-major-61-0 lirc_serial
#options lirc_serial irq=4 io=0x3f8


options bttv tuner=5 card=37
----------------------------------------------------------------------------------------
I got lirc_serial in /lib/modules/2.6.12-12mdk/kernel/3rdparty/lirc/drivers/lirc_serial/


I was going to use the pixelview (TV Card ) lirc but I can't see pixelview driver for it iin /lib/modules/2.6.12-12mdk/kernel/3rdparty/lirc/drivers/....

lircd --driver=? lists pixelview as a valid driver

When lircd/lircmd works properly can you move the mouse pointer with the remote similar to normal mouse?

Thanks
Ben
0

#11 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 02 November 2005 - 07:56 AM

Another intresting post:
http://sourceforge.net/mailarchive/forum.p...1&forum_id=5339
0

#12 User is offline   aRTee 

  • Mandriva Guru
  • Group: Members
  • Posts: 2,216
  • Joined: 08-November 02

Posted 02 November 2005 - 08:31 PM

From what lsmod tells, the driver is there, so that's not the problem.

From what I gather, pixelview is not a kernel driver - so you won't find it there. It's a userspace driver, and I'm not sure if I get it correctly, but the output of lircd --driver=? actually confirms that it is available, so just put it in the conf file /etc/sysconfig/lircd and it should be used. Check with
ps -ef | grep lirc
if it is indeed used.

What happens if you do:
service lircd stop
irrecord /dev/lirc/0
and then follow instructions?

Or if you do:
cat /dev/lirc/0
and press some buttons?

Are you sure your dongle didn't break in the meantime?
System specs.

Mandrake/Mandriva linux tips 4 free

"You can do things with a computer with a graphical user interface (GUI),
whereas a computer with a command line interface (CLI) can do things for you." - aRTee, May 2008
0

#13 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 03 November 2005 - 07:37 AM

Hi,
Thanks for the suggessions. Here's what I did;

Test1
=====
Checked serial dongle with Winlirc and made c lircd.conf file - dongle works fine

Test2
=====
[root@localhost ~]# service lircd stop
Stopping Linux Infrared Remote Control daemon: [ OK ]
[root@localhost ~]# irrecord /dev/lirc/0
irrecord: could not open file /dev/lirc/0
irrecord: No such file or directory
********************************************************************************
******************************
Starting Linux Infrared Remote Control daemon: [ OK ]
[root@localhost dev]# irrecord /dev/lirc/0

<*****Button Press Here no OUtput*****>

[root@localhost dev]#
[root@localhost dev]#
[root@localhost dev]#
[root@localhost dev]#
[root@localhost dev]#

********************************************************************************
******************************
[root@localhost ~]# ps -ef|grep lirc
root 2867 1 0 02:06 ? 00:00:00 lircd --driver=DEFAULT --device=/dev/lirc/0
root 2969 1 0 02:06 ? 00:00:00 lircmd
root 3382 3307 0 02:14 pts/0 00:00:00 grep lirc
[root@localhost ~]# service lircd stop
Stopping Linux Infrared Remote Control daemon: [ OK ]
[root@localhost ~]# ps -ef|grep lirc
[root@localhost ~]# irrecord /home/test.conf

irrecord - application for recording IR-codes for usage with lirc

Copyright © 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not init hardware (lircd running ? --> close it, check permissions)
[root@localhost ~]#
********************************************************************************
******************************
[root@localhost ~]# service lircd start
Starting Linux Infrared Remote Control daemon: [ OK ]
[root@localhost ~]# ps -ef|grep lirc
root 3463 1 0 02:16 ? 00:00:00 lircd --driver=DEFAULT --device=/dev/lirc/0
[root@localhost ~]# irrecord /home/test.conf

irrecord - application for recording IR-codes for usage with lirc

Copyright © 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not init hardware (lircd running ? --> close it, check permissions)

[root@localhost ~]# ls -la /etc/lircd.conf
-rw-r--r-- 1 root root 1434 Oct 27 04:28 /etc/lircd.conf
[root@localhost ~]# ls -la /etc/lircmd.conf
-rw-r--r-- 1 root root 194 Nov 1 02:27 /etc/lircmd.conf
[root@localhost ~]#

********************************************************************************
*************************

Step 3
========
[root@localhost dev]# ps -ef|grep lirc
root 3540 3346 0 02:21 ? 00:00:00 leafpad lircd
root 3575 1 0 02:23 ? 00:00:00 lircd --driver=DEFAULT --device=/dev/lirc/0
root 3604 3307 0 02:28 pts/0 00:00:00 grep lirc
[root@localhost dev]# ls -l /dev/lirc
total 0
crw-rw---- 1 root root 61, 0 Nov 2 02:23 0
[root@localhost dev]# cat /dev/lirc/0
<<<*****Button Press Here No Output************>>>

********************************************************************************
***************************
/var/log/messages
=================
Nov 2 02:19:27 localhost lircd: lircd shutdown succeeded
Nov 2 02:23:46 localhost kernel: lirc_dev: IR Remote Control driver registered, at major 61
Nov 2 02:23:47 localhost kernel: lirc_serial: auto-detected active high receiver
Nov 2 02:23:47 localhost kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Nov 2 02:23:47 localhost lircd-0.7.1[3575]: lircd(any) ready
Nov 2 02:23:47 localhost lircd: lircd startup succeeded
Nov 2 02:31:24 localhost lircd-0.7.1[3575]: caught signal
Nov 2 02:31:24 localhost lircd: lircd shutdown succeeded
/var/log/lircd
============
Empty file.

Do I have a permission file problem ? Pl check Step3

Ben
0

#14 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 03 November 2005 - 09:41 AM

Latest Update
====================
I followed the advice and installed mm kernel and Lirc worked straight away. No changes were neccessary to anything else. Many thanks

Now I am back to my original problem :

How to get Lirc Mouse working
(My aim is to get Lirc mouse pointer moving on the desktop just like using a normal mouse)

My lircmd.conf file is incorrect. I hand typed this file. could you please help.

/var/log
==========
Nov 2 04:10:52 localhost lircmd: invalid line 13 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 14 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 16 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 17 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 19 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 20 in config file ignored
Nov 2 04:10:52 localhost lircmd: invalid line 22 in config file ignored


.........this continues

My lircd.conf & lircmd.conf files are attached.

Any suggessions much appreciated.

Thanks :D/>

Ben

Attached File(s)


0

#15 User is offline   bbenn 

  • New Here
  • Group: Members
  • Posts: 25
  • Joined: 21-October 05

Posted 03 November 2005 - 10:12 AM

Lircmd problem solved
==================

Data you need from lircd.conf file

1) Name of the Remote

2) Name of the button to use


lircmd.conf File format should be as below:

MOVE_ N myremote up

Example:

MOVE_N Panasonic up
MOVE_S Panasonic down

........
Happy days Thanks aRTee I owe you a slab!

Happy Ben
P.S. sorry i can't PM your inbox is full

This post has been edited by bbenn: 03 November 2005 - 10:15 AM

0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users