Help - Search - Members - Calendar
Full Version: Howto: Mandriva Linux 2006 + lirc
MandrivaUsers.org > General Help > Tips and Tricks
devries
Mandriva has finally updated lirc to version 0.71 so that it can be used by the remotes that come with the popular Hauppaugge WinTV cards. There are many places on the web that help you get lirc working. For example aRTee has a very good article on his website that explains how you should get lirc working (link). However for most people the following short explenation should be enough:

-1- intall 'lirc-0.7.1-5mdk' and 'lirc-remotes-0.6.6-4mdk'.

-2- copy from /usr/share/lirc-remotes the lircd.conf for your remote to /etc (for example for the Hauppauge remotes: cp /usr/share/lirc-remotes/hauppauge/lircd.conf.hauppauge /etc/lircd.conf

-3- Open with your favorite text editor '/etc/sysconfig/lircd' and change the 'DRIVER=xxxxxx' line to 'DRIVER=DEFAULT' and the 'HWMOD=xxxxx' line to HWMOD=<the lirc module for your card. (for example for the Hauppage card: lirc-i2c)

-4- Open the Mandriva Control Center, system, services and start the 'lircd' service.

-5- open a console and type: irw (if you get a permission problem, log in as root and type: chomd 666 /dev/lirc/0). Press some buttons on your remote ad you should get to see soem output.

Good luck. smile.gif
josk
I'll test your HowTo. Only problem is that I have homebrew IR module and Kingman 12 in 1 Universal Remotecontrol. I found couple conf files for remote. I hope it will work.

Mine IR module:


Do you think that in my case I have to put these options?

CODE
# Hardware driver module to load
HWMOD=lirc_serial

DEVICE=/dev/lirc/serial

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


Ok, that doesnt seems to work for me. Lircd service start just ok but i dont find: /dev/lirc/serial

I also did: modprobe lirc_serial

What I should to do next???
devries
What happens when you start irw? Perhaps a /dev/serial getīs created instead of /dev/lirc/serial?
josk
QUOTE (devries @ Oct 21 2005, 01:46 PM)
What happens when you start irw? Perhaps a /dev/serial getīs created instead of /dev/lirc/serial?
*


Starting lircd service (service lircd start) it creates /dev/lirc/0
Starting IRW -> Nothing. Just back to the command line [root@domain.com]#

I cant understand why that /dev/lirc/0 is created cause I have configured to use lirc_serial instead???
devries
Try linking 0 to serial (ln -s /dev/lirc/0 /dev/lirc/serial) while you figure it out. smile.gif
josk
QUOTE (devries @ Oct 22 2005, 08:22 AM)
Try linking 0 to serial (ln -s /dev/lirc/0 /dev/lirc/serial) while you figure it out. smile.gif
*


I made that symbolic link. When I start IRW it hangs on. So I start pressing buttons of my remotecontrol but nothing happends. More tips?
devries
If IRW 'hangs' that is good. You probably only need to try a different lirc.conf.
k3nz0o
QUOTE (devries @ Oct 21 2005, 02:37 AM)
Mandriva has finally updated lirc to version 0.71 so that it can be used by the remotes that come with the popular Hauppaugge WinTV cards. There are many places on the web that help you get lirc working. For example aRTee has a very good article on his website that explains how you should get lirc working (link). However for most people the following short explenation should be enough:

-1- intall 'lirc-0.7.1-5mdk' and 'lirc-remotes-0.6.6-4mdk'.

-2- copy from /usr/share/lirc-remotes the lircd.conf for your remote to /etc (for example for the Hauppauge remotes: cp /usr/share/lirc-remotes/hauppauge/lircd.conf.hauppauge /etc/lircd.conf   

-3- Open with your favorite text editor '/etc/sysconfig/lircd' and change the 'DRIVER=xxxxxx' line to 'DRIVER=DEFAULT' and the 'HWMOD=xxxxx' line to HWMOD=<the lirc module for your card. (for example for the Hauppage card: lirc-i2c)

-4- Open the Mandriva Control Center, system, services and start the 'lircd' service.

-5- open a console and type: irw (if you get a permission problem, log in as root and type: chomd 666 /dev/lirc/0). Press some buttons on your remote ad you should get to see soem output.

Good luck. smile.gif
*


I got pixelview playtv pro here ( bt878 chipset )
I already follow the steps

cp /usr/share/lirc-remotes/pixelview/lircd.conf.playtv_pro to /etc/lircd.conf
and then edit /etc/sysconfig/lircd
I use lirc_i2c as the HWMOD, I dont if this is the right type for my PixelView
then I restart my lirc daemon... then I do "dmesg"

it said :

lirc_dev: IR Remote Control driver registered, at major 61
rivatv: Video4Linux driver for NVIDIA cards
rivatv: Version 0.8.5
rivatv: MMX processor extension enabled
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.2.0 (rc3f) loading
ivtv: Linux version: 2.6.12-12mdk 686 gcc-4.0
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: ==================== END INIT IVTV ====================
cx2388x v4l2 driver version 0.0.4 loaded
lirc_dev: IR Remote Control driver registered, at major 61
The bttv_* interface is obsolete and will go away,
please use the new, sysfs based interface instead.
lirc_gpio (-1): card type 0x25, id 0x0
lirc_dev: lirc_register_plugin: sample_rate: 12
lirc_gpio (0): driver registered


then I type "irw" as normal user
[kenzo@kenzo ~]$ irw
connect: Connection refused

whats that mean ??
devries
See step 5 smile.gif
hantulennon
QUOTE (k3nz0o @ Dec 25 2005, 09:07 PM) *
I got pixelview playtv pro here ( bt878 chipset )
I already follow the steps

cp /usr/share/lirc-remotes/pixelview/lircd.conf.playtv_pro to /etc/lircd.conf
and then edit /etc/sysconfig/lircd
I use lirc_i2c as the HWMOD, I dont if this is the right type for my PixelView
then I restart my lirc daemon... then I do "dmesg"

it said :

lirc_dev: IR Remote Control driver registered, at major 61
rivatv: Video4Linux driver for NVIDIA cards
rivatv: Version 0.8.5
rivatv: MMX processor extension enabled
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.2.0 (rc3f) loading
ivtv: Linux version: 2.6.12-12mdk 686 gcc-4.0
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: ==================== END INIT IVTV ====================
cx2388x v4l2 driver version 0.0.4 loaded
lirc_dev: IR Remote Control driver registered, at major 61
The bttv_* interface is obsolete and will go away,
please use the new, sysfs based interface instead.
lirc_gpio (-1): card type 0x25, id 0x0
lirc_dev: lirc_register_plugin: sample_rate: 12
lirc_gpio (0): driver registered


then I type "irw" as normal user
[kenzo@kenzo ~]$ irw
connect: Connection refused

whats that mean ??


open /etc/sysconf/lirc
fill driver with "default"
fill module with "lirc_gpio"
if device is "/dev/lirc", comment it (#) and uncomment device "/dev/input/ir"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.