[LINUX] HOW-TO configure Soundgraph iMON VFD/IR Receiver (used by many HTPC chassis)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tiburcillo Offline
Junior Member
Posts: 14
Joined: Dec 2008
Reputation: 0
Post: #11
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

  name  rm200d1.conf
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  post_data_bits  32
  post_data      0x0
  gap          195988
  toggle_bit      0

      begin codes
          backspace                0x0200002A
          select                   0x0200002C
          left                     0x02800000
          right                    0x02000065
          knop                     0x01008000
          lclick                   0x01010000
          rclick                   0x01000000
          down                     0x01000000
          escape                   0x02000029
      enter                   0x02000028
          1                        0x0200001E
          2                        0x0200001F
          3                        0x02000020
          4                        0x02000021
          5                        0x02000022
          6                        0x02000023
          7                        0x02000024
          8                        0x02000025
          9                        0x02000026
          *                        0x02200025
          0                        0x02000027
          #                        0x02200020
      end codes

end remote
and
Code:
begin remote

  name  rm200d2.conf
  bits           64
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          195989
  min_repeat      2
  toggle_bit      0
# toggle_bit_mask 0x400000000000

      begin codes
          exit                     0x288195B700000201
          power                    0x289115B700000201
          rec                      0x298115B700000201
          play                     0x2A8115B700000201
          eject                    0x29B195B700000201
          frev                     0x2A8195B700000201
          pause                    0x2A9115B700000201
          ffwd                     0x2B8115B700000201
          skipback                 0x2B9115B700000201
          stop                     0x2B9715B700000201
          skipfw                   0x298195B700000201
          up                       0x299115B700000201
          applaunch                0x29B715B700000201
          go                       0x2AB195B700000201
          disc                     0x299395B700000201
      tasksw                   0x2A9395B700000201
          mute                     0x2B9595B700000201
          volp                     0x28A395B700000201
          volm                     0x28A595B700000201
          chp                      0x289395B700000201
          chm                      0x288795B700000201
          timer                    0x2B8395B700000201
          film                     0x2B8515B700000201
          music                    0x299195B700000201
          pics                     0x2BA115B700000201
          tv                       0x28A515B700000201
          bookmark                 0x288515B700000201
          thumb                    0x2AB715B700000201
          zoom                     0x29A595B700000201
          fs                       0x2AA395B700000201
          dvd                      0x29A395B700000201
          menu                     0x2BA395B700000201
          subs                     0x298595B700000201
          audio                    0x2B8595B700000201
          volkp                    0x00010000000002EE
          volkd                    0x01000000000002EE
      end codes

end 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)
find quote
mvdaat Offline
Member
Posts: 50
Joined: Sep 2006
Reputation: 0
Post: #12
tiburcillo can you also post your lircmap.xml for the RM200?
find quote
ashmaston Offline
Junior Member
Posts: 9
Joined: Dec 2008
Reputation: 0
Post: #13
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
find quote
Doxic Offline
Junior Member
Posts: 9
Joined: Dec 2008
Reputation: 0
Post: #14
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
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=15c2 ProdID=0038 Rev= 0.02
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

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?
find quote
spid Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #15
Sweet guide, I finally have the LCD up and running and also the remote!

tiburcillo Wrote:Hey,
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)

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>
<remote device="rm200d1.conf">
        <left>left</left>
        <right>right</right>
        <select>enter</select>
        <back>escape</back>
        <one>1</one>
                <left>4</left>
                <right>6</right>
                <up>2</up>
                <down>8</down>
                <select>5</select>
        <three>3</three>
        <seven>7</seven>
        <nine>9</nine>
        <zero>0</zero>
    </remote>

    <remote device="rm200d2.conf">
        <up>up</up>
        <pause>pause</pause>
        <stop>stop</stop>
        <forward>ffwd</forward>
        <reverse>frev</reverse>
        <pageplus>chp</pageplus>
        <pageminus>chm</pageminus>
        <back>back</back>
        <menu>menu</menu>
        <title>go</title>
        <info>timer</info>
        <skipplus>skipfw</skipplus>
        <skipminus>skipback</skipminus>
        <display>tasksw</display>
        <start>applaunch</start>
        <title>play</title>
        <record>rec</record>
        <volumeplus>volp</volumeplus>
        <volumeminus>volm</volumeminus>
        <mute>mute</mute>
        <power>exit</power>
        <myvideo>film</myvideo>
        <mymusic>music</mymusic>
        <mypictures>pics</mypictures>
        <mytv>tv</mytv>
    </remote>
