[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis) - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/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 01:39
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:
Next, you need to make sure you don't load the usbhid driver for the iMON device:
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:
Add the following line to the usbhid file:
Now run this:
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:
After running setup.sh, you will see a setup screen. Select the following:
-->Soundgraph iMON IR/LCD
The select "Save configuration and run configure"
Run the following:
Modify the following command to match where you have downloaded the LIRC files.
For Ubuntu 188.8.131.52:
Finally, run this command:
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:
Paste the following into the file, overwriting anything that was there before:
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.
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:
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:
Download the LCDproc files and required patches:
Extract the LCDproc files:
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
Edit RENDER_FREQ. Change it from 8 to a lower number. I used 4
Install LCDProc now:
You should now have a working LIRC and LCDproc. I ensured that everything restarted at reboot my modifying the crontab file:
Add the following lines at the end:
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:
When you restart XBMC, the remote should now work.
- cofin - 2008-11-13 01:58
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:
I also want to thank all of the XBMC developers for making an excellent product.
Please feel free to tweak this guide.
- vdrfan - 2008-11-13 09:56
Thanks for this howto. I've altered the topic title and made a sticky of it.
Thanks! - mdalacu - 2008-11-13 10:17
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 19:34
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 23:49
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 09:44
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 22:56
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.
Once this done, I ran the following commands:
This is now working and the irw mixes the two parts of the remote.
Hope it will help
- adriany - 2008-12-10 10:53
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 22:05
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.
- tiburcillo - 2008-12-20 16:02
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):
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 23:01
tiburcillo can you also post your lircmap.xml for the RM200?
- ashmaston - 2008-12-25 19:25
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,
- Doxic - 2008-12-29 15:46
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 21:32
Sweet guide, I finally have the LCD up and running and also the remote!
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.
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:
Or with the two conf files in the same /etc/lircd.conf like this:
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)