PDA

View Full Version : imon remote


dirtylion
2009-01-14, 20:12
hi,
imon driver successful loaded:
T: Bus=03 Lev=01 Prnt=01 Port=03 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=lirc_imon
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=lirc_imon
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

i am try to configure imon pad for xbmc..
i start irw and when i press buttons i get info like this:

(T: XBMCLiveCD)xbmc@XBMCLive:~$ irw
0000000028a395b7 00 Vol+ iMON-PAD
0000000028a595b7 00 Vol- iMON-PAD
0000000028a395b7 00 Vol+ iMON-PAD
00000000289395b7 00 Ch+ iMON-PAD

i edit /usr/share/xbmc/system/Lircmap.xml

<?xml version="1.0"?>
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<lircmap>
<remote device="mceusb">
<pause>Pause</pause>
<stop>Stop</stop>
<forward>Forward</forward>
<reverse>Rewind</reverse>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>OK</select>
<pageplus>ChanUp</pageplus>
<pageminus>ChanDown</pageminus>
<back>Back</back>
<menu>PreviousMenu</menu>
<title>Play</title>
<info>More</info>
<skipplus>Skip</skipplus>
<skipminus>Replay</skipminus>
<display>Teletext</display>
<start>Home</start>
<record>Record</record>
<volumeplus>VolUp</volumeplus>
<volumeminus>VolDown</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<myvideo>Videos</myvideo>
<mymusic>Music</mymusic>
<mypictures>Pictures</mypictures>
<mytv>TV</mytv>
<one>One</one>
<two>Two</two>
<three>Three</three>
<four>Four</four>
<five>Five</five>
<six>Six</six>
<seven>Seven</seven>
<eight>Eight</eight>
<nine>Nine</nine>
<zero>Zero</zero>
<mytv>Red</mytv>
<mymusic>Green</mymusic>
<mypictures>Yellow</mypictures>
<myvideo>Blue</myvideo>
</remote>
<remote device="XboxDVDDongle">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="Microsoft_Xbox">
<play>PLAY</play>
<pause>PAUSE</pause>
<stop>STOP</stop>
<forward>FORWARD</forward>
<reverse>REVERSE</reverse>
<left>LEFT</left>
<right>RIGHT</right>
<up>UP</up>
<down>DOWN</down>
<select>SELECT</select>
<back>BACK</back>
<menu>MENU</menu>
<title>TITLE</title>
<info>INFO</info>
<skipplus>SKIP+</skipplus>
<skipminus>SKIP-</skipminus>
<display>DISPLAY</display>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="PinnacleSysPCTVRemote">
<play>Play</play>
<pause>pause</pause>
<stop>Stop</stop>
<forward>FForward</forward>
<reverse>Rewind</reverse>
<left>Vol-Rew</left>
<right>Vol+FF</right>
<up>Chan+Play</up>
<down>Chan-Stop</down>
<pageplus>channel+</pageplus>
<pageminus>channel-</pageminus>
<select>middle</select>
<back>undo</back>
<menu>Menu</menu>
<title>L</title>
<info>Info</info>
<skipplus>next</skipplus>
<display>Fullscreen</display>
<record>Record</record>
<volumeplus>vol+</volumeplus>
<volumeminus>vol-</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
<remote device="iMON-PAD">
<pause>Pause</pause>
<stop>Stop</stop>
<forward>FastForward</forward>
<reverse>Rewind</reverse>
<left>Mouse_W</left>
<right>Mouse_E</right>
<up>Mouse_N</up>
<down>Mouse_S</down>
<select>Enter</select>
<pageplus>Chan+</pageplus>
<pageminus>Chan-</pageminus>
<back>Backspace</back>
<menu>WindowsKey</menu>
<title>MouseMenu</title>
<info>More</info>
<skipplus>NextChapter</skipplus>
<skipminus>PrevChapter</skipminus>
<display>AspectRatio</display>
<start>MultiMon</start>
<record>Record</record>
<volumeplus>Vol+</volumeplus>
<volumeminus>Vol-</volumeminus>
<mute>Mute</mute>
<power>Power</power>
<myvideo>Red</myvideo>
<mymusic>Green</mymusic>
<mypictures>Blue</mypictures>
<mytv>Yellow</mytv>
<one>1</one>
<two>2</two>
<three>3</three>
<four>4</four>
<five>5</five>
<six>6</six>
<seven>7</seven>
<eight>8</eight>
<nine>9</nine>
<zero>0</zero>
</remote>
</lircmap>

