![]() |
|
|||||||
| XBMC Tips, Tricks, and HOW-TO (Step-by-Step Guides) Tips, Tricks, and HOW-TOs for XBMC (read-only forum). Users can request their threads/posts to be moved here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2009
Posts: 26
![]() |
I created the following tutorial for users of Ubuntu/Mythbuntu 9.10 Karmic. None of the tutorials/posts I found worked properly all the way through so I created a step by step guide:
Prerequisites: Antec Veris Basic installed Ubuntu 9.10 Karmic XBMC 9.11 MCE Remote or any Harmony Remote programmed as a MCE Remote 1. The first thing to do is ensure the Antec Veris Basic is recognized by the OS. Type in "lsusb" at the terminal. Take note of the characters following ID for SoundGraph Inc., in this case 15c2:0043: lsusb Output: Bus 003 Device 003: ID 15c2:0043 SoundGraph Inc. 2. We now want to add a UDEV rule to prevent the USBHID driver from loading and taking over the Antec Veris device. We accomplish this by creating a rule in /etc/udev/rules.d/. You can download my rule here: sudo wget -q http://www.stpit.com/public/99-lirc.rules -O /etc/udev/rules.d/99-lirc.rulesIn order to edit the file to ensure the proper Product ID type the following: sudo nano /etc/udev/rules.d/99-lirc.rulesAdd the following: #Prevent the USBHID driver from loading for the Antec Veris*note - the idVendor and idProduct is pulled from Step One. In my case the idProduct was 0043 but yours may be different depending on the revision of the Antec Veris you purchased. 3. Reboot your machine: sudo reboot 4. *Optional - We can now check to see if the Antec Veris is loaded without a driver associated with it. This step is optional. sudo mount -t usbfs none /proc/bus/usb Output: T: Bus=03 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0 5. Now it is time to install LIRC. Since you are using Ubuntu 9.10 Karmic, the software repository includes the latest 0.8.6 version of LIRC. sudo apt-get install lirc 6. You will be presented with a choice for remote control, simply choose "Soundgraph iMON Antec Veris" and for IR Transmitter choose "None". This will set up your /etc/lirc/hardware.conf file to load the lirc_imon driver for the Antec Virus. 7. *Optional - We can now check to see if the Antec Veris is loaded with the lirc_imon driver. This step is optional. sudo mount -t usbfs none /proc/bus/usb Output: T: Bus=03 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0 8. We will now tell the lirc_imon driver to use the MCE codes instead of the RMA100 codes. You can download my conf file by using the following: sudo wget -q http://www.stpit.com/public/lirc_imon.conf -O /etc/modprobe.d/lirc_imon.confYou can view the lirc_imon.conf file: cat /etc/modprobe.d/lirc_imon.confOutput: options lirc_imon ir_protocol=19. We now want to change the driver to load the MCE compatible configuration. We will do this by changing a line in /etc/lirc/hardware.conf and /etc/lirc/lircd.conf. You will want to change "lircd.conf.imon-antec-veris" with "lircd.conf.imon-mceusb" You can do this by typing in the following in terminal: sudo nano /etc/lirc/hardware.confChange: REMOTE_LIRCD_CONF="imon/lircd.conf.imon-antec-veris" to REMOTE_LIRCD_CONF="imon/lircd.conf.imon-mceusb" sudo nano /etc/lirc/lircd.confChange: include "/usr/share/lirc/remotes/imon/lircd.conf.imon-antec-veris" to include "/usr/share/lirc/remotes/imon/lircd.conf.imon-mceusb" *note: we could also simply overwrite the lircd.conf.imon-antec-veris with lircd.conf.imon-mceusb but you may want to use the imon-antec-veris settings at a later time. 10. We now want to restart LIRC: sudo /etc/init.d/lirc restart 11. Now we can test the MCE remote control to ensure the system is recognizing your remote control commands. We will load IRW and press buttons on our MCE remote. The terminal should output the buttons that you press. sudo irw Output: 0200005100000000 00 KEY_DOWN MCE_via_iMON 12. Now that the MCE remote is working properly we need to have XBMC pick up these commands. We accomplish by creating a Lircmap.xml file in ~/xbmc/userdata. I have created a Lircmap.xml file that you can use. Type the following at the terminal: sudo wget -q http://www.stpit.com/public/Lircmap.xml -O ~/.xbmc/userdata/Lircmap.xml 13. Start XBMC and you should be able to remote control XBMC with your Harmony or MCE remote. Currently for some reason on my system I have to issue a sudo /etc/init.d/lirc restart on a fresh boot before XBMC starts or the remote will not work. I am trying to track this issue down under this link here: http://forum.xbmc.org/showthread.php?t=68127 Last edited by stpfarms; 2010-01-29 at 16:19. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jan 2005
Location: Milwaukee, WI, USA
Posts: 4
![]() |
Great post. I happened to purchase the same hardware and found this post via a quick google search.
Everything above worked great, only to find that the IR receiver, by default, only recognizes remote codes transmitted by the original remote. A simple addition to /etc/modprobe.d/ allows interpretation of MCE remote codes as well. By default it seems that the ir_protocol option is set to 0 which limits the hardware to only interpret the crappy remote that came with the receiver. Do the following to enable MCE remote codes. Edit /etc/modprobe.d/lirc_imon.conf (create if needed) Code:
sudo pico -w /etc/modprobe.d/lirc_imon.conf Code:
options lirc_imon ir_protocol=1 Code:
sudo reboot Code:
irw |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2009
Posts: 26
![]() |
Thanks for the update. I completed this step as well but forgot it in the tutorial. I have added it in step 8.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jun 2007
Posts: 72
![]() |
thanks .. will try soon
right now I have 2 IR's in my system Antec for the ON/OFF (no USB connection) and MCE for XBMC This will help remove one IR unit from the box and help with the other system I'm making for the Family Room (another Antec Case build..) |
|
|
|
|
|
#5 |
|
Fan
Join Date: Sep 2008
Posts: 625
![]() |
Excellent tips here.
For me though steps 1-7 are complicated and completely bypassed by simply doing a: dpkg-reconfigure lirc then selecting the built in settings for your Antec case. After this simply change the ini files as documented and you have a working mce. Much simpler on karmic at least. Does anyone have a clue if the XBOX 360 Universal remote can be used in this way?
__________________
Having problems getting your TV shows recognized? Try my extra TV show matching REGEX here Last edited by xexe; 2010-03-20 at 13:30. |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Mar 2009
Posts: 155
![]() |
USBHID kernel module issue is solved since kernel 2.6.28, the steps related to that are not needed in karmic (2.6.30).
I have an Antec veris micro fusion (imon 0038) all works well without that. BTW there is a simplier way to make usbhid ignore a device # vim /etc/modprobe.d/usbhid add options usbhid quirks=0x15c2:0x0043:0x0004 # depmod -ae # update-initramfs -u Last edited by shassino; 2010-03-21 at 13:29. |
|
|
|
|
|
#7 |
|
Fan
Join Date: Sep 2008
Posts: 625
![]() |
Also as of Revision 28719 of XBMC I managed to have the Lircmap.xml added (thanks vdrfan) so you no longer need step 12 either
![]() Does anyone know how to make imon work with the xbox 360 IR remote?
__________________
Having problems getting your TV shows recognized? Try my extra TV show matching REGEX here Last edited by xexe; 2010-03-21 at 15:09. |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Oct 2009
Posts: 26
![]() |
Yeah I use my XBOX 360 controller and Microsoft IR Receiver via xboxdrv. Download the latest version here:
http://pingus.seul.org/~grumbel/xbox...0.4.10.tar.bz2 and simply extract it to a location (in this instance I extracted it to /home/user/ or ~/) Modified my /etc/modules: # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. lp # XBMC addons uinput joydev Modified my /etc/rc.local: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. cd /home/user/xboxdrv-linux-0.4.10 ./xboxdrv --wid 0 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis exit 0 |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Dec 2008
Posts: 6
![]() |
In case this helps anyone else reading this, this instructions helped me solve my issue with another iMon receiver:
Bus 004 Device 002: ID 15c2:003c SoundGraph Inc. http://forum.xbmc.org/showthread.php?p=518623 Thank you for your post |
|
|
|
![]() |
| Bookmarks |
| Tags |
| harmony, how to, how-to, howto, logitech, mce, remote |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|