Difference between revisions of "Soundgraph iMON Antec Veris Mythbuntu 10.10"
(→Harmony One Universal Remote) |
(→Harmony One Universal Remote) |
||
Line 651: | Line 651: | ||
Here are instructions on how to get a Harmony One Universal Remote control working with your MythTV box. | Here are instructions on how to get a Harmony One Universal Remote control working with your MythTV box. | ||
− | Note, using the configuration settings that I give with these instructions, require that you slightly change your ~/.lirc/mythtv file that we edited above. There is only a few changes which allow us to utilize an already created Logitech Harmony One remote control profile which has almost all buttons for the Antec Veris Controller. | + | Note, using the configuration settings that I give with these instructions, require that you slightly change your ~/.lirc/mythtv file that we edited above. There is only a few changes which allow us to utilize an already created Logitech Harmony One remote control profile which has almost all buttons for the Antec Veris Controller.<br> |
− | First thing you'll want to do is open up the "Logitech Harmony Remote Software" on a Windows or Mac computer (basically the same one you used to configure your other devices to use the universal remote with). In there, you'll want to add a new device. | + | First thing you'll want to do is open up the "Logitech Harmony Remote Software" on a Windows or Mac computer (basically the same one you used to configure your other devices to use the universal remote with). In there, you'll want to add a new device.<br> |
− | Use the Remote Control profile, under Media Center PC, called '''"Silverstone"''' with model number of '''"LC-20M"''' | + | Use the Remote Control profile, under Media Center PC, called '''"Silverstone"''' with model number of '''"LC-20M"'''<br> |
− | Then created a Watch TV Activity with the proper devices (Mine had the TV, Receiver, and Media Center PC devices). | + | Then created a Watch TV Activity with the proper devices (Mine had the TV, Receiver, and Media Center PC devices).<br> |
− | After creating that activity, I first edited it to change its name to "MythTV," then went to the "Customize Buttons" area to map the correct buttons (most of which were already correct, I just added some needed functions like the Live TV, Videos, etc.). | + | After creating that activity, I first edited it to change its name to "MythTV," then went to the "Customize Buttons" area to map the correct buttons (most of which were already correct, I just added some needed functions like the Live TV, Videos, etc.).<br> |
See below for the custom button settings: | See below for the custom button settings: | ||
Line 739: | Line 739: | ||
</pre> | </pre> | ||
}} | }} | ||
+ | |||
'''Good Luck!''' | '''Good Luck!''' | ||
− | + | <br> | |
'''And enjoy using your newly configured remote with MythTV!!!!''' | '''And enjoy using your newly configured remote with MythTV!!!!''' | ||
Revision as of 19:54, 6 November 2010
Contents
Info
This page contains all of the files and information I needed to get my Antec Fusion Case (Black finish, uses the newer iMon LCD 15c2:0038) and it's included Veris RM200 remote working. There is also a section describing how to setup a Logitech Harmony One Universal Remote Controller that works with this setup. Note that I used Mythbuntu 10.10, but any type of Ubuntu 10.10 should also work with this setup instructions.
LIRC
If you're doing a fresh install of Mythbuntu 10.10, there is no configuration to set what /dev/input/eventX device you want to utilize. So just follow the below directions to get you up and running.
Note on the Knob
The volume knob on the Antec Case should work right out of the box.
Directions to get Remote Working
Perform all of the following in order.
Step 1 - Uninstall LIRC and Reinstall it
Un-install LIRC so that any errors that were going on before won't come up. Open up a terminal, and type the following in:
Then you want to reinstall LIRC so that we can have the configuration settings come up and we can configure lIRC. In the same terminal window, perform the following::
You'll get a configuration window within your terminal window. Here's what you are going to want to do.
First, select the Linux Dev Input:
If you have an IR transmitter (I didn't), go ahead and select that on the next screen
Now, in a separate terminal window (Open a new one by clicking on "File," "Open Terminal"), perform the following command to find out which event your remote is on:
Here is the information I got from running that (note the "event4" which is what I selected then):
I: Bus=0003 Vendor=15c2 Product=0038 Version=0002 N: Name="iMON Remote (15c2:0038)" P: Phys=usb-0000:00:1d.1-1/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/rc/rc0/input4 U: Uniq= H: Handlers=kbd mouse1 event4 B: EV=100007 B: KEY=fff 0 400000108c0320 2d5008200000000 30000 400119000 419614100801 809e168000000000 200000010004002 B: REL=103
Mine was "event4," so I selected that on the last screen. Select whatever event your is on (i.e. - The event under H: Handlers)
Now that we have finished the configuration for LIRC, type in "irw" (without the quotes) in the terminal, press the mouse/keyboard toggle button on your controller (mine was right below the stop button), and start pressing buttons on your remote.
If all goes well, you should be seeing key presses output. You're almost there.
Now, go to:
Under the "Remote Control" screen, change the LIRC daemon socket to "/dev/lircd"
Step 2 - Button Configuration
After you have performed the above, you'll have to configure your buttons to work properly with MythTV. To do this, go ahead and edit this file: ~/.lirc/mythtv To edit, go to a terminal window and type "gedit ~/.lirc/mythtv" (without quotes), or if you use vim "vim ~/.lirc/mythtv"
Here is what my button configuration looks like, this should work for you as well:
# LIRCRC # Author(s): Mario Limonciello, Nick Fox, John Baab, Edited by Chris Murphy # Created for use with Mythbuntu 10.10 begin remote = devinput prog = mythtv button = KEY_EXIT config = Escape repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_RECORD config = R repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_PLAY config = P repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_REWIND config = < repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_PAUSE config = P repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_FASTFORWARD config = > repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_PREVIOUS config = Up repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_STOP config = Escape repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NEXT config = Down repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NEXT config = Down repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_BACKSPACE config = Escape repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_SELECT config = Return repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_CONTEXT_MENU config = Q repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_COMPOSE config = Z repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_ENTER config = Return repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_UP config = Up repeat = 3 delay = 0 end begin remote = devinput prog = mythtv button = KEY_DOWN config = Down repeat = 3 delay = 0 end begin remote = devinput prog = mythtv button = KEY_LEFT config = Left repeat = 3 delay = 0 end begin remote = devinput prog = mythtv button = KEY_RIGHT config = Right repeat = 3 delay = 0 end begin remote = devinput prog = mythtv button = KEY_ESC config = Escape repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_DASHBOARD config = S repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_PROG1 config = Return repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_CYCLEWINDOWS config = I repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_MUTE config = | repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_VOLUMEUP config = ] repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_VOLUMEDOWN config = [ repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_CHANNELUP config = Up repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_CHANNELDOWN config = Down repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_TIME config = F8 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_1 config = 1 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_2 config = 2 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_3 config = 3 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_4 config = 4 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_5 config = 5 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_6 config = 6 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_7 config = 7 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_8 config = 8 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_9 config = 9 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_0 config = 0 repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_POUND config = D repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_NUMERIC_STAR config = ? repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_BOOKMARKS config = C repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_MEDIA config = O repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_ZOOM config = W repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_SCREEN config = F repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_MENU config = M repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_SUBTITLE config = T repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_LANGUAGE config = + repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_VIDEO config = \U repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_AUDIO config = \M repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_CAMERA config = \I repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_TV config = \T repeat = 0 delay = 0 end begin remote = devinput prog = mythtv button = KEY_DVD config = \D repeat = 0 delay = 0 end
Now make a new file (or edit the old one) ~/.lirc/irexec with the following contents. Make sure to replace 'user' with your username (not mythtv).
# LIRCRC Auto Generated by Mythbuntu Lirc Generator # Author(s): Mario Limonciello, Nick Fox, John Baab, edited by Chris Murphy # Created for use with Mythbuntu begin remote = devinput prog = irexec button = KEY_POWER config = /home/user/Scripts/runmyth.sh & repeat = 0 delay = 0 end begin remote = devinput prog = irexec button = KEY_EJECTCD config = /home/user/Scripts/eject.sh & repeat = 0 delay = 0 end begin remote = devinput prog = irexec button = KEY_EJECTCLOSECD config = /home/user/Scripts/eject.sh & repeat = 0 delay = 0 end
A few notes about the above keys. They were adapted from a conversation on ubuntuforums.org:
* The knob sends the same codes for volume up/down as the remote on devinput, so that part was dropped. * Videos, Music, Pictures, TV, and DVD are configured for JumpPoints. Step 4 discusses the procedures for this. * Menu Up (KEY_CONTEXT_MENU) and Menu Down (KEY_COMPOSE), the buttons to the left and right of the joystick, are commercial skip backward (Q) and forward (Z), respectively. * App Launcher (KEY_DASHBOARD) is the on-screen guide, and Task Switcher (KEY_CYCLEWINDOWS) is info. * Star (toggles channel favorites and hash (#) is Delete (D)
Step 3 - irexec Files
We need to setup two irexec scripts for use with irexec. These need to go in ~/Scripts and you need to chmod +x them. Note that if you have a strange setup and your main DVD drive is not /dev/sr0, you will need to change this accordingly.
#!/bin/bash if [ -z `ps -e -o pid,command | grep mythfrontend | grep -v grep` ] then mythfrontend & (for i in $( seq 1 100 ) do echo $i; sleep 0.1; done) | zenity --auto-close --progress --text="Starting MythTV. This may take longer than this dialog shows." --title="Starting MythTV" else zenity --question --text="Are you sure you wish to exit MythTV?" --title="Exit MythTV?" if [ $? == 0 ] then for x in $( ps -e -o pid,command | grep mythfrontend | grep -v grep ); do if [ `expr index "$x" "/"` == 1 ] then continue; else kill $x; fi done fi fi
After you have completed all of the above, restart your computer (this is very important, otherwise your remote control buttons might not actually work).
Step 4 - Setup MythTV Special Keys
The last step is to make sure the coloured buttons on the remote work. To do this, go to Utilities/Setup -> Edit Keys and find the following keys under JumpPoints and set a new binding by pressing the corresponding button on the remote. Make sure you have already rebooted your computer to get the remote working right.
Live TV -> TV (Yellow)
MythGallery -> Pictures (Blue)
MythVideo -> Videos (Red)
Play DVD -> DVD (Purple)
Play music -> Music (Green)
Harmony One Universal Remote
Here are instructions on how to get a Harmony One Universal Remote control working with your MythTV box.
Note, using the configuration settings that I give with these instructions, require that you slightly change your ~/.lirc/mythtv file that we edited above. There is only a few changes which allow us to utilize an already created Logitech Harmony One remote control profile which has almost all buttons for the Antec Veris Controller.
First thing you'll want to do is open up the "Logitech Harmony Remote Software" on a Windows or Mac computer (basically the same one you used to configure your other devices to use the universal remote with). In there, you'll want to add a new device.
Use the Remote Control profile, under Media Center PC, called "Silverstone" with model number of "LC-20M"
Then created a Watch TV Activity with the proper devices (Mine had the TV, Receiver, and Media Center PC devices).
After creating that activity, I first edited it to change its name to "MythTV," then went to the "Customize Buttons" area to map the correct buttons (most of which were already correct, I just added some needed functions like the Live TV, Videos, etc.).
See below for the custom button settings:
Button Settings in Logitech Software
Standard Buttons: Button Device Command Menu Media Center PC Menu Exit Media Center PC Esc Up Arrow Media Center PC ChannelUp Down Arrow Media Center PC ChannelDown Info Media Center PC TaskSwitcher Guide Media Center PC AppLauncher Volume Up AV Receiver VolumeUp Volume Down AV Receiver VolumeDown Mute AV Receiver Mute Up Media Center PC DirectionUp Down Media Center PC DirectionDown Left Media Center PC DirectionLeft Right Media Center PC DirectionRight OK Media Center PC Enter Channel Up Media Center PC ChannelUp Channel Down Media Center PC ChannelDown Prev Media Center PC FullScreen (note, I didn't ever use the FullScreen button for anything, so I converted it to be used for previous channel instead) Rewind Media Center PC Rewind Skip Back Media Center PC SkipBack Record Media Center PC Record Play Media Center PC Play Pause Media Center PC Pause Fast Forward Media Center PC FastForward Skip Forward Media Center PC SkipForward Stop Media Center PC Stop 1 Media Center PC 1 2 Media Center PC 2 3 Media Center PC 3 4 Media Center PC 4 5 Media Center PC 5 6 Media Center PC 6 7 Media Center PC 7 8 Media Center PC 8 9 Media Center PC 9 Plus (note, I'm not utilizing the plus on the actual controller, just on the color screen - custom button) 0 Media Center PC 0 E (not utilizing the E button) Additional Buttons: Label Device Command Toggle Media Center PC Mouse/Keyboard (Note: Toggles between the 2 modes) Eject Media Center PC Eject Favorite Media Center PC * Commercial Skip Media Center PC RClickMenu Delete Media Center PC # App Exit Media Center PC AppExit Live TV Media Center PC Yellow Videos Media Center PC Red Play Music Media Center PC Green Play DVD Media Center PC DVD Pictures Media Center PC Blue
Now, before you go and test this on your MythTV, make sure you change your ~/.lirc/mythtv file like below.
Then restart your MythTV box and test your controller.
You should be all set then.
Good Luck!
And enjoy using your newly configured remote with MythTV!!!!