and add iMON-PDA there..
but the remote control doesn't work in xbmc :(

maybe someone can help me.. thx..

smclark
2009-01-14, 21:37
I ran into the same issue yesterday configuring my Antec case & remote. The file Lircmap.xml must reside in the .xbmc/userdata folder within your user home folder. Hope this helps.

Scott

dirtylion
2009-01-14, 21:55
you use xbmc live ? and is the lcd working for you ?
i got a antec case too.
You got the imon pad too ?

tim_wang
2009-01-15, 19:51
I am using an iMon LCD that came with my Antec Fusion Black. And yes, my LCD works with XBMC Live 8.10 istalled to HDD. My remote control is a Microsoft MCE remote (model 1039).

To get your remote working with XBMC, refer to my post in this thread: http://xbmc.org/forum/showthread.php?t=42243.

XBMC will copy the xml file from /usr/share/xbmc/userdata to /home/xbmc/.xbmc/userdata next time it restarts.

dirtylion
2009-01-16, 14:21
it' still now working :(

tim_wang
2009-01-16, 15:31
Did you read my guide? Which part is still not working?

dirtylion
2009-01-16, 15:39
tim_wang can you tell me what you did after xbmc live installation ? how you get lirc ?

i did:

sudo apt-get install lirc-modules-source cvs build-essential dialog libtool automake1.9 autoconf
sudo apt-get update
sudo apt-get build-dep lirc lcdproc
sudo apt-get remove lirc lcdproc
sudo mount -t usbfs none /proc/bus/usb
sudo cat /proc/bus/usb/devices
sudo nano /etc/modprobe.d/usbhid
options usbhid quirks=0x15c2:0x0038:0x0004
sudo depmod -ae
sudo update-initramfs -b /mnt -u
mv /mnt/initrd.img-2.6.24-19-generic /mnt/initrdown.img
sudo reboot

sudo mount -t usbfs none /proc/bus/usb
sudo modprobe lirc_imon
lsmod | grep lirc

sudo dpkg-reconfigure lirc-modules-source
sudo reboot

wget http://prdownloads.sourceforge.net/lirc/lirc-0.8.4a.tar.bz2
tar xjf lirc-0.8.4a.tar.bz2
cd lirc-0.8.4a
./configure

sudo cp drivers/lirc_imon/lirc_imon.c /usr/src/lirc-0.8.3~pre1/drivers/lirc_imon
sudo dpkg-reconfigure lirc-modules-source
sudo reboot

sudo mount -t usbfs none /proc/bus/usb
sudo modprobe lirc_imon
sudo cat /proc/bus/usb/devices

and then irw shows me the buttons which i press on the veris rm200 remote control from Antec Fusion Black

but nothing happend in xbmc..
maybe you install lirc in an other way ?

tim_wang
2009-01-16, 16:46
I installed and configured my lirc and lcdproc using this guide: http://ubuntuforums.org/showthread.php?t=907256.

Let me know if this helps.

dirtylion
2009-01-16, 20:39
thx i will try it

NismoC32
2009-01-17, 14:40
Shouldn't the sudo apt-get update be the first thing to do ?

When I run the sudo apt-get build-dep lirc lcdproc I get this error message:
(T: XBMCLiveCD)xbmc@XBMCLive:~$ sudo apt-get build-dep lirc lcdproc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

Whats missing ?

Q:What is exactly happening with this line ?
I know it renames the file but what happen during reboot ?
Is it picked up by a script and "installed" ?

mv /mnt/initrd.img-2.6.24-19-generic /mnt/initrdown.img

And can I delete the initrdown.img after the reboot ?

Okay a new problem:
I have downloaded the latest lirc from cvs like this:
cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc
cd lirc
./autogen.sh
./setup.sh

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 configure"

and I end up with this:

checking for ir_strerror in -lirman_sw... no
checking portaudio.h usability... no
checking portaudio.h presence... no
checking for portaudio.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/hiddev.h... yes
checking for HIDDEV_FLAG_UREF support... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
configure: error: *** you need to have the Linux kernel source installed
for this driver
(T: XBMCLiveCD)xbmc@XBMCLive:~/lirc$


I'm I on the wrong track here ?