[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: [LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis) (/showthread.php?tid=40290) |
[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis) - cofin - 2008-11-13 Over the past few days, I have been configuring my new Antec MicroFusion Remote case to work with LIRC and LCDproc. Here is what I did to get it to work in XBMC on Ubuntu 8.04.1 and 8.10 (I had some issues getting my audio to work in Intrepid, so I reverted back to Hardy): Before starting, I wanted to make sure I had everything I needed. Here is what I ran: Code: sudo apt-get install lirc-modules-source cvs build-essential dialog libtool automake1.9 autoconf Next, you need to make sure you don't load the usbhid driver for the iMON device: Code: sudo mount -t usbfs none /proc/bus/usb You will want to look for the device that has Vendor=152c and ProdID=0038. In that device's block, you will see a section labeled "Driver". If it says "none", you can skip the next step and continue with the install. If it reads "usbhid", enter the following: Code: sudo /etc/modprobe.d/usbhid Add the following line to the usbhid file: Code: options usbhid quirks=0x15c2:0x0038:0x0004 Now run this: Code: sudo depmod -ae You will now need to reboot. The device should now no longer read usbhid in the driver section. You can check this be running the "cat cat /proc/bus/usb/devices" line again. Once you have ensured that the Driver section reads "None" continue with the next step. We need to check out the latest version of LIRC from CVS. Find a suitable directory to store the files, and run these commands: Code: cvs -d:pserver:[email protected]:/cvsroot/lirc login After running setup.sh, you will see a setup screen. Select the following: Driver configuration ->USB Devices -->Soundgraph iMON IR/LCD The select "Save configuration and run configure" Run the following: Code: make Modify the following command to match where you have downloaded the LIRC files. For Ubuntu 8.0.4.1: Code: sudo cp .CVS/lirc/drivers/lirc_imon/lirc_imon.c /usr/src/lirc-0.8.3~pre1/drivers/lirc_imon Code: sudo cp .CVS/lirc/drivers/lirc_imon/lirc_imon.c /usr/src/lirc-0.8.3/drivers/lirc_imon Finally, run this command: Code: sudo dpkg-reconfigure lirc-modules-source If all goes well, you should be able to reboot and have your device recognized. You can check this by running the same cat /proc/bus/usb/device command and look in the driver section. It should now read "imon_lcd". Now, you are ready to setup the lirc.conf file. The case that I have comes with a crappy remote that only has a few buttons on it. I wanted to use the old MCE remote I've had for ages to control XBMC. If you have one of these remotes, you can use the following commands to get it set up: Code: sudo nano /etc/lircd.conf Paste the following into the file, overwriting anything that was there before: Code: #Allows the old MCE remote to work with Antec MicroFusion The new Antec IR/LCD devices actually create two lirc devices. This caused much frustration until I figured out that I needed to launch 2 lirc instances. You can now start the two instances of LIRCD. Code: sudo /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 If all is well, you should now be able to run the the command "irw". After executing, press buttons on your remote and you should see them appear in your console. You can also check your LIRC installations by running the following commands: Code: sudo chmod 777 /dev/lcd0 The LCD should now display the clock (it is not the correct time, though). If you see the display change, you are ready to install LCDproc. Clear your LCD screen by running this: Code: sudo perl -e 'print pack "H*", "4000000000000088"' > /dev/lcd0 Download the LCDproc files and required patches: Code: wget http://internap.dl.sourceforge.net/sourceforge/lcdproc/lcdproc-0.5.2.tar.gz Extract the LCDproc files: Code: tar -zxvf lcdproc-0.5.2.tar.gz Code: cd lcdproc-0.5.2 Next you will want to make some changes to the LCD refresh rate. From what I've read, this increases the stability of the device Code: nano server/main.h Edit RENDER_FREQ. Change it from 8 to a lower number. I used 4 Install LCDProc now: Code: aclocal && autoconf && automake Code: patch /usr/local/etc/LCDd.conf ../LCDd.conf.patch You should now have a working LIRC and LCDproc. I ensured that everything restarted at reboot my modifying the crontab file: Code: sudo nano /etc/crontab Add the following lines at the end: Code: @reboot root /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 I'm sure there is a better method to do this, so perhaps someone will reply and let me know what to do. Last, but definitely not least, you have to configure XBMC to look for your new remote. I added this to my Lircmap.xml file: Code: <remote device="lirc0.conf"> When you restart XBMC, the remote should now work. Good luck! - cofin - 2008-11-13 I ran out of room on the original post. Here are my closing comments: I used the following sites to help get this installed, so much thanks to their respective authors: https://help.ubuntu.com/community/IMON_VFD_and_LCD http://mythtvblog.blogspot.com/2008/04/getting-imon-0038-lcd-working-with-lirc.html http://mythtvblog.blogspot.com/2008/04/getting-imon-0038-lcd-working-with.html http://codeka.com/forums/viewtopic.php?f=3&t=22 I also want to thank all of the XBMC developers for making an excellent product. Please feel free to tweak this guide. - mkortstiege - 2008-11-13 Thanks for this howto. I've altered the topic title and made a sticky of it. Cheers VDRfan Thanks! - mdalacu - 2008-11-13 @cofin: I was looking a long time for this, I will try it tommorow and i will do it on Ubuntu 8.10. One question: the newest lirc is 0.8.4 , why not using it insted of 0.8.3? (anyway the CVS will get the 4 version , wright?) . Another think : I have no sound issues in Ubuntu 8.10 if i kill pulseaudio. Thank you big time for this! - cofin - 2008-11-14 mdalacu Wrote:@cofin: Well, i originally wanted to just install it from CVS and just do modprobe to find the new module. However, I could never get it to work. I am not the most proficient linux user, so that probably has something to do with it. In the end, I resorted to using the method that I posted--which, while it may not be the cleanest solution, works for me. Anyway, let me know how it goes. Perhaps we can find a better method of doing all of this. - mvdaat - 2008-11-14 Great post! Thanks! I found 2 typos 1. "sudo dpkg-reconfigure lirc-modules-sources" should be without the ending "s" 2. "sudo usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd --connect=localhost:8765" should be "sudo /usr/local/......." Make you can change it for other copy and paste people like me! ;-) But it's working great! But I still have some questions: 1. is there a way to hide the "lcdproc server" when no clients are connected? also when I run XBMC it sometimes shows between XBMC screens 2. Is there a way to show the time or date when I close the system it's now saying "thanks for using lcdproc and linux" (or something like that) 3. I don't have the MCE remote yet so I'm using the mini remote of antec but I can't find all the remote keys (with your keys only "enter" and "back" are working") with google I found some other codes but I'm still missing up/down/left/right - cofin - 2008-11-15 mvdaat Wrote:Great post! Thanks! Thanks you for the feedback. I have corrected the two typos. Let me address your other questions individually: 1. I have not found a way to completely hide LCDProc server when no clients are connected. There is a way, however, to suppress the showing when XBMC is active. Edit /usr/local/etc/LCDd.conf and set ServerScreen=no. Make sure you uncomment if it is commented by default. 2. You can also modify the shutdown message in the LCDd.conf. Find the two lines that read "Goodbye=<text here>". Set them to whatever you like. Again, make sure to uncomment the lines if they are commented out. 3. You will have to record your own IR commands and write your own lirc.conf file to get the mini remote to work. The way to do this is to kill all running lircd processes, and run the command irrecord. You will possibly have to do this for both of the IR devices (/dev/lirc0 and /dev/lirc1) to capture all of the IR commands. Hopefully, this will get you going in the right direction. Mixing the two parts of the remote - philippeb06 - 2008-12-04 Hello and thank you for your great help! However, I'd like to add some comments as you solution did not work "out of the box" for me. I am using an Antec Fusion Remote Black with a RM200 VERIS remote and add some problems getting the two lircd working together. I ran two irrecord, the first one on /dev/lirc0 putting configuration on /etc/lirc/remote1.conf about the pad and the numbers on remote and the second one on /dev/lirc1 putting configuration on /etc/lirc/remote2.conf about the other keys. Code: sudo irrecord /etc/lirc/remote1.conf -d /dev/lirc0 --disable-namespace Once this done, I ran the following commands: Code: sudo /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 /etc/lirc/remote1.conf This is now working and the irw mixes the two parts of the remote. Hope it will help Philippe - adriany - 2008-12-10 philippeb06 Wrote:Hello and thank you for your great help! I have the same case and remote and was able to use a single lircd.conf. I still need to run two instances of lircd, but they both read the same .conf file. - thecheekymonkey - 2008-12-19 if i just want to install the LCD and not touch the remote side of things can i? and which bits do i omit, i`m quite happy with my xbox 1 remote, but just want the lcd to work. cheers - tiburcillo - 2008-12-20 Hey, I just managed to get the RM200 remote working (the one that comes with the big Fusion Remote cases). I need to run the two processes each with a different config file for them to work. Here's the lircd.conf (split into two parts): Code: begin remote Code: begin remote I've noticed that if you play a movie and you 'summon' the OSD, you only get a thin menu bar with a movie description. If you do the same on the keyboard you get the option to load subs and change audio languages. Any hints on how to get this done? (using MediaStream) - mvdaat - 2008-12-24 tiburcillo can you also post your lircmap.xml for the RM200? - ashmaston - 2008-12-25 Hi there, Thanks for this awesome post. I just followed it and everythinh is working like a charm. I still have few questions since i'm not really familiar with Imon and all that stuff. The first one is about the LCD screen from the Antec chassis. Mine stay lighted even when the computer is off. The only way to turn him off is to unplugg the whole system. Is this little issue sound familiar ? An another question is : Is there a way to controll the brightness of the LCD screen ? Thanks a lot, Ash - Doxic - 2008-12-29 I can't get over the first step... my "cat /proc/usb/devices" shows this information Quote:T: Bus=04 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 so I altered my /etc/modprobe.d/usbhid to the following Quote:options usbhid quirks=0x15c2:0x0038:0x0004 but the result is still the same (after "depmod -ae" and "update-initramfs -u"), the driver section shows Driver=usbhid. I installed the XBMC Live (Ubuntu 8.04, 2.6.24-19-generic) Can anyone help me? - spid - 2008-12-29 Sweet guide, I finally have the LCD up and running and also the remote! tiburcillo Wrote:Hey, if you map <start>applaunch</start> to a button (in my case Applaunch) it will open up the options for subs, audio and bookmarks. Here is my lircmap for the RM200 in xbmc (put under your home folder and .xbmc/userdata/Lircmap.xml ) I will remap the keys on my Logitech Harmony so the keys might not make sense to everyones taste, the number keys for navigation etc. Code: <lircmap> One problem i have tho is the crontab autorun, is seems like it only loads the first .conf file but starts two lircd, so after a reboot if i run irw and tries any key from the first part of the config it shows the keypress but not from the other conf. I tried both with two separate files like this: Code: @reboot root /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 /etc/rm200d1.conf Or with the two conf files in the same /etc/lircd.conf like this: Code: @reboot root /usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 When i check with ps -A | grep lircd i can see both running. Only when i kill the processes and run them manually with sudo it loads both Does anyone have a clue on what i did wrong or another solution to autorun the lircd? And i would also know if there is a way to set contrast and brightness for the display if possible (especially if there is a way to turn off the backlight during shutdown) |