</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
@reboot root /usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --connect localhost:8765 --output=/dev/lircd /etc/rm200d2.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
@reboot root /usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd --connect=localhost: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 Eek

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) Nod
(This post was last modified: 2008-12-29 21:43 by spid.)
find quote
siliconix Offline
Junior Member
Posts: 6
Joined: Dec 2008
Reputation: 0
Post: #16
Doxic Wrote:I can't get over the first step... my "cat /proc/usb/devices" shows this information



so I altered my /etc/modprobe.d/usbhid to the following


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?

The update-initramfs command didnt work for me, I guess the livecd boot stuff is slighly different (using live usb also). I ended up creating an rc.local file in /etc with all the commands the original post suggested having in crontab + a few additionals.
The first line makes sure usbhid is loaded and actually reading the options from /etc/modprobe.d/usbhid
The second loads lirc_imon
The rest is more or less the same as the original post had in crontab.

Code:
#!/bin/sh
/sbin/rmmod usbhid && /sbin/modprobe usbhid
/sbin/modprobe lirc_imon
/usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765
/usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd --connect=localhost:8765
/bin/chmod 777 /dev/lcd0

Oh yeah, dont forget to chmod +x /etc/rc.local
find quote
spid Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #17
siliconix Wrote:The rest is more or less the same as the original post had in crontab.

Code:
#!/bin/sh
/sbin/rmmod usbhid && /sbin/modprobe usbhid
/sbin/modprobe lirc_imon
/usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765
/usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd --connect=localhost:8765
/bin/chmod 777 /dev/lcd0

Oh yeah, dont forget to chmod +x /etc/rc.local

This helped me also, or it might have something to do with moving the --connect localhost:8765 last instead like this:
Code:
/usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765 /etc/rm200d1.conf
/usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd /etc/rm200d2.conf --connect=localhost:8765
chmod 777 /dev/lcd0
/usr/local/sbin/LCDd

I'm running Ubuntu 8.10 with xbmc from the repo and a Antec Fusion Remote Black with the RM200 remote (using Logitech Harmony 555 with custom button setup now) btw..

Happy, happy, joy, joy! Big Grin
find quote
Coguar Offline
Junior Member
Posts: 1
Joined: Jan 2009
Reputation: 0
Post: #18
Hello

I follow this procedure, but after this line
Quote:sudo dpkg-reconfigure lirc-modules-source

i get this error

Quote:Removing all DKMS Modules
Done.
Adding Module to DKMS build system
Doing initial module build

Error! Build of lirc_imon.ko failed for: 2.6.27-7-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/lirc/0.8.3/build/ for more information.
Installing initial module

Error! Could not locate lirc_atiusb.ko for module lirc in the DKMS tree.
You must run a dkms build for kernel 2.6.27-7-generic (i686) first.
Done.

Somebody ?

Tnx in advance ...
find quote
cosmograf Offline
Junior Member
Posts: 9
Joined: Dec 2008
Reputation: 0
Post: #19
Can someone explain why following these instructions corrupted my video drivers?.

Also

Code:
sudo /etc/modprobe.d/usbhid

This folder doesn't exist on my system.?

Can't get LCD or remote working with these instructions.

Very frustrating.No
find quote
tiburcillo Offline
Junior Member
Posts: 14
Joined: Dec 2008
Reputation: 0
Post: #20
Coguar Wrote:Hello

I follow this procedure, but after this line


i get this error

uote:Removing all DKMS Modules
Done.
Adding Module to DKMS build system
Doing initial module build

Error! Build of lirc_imon.ko failed for: 2.6.27-7-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/lirc/0.8.3/build/ for more information.
Installing initial module

Error! Could not locate lirc_atiusb.ko for module lirc in the DKMS tree.
You must run a dkms build for kernel 2.6.27-7-generic (i686) first.
Done.

Somebody ?

Tnx in advance ...

Hey cougar, I got the exact same error. It seems the newest CVS build gives a load of problems using the commands in this guide. You should look for an older version. For me the version on Ron Frazier's site worked as a charm!
http://ronfrazier.net/mythtv/downloads/l...s.tar.gzip

edit: On 2nd thought, this one doesn't work either. Is there any one with enough linuxpowah to create a patch? Else we'll just have to wait. ought, this one doesn't work either. Is there any one with enough linuxpowah to create a patch? Else we'll just have to wait.
(This post was last modified: 2009-01-12 20:27 by tiburcillo.)
find quote
Post Reply