![]() |
[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) |
- Temar - 2009-01-25 NismoC32 Wrote:I copied your lirc_imon conf files and wouldn't you know the knob button works Normally you could change this behaviour in the lircrc file, but XBMC doesn't use lircrc files for its configuration. So you have to live with this repeat level. You'll get used to it :-) Quote:The only thing missing now is to get XBMC to bother with them. The path $HOME/.xbmc/userdata is correct. How does your Lircmap.xml file look like? You can't assign custom tags in this file but you have to map your buttons to the standard LIRC buttons provided by XBMC. I can't send you my Lircmap.xml file because I patched my XBMC to be able to use all my remote buttons. Therefore my Lircmap.xml file looks very different from a standard one. If you can see your buttons with 'irw' you will be able to get XBMC to work. Quote:Have I forgot to install somthing, do you need the xbmc-event packages ? Hmm, guess this should be enough, but I'm not sure. I compiled my own XBMC version with custom patches, so I don't use the standard packages. Quote:What did you do to assign the different config files to right device so it is there when you reboot? For Ubuntu 8.04 (Hardy Heron) you can adjust your /etc/lirc/hardware.conf file like this: Code: # /etc/lirc/hardware.conf I'm not sure if I did any changes to /etc/init.d/lirc, too. If it doesn't work for you, I can provide my /etc/init.d/lirc file. Quote:The other problem is that XBMC doesn't pick up on any buttons. (Any chance you can post your Lircmap.xml file?) For the LCD you need to get the LCDd running. After starting LCDd it should print some status information on the LCD display. If you don't get this status information you lirc LCD driver may be the problem. I had many problems with this driver, too. Only the drivers from the CVS version seem to work properly, even though some people claim you could just use the 0.8.4 release. Another problem is the LCDd patch. There are different versions with different features. I can send you the patch I used if you need it. Quote:PS: Are you sure your device is 045e:0039 ? My search on this number it comes up as Microsoft Intellimouse Hahah, you are right :-) I was on the wrong machine when I checked it using 'lsusb'. I have a 15c2:0038, too. - NismoC32 - 2009-01-25 Where do I find a list of the standard LIRC buttons ? Or does it exist a empty Lircmap.xml file with all the button commands that are available where you add the missing keykode? - Temar - 2009-01-25 I updated my post while you were already answering, so check my post above, too. NismoC32 Wrote:Where do I find a list of the standard LIRC buttons ? The standard Lircmap.xml file resides at <xbmc-install-path>/share/xbmc/Lircmap.xml. Here is a basic version you could use: Code: <lircmap> You have to adjust this file for your needings. For example Code: <remote device="mceusb"> has to be adjusted to: Code: <remote device="IMON_RM200"> if your remote is still named 'IMON_RM200' in the lirc config files. Then you can map the buttons of your remote to the predefined XBMC lirc buttons. To map your navigation knob for example you have to adjust Code: <left>Left</left> Code: <left>KNOB_LEFT</left> Just use any button from your lirc config files and map them to the XBMC lirc buttons. UPDATE: When you are finished copy this Lircmap.xml file to $HOME/.xbmc/userdata/ - NismoC32 - 2009-01-25 Editing the hardware.conf file alone did not work. I guess there some tweaking in the /init.d/lirc file is necessary too. Editing the Lircmap.xml did not help eater despite irw reporting all buttons. Does all buttons have to be configured for it to work I have only configured a few for testing. PS: Have switched to Ubuntu 8.10 Interpid now. - Temar - 2009-01-25 NismoC32 Wrote:Editing the hardware.conf file did not work. Here is my /etc/init.d/lirc file. Remember that this is for Ubuntu 8.04. If you are using 8.10 you might need another startup file. However you can give it a try. Just make a backup of your old startup file. http://nopaste.info/411a67ce60.html Quote:Editing the Lircmap.xml did not help eater despite irw reporting all buttons. It is enough to configure a few buttons. However I updated my above post. If you use my lirc config files, the name of the remote is IMON_RM200 and not RM200. So check if the remote name matches the one configured in the lirc config files. - NismoC32 - 2009-01-25 I noticed that but it still does not work :-( - Temar - 2009-01-25 NismoC32 Wrote:I noticed that but it still does not work :-( Hmm, strange but don't worry. If you can see the buttons with irw, then getting them to work in XBMC is only a matter of Lircmap.xml and Keymap.xml. Check this post for a more in depth description: http://forum.xbmc.org/showthread.php?tid=39183 UPDATE: By the way, did you restart xbmc after editing your Lircmap.xml file? - NismoC32 - 2009-01-25 Keymap.xml ![]() ![]() ![]() Where do I find this file ? Seems like a there are some files missing in the xbmc package - No Lircmap.xml enywhere no Keymap.xml enywhere.... wierd. Ohhh the Lircmap.xml is supposed to have a capital "L" right, not lircmap.xml Using you init.d lirc file did not work, generated a error during boot. :-( - Temar - 2009-01-25 NismoC32 Wrote:Keymap.xml sudo dpkg -L xbmc | grep Keymap.xml Your own version of this file should be copied to $HOME/.xbmc/userdata. Quote:Ohhh the Lircmap.xml is supposed to have a capital "L" right, not lircmap.xml Yeah, that is important as Linux is case sensitive. After editing the Lircmap or Keymap file you have to restart XBMC. - Temar - 2009-01-25 Quote:Using you init.d lirc file did not work, generated a error during boot. :-( The error is normal as udev starts lirc. When the system executes /etc/init.d/lirc you get an error because lirc is already running. Just check if both lirc daemons are running and if irw works - ignore the error. You can check if lirc is running using: ps ax | grep lirc - NismoC32 - 2009-01-25 This is sooo frustrating Ran "sudo dpkg -L xbmc | grep Keymap.xml" and nothing...... I guess the remote wont work without the Keymap.xml right Could you post yours so I can adjust it to my setup ? - Temar - 2009-01-25 NismoC32 Wrote:This is sooo frustrating Hmm, I'm not into the official packages as I compiled my custom version of XBMC. Try running "sudo dpkg -L xbmc" only and you should get a list of all files installed by xbmc. If you don't get anything then the package xbmc might be a meta package. However all this doesn't matter. To just get your remote working it should be enough to edit Lircmap.xml because most of the buttons are already predefined in Keymap.xml. With a valid Lircmap.xml file you should at least be able to use the navigation knob. Always check if your remote still works with irw and always restart xbmc after you made changes to Lircmap.xml. Quote:Could you post yours so I can adjust it to my setup ? You can't use my Keymap.xml file as I patched my XBMC version to be able to use all buttons of my remote. I have a totally different Keymap.xml file. You can find the official standard Keymap.xml file here: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC/system/Keymap.xml - NismoC32 - 2009-01-25 I don't understand why it wont work ! The irw command picks every button I press and this is my Lircmap.xml under /home/xbmc/.xbmc/usersdata Code: <lircmap> And does not work. I temperately solved the problem with having the devices loaded during boot by putting this in rc.local Quote:/usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 /etc/lirc_imon.0.conf Running sudo dpkg -L xbmc gives me this: Quote:xbmc@htpc:~$ sudo dpkg -L xbmc - NismoC32 - 2009-01-25 I Finally got it working ! Had to use XBMCLive to get it to work. I don't know why it won't work with the "ppa" download version. - Temar - 2009-01-25 NismoC32 Wrote:I don't understand why it wont work ! The file looks good except that there are some commands twice in there (mypictures). This shouldn't matter but to be sure, just strip the file down to a minum: Code: <lircmap> Quote:Running sudo dpkg -L xbmc gives me this: Seems like the package xbmc only contains some basic files. The rest of XBMC is installed as dependencies. I downloaded the official packages and checked the contents. The Keymap file is included in the package "xbmc-common". So running "dpkg -L xbmc-common | grep Lircmap" should return the path "/usr/share/xbmc/system/Lircmap.xml". The Keymap file should be in there, too. You can try to replace these files with your versions if XBMC continues to ignore the files in "/home/xbmc/.xbmc/userdata/". You should also check if the xbmc user has access to the lirc device. Check the permissions with "ls -l /dev/lircd". Another way to be sure that xbmc can access the lirc device is running "irw" as user "xbmc". |