Installation of IR receiver and VFD

From Erlands Wiki

Jump to: navigation, search

I have a iMON VFD on my computer chassi and I also has a IR receiver connected to the Hauppage PVR-150 card. These are installed the following way.

Contents

Installation of PVR-150 IR-receiver

  • 1. sudo apt-get install libtool autoconf automake1.9
  • 2. cd /usr/src
  • 3. umask 0002
  • 4. wget http://www.blushingpenguin.com/mark/lmilk/lirc-0.8.1-CVS-pvr150.tar.bz2
  • 5. tar xvjf lirc-0.8.1-CVS-pvr150.tar.bz2
  • 6. cd lirc-0.8.1-CVS-pvr150
  • 7. ./setup.sh
  • 8. Select your IR reciever, in my case its “TV-Card”/”Hauppage PVR-150 TV-card”
  • 9. Select save and run configure
  • 10. make
  • 11. sudo make install
  • 12. wget http://www.blushingpenguin.com/mark/lmilk/haup-ir-blaster.bin
  • 13. sudo cp haup-ir-blaster.bin /lib/firmware/
  • 14. sudo modprobe lirc_dev
  • 15. sudo modprobe lirc_pvr150
  • 16. Add “lirc_dev” and “lirc_pvr150″ to /etc/modules
  • 17. sudo cp contrib/lirc.debian /etc/init.d/lirc
  • 18. sudo chmod +x /etc/init.d/lirc
  • 19. Edit /etc/init.d/lirc and change /dev/lirc to /dev/lirc0 in all places
  • 20. Unzip and copy this lircd.conffile to /etc/lircd.conf
  • 21. sudo update-rc.d lirc defaults
  • 22. You should now be able to verify that the installation works by running “irw”, if you then push some buttons on the remote the irw program shall answer with the correct button name if everyting works. If you get a permission denied message run:
sudo chmod og+rw /dev/lirc0 

Preparation of linux kernel for building iMON VFD driver

  • 1. sudo apt-get install linux-source-2.6.15
  • 2. cd /usr/src
  • 3. umask 0002
  • 4. tar xjvf linux-source-2.6.15.tgz
  • 5. ln -s linux-source-2.6.15 linux
  • 6. cd linux
  • 7. cp /boot/config-`uname -r` .config
  • 8. make oldconfig
  • 9. make modules

Installation of iMON VFD

  • 1. wget http://myth.ster.me.uk/imon_vfd.tgz
  • 2. tar xvzf imon_vfd.tgz
  • 3. cd imon
  • 4. make -C /usr/src/linux SUBDIRS=$PWD modules
  • 5. sudo make install
  • 6. sudo modprobe imon_vfd
  • 7. Add “imon_vfd” to /etc/modules
  • 8. If everything works as it should you should now have a /dev/lcd0 device and you should be able to write to it by entering:
echo -n “Hello World” > /dev/lcd0
  • 9. If you get a permission deny message, enter:
sudo chmod og+w /dev/lcd0 

Installation of LCDd

  • 1. sudo apt-get install lcdproc
  • 2. sudo apt-get remove lcdproc
(I know the above feels stupid, but it leaves some init.d scripts which we wants)
  • 3. cd /usr/src
  • 4. umask 0002
  • 5. wget http://venky.ws/cgi-bin/ccount/click.php?id=1
  • 6. tar xvzf lcdproc-0.4.5-imon.tgz
  • 7. cd lcdproc-0.4.5-imon
  • 8. aclocal; autoheader; autoconf; automake -a
  • 9. ./configure
  • 10. make
  • 11. sudo make install
  • 12. sudo cp LCDd.conf /etc/.
  • 13. sudo cp scripts/init-LCDd.debian /etc/init.d/LCDd
  • 14. Edit /etc/init.d/LCDd and change:
etc=${prefix}/etc
To
etc=/etc
  • 15. sudo chmod +x /etc/init.d/LCDd
  • 16. sudo /etc/init.d/LCDd start
  • 17. update-rc.d lcdproc defaults
  • 18. sudo cp scripts/init-lcdproc.debian /etc/init.d/lcdproc
  • 19. sudo chmod +x /etc/init.d/lcdproc
  • 20. sudo /etc/init.d/lcdproc start
  • 21. update-rc.d lcdproc defaults

Connecting IR-receiver to MythTV

  • 1. Create a .lircrc file in your home directory, here is my .lircrc file
  • 2. If you want use the IR in MythTV:
sudo ln -s /home/mythtv/.lircrc /home/mythtv/.mythtv/lircrc 

References

Personal tools