Difference between revisions of "Gyration GYR3101US"

From LinuxMCE
Jump to: navigation, search
Line 5: Line 5:
 
== Summary ==
 
== Summary ==
 
[[Image:Gyration.JPG|right]]
 
[[Image:Gyration.JPG|right]]
The Gyration GYR3101US remote is identical in style to the [http://fiire.com/fiire-chief.php Fiire Chief]
+
The Gyration GYR3101US remote is identical in style to the [http://fiire.com/fiire-chief.php Fiire Chief]. The keys are not mapped as nicely as the custom-designed Fiire Chief, though. The Gyration's firmware can be updated to gain similar functionality, though, using the
 +
[http://cf.ccmr.cornell.edu/cgi-bin/w3mman2html.cgi?xmodmap(1) Xmodmap] program (and its corresponding config file) .
  
And uses the gyro feature just like a mouse. The major difference is how the remote is detected and used by LMCE.
+
The Gyration remote control uses the gyro feature just like the Fiire Chief and the Gyration mouse. (The major difference is how the remote is detected and used by LinuxMCE, of course.)
  
However the keys are not all mapped as nicely as the custom firmware of the Chief. However this can be simply updated by using the
+
==Availability==
[http://cf.ccmr.cornell.edu/cgi-bin/w3mman2html.cgi?xmodmap(1) Xmodmap] program, and its corresponding config file, to gain similar functionality from this remote.
+
  
The one I am using I purchased at [http://www.circuitcity.com/ssm/Gyration-Universal-Remote-Control-for-PC-GYR3101US/sem/rpsm/oid/178884/rpem/ccd/productDetail.do Circuit CIty] for $99US. This is only $50 less + shipping than the Fiire, but for those of us lucky enough to have a Circuit City nearby, it makes an inexpensive solution.
+
*[http://www.circuitcity.com/ccd/productDetail.do?oid=178884 Circuit City] -- US$37 (May 2008).  
  
edit 4/13/2008
+
*[http://www.newegg.com/Product/Product.aspx?Item=N82E16880105001 New Egg] -- US$99 (April 2008).
note, this can be found at new egg for $99+S/H http://www.newegg.com/Product/Product.aspx?Item=N82E16880105001 New Egg]
+
  
When the device is plugged in, it is identified and configured as a GO Wireless USB device. And the gyration mouse bit works immediatley. If this is all you want, your done. No more configuration is needed. In my case I wanted the "Ambience" (Volume/Lighting) control key mapped, as well as the Channel/Chapter function, and lets not forget the ability to pull up the menu while watching/listening to media. Also by default the Stop button will stop media playback, and the skip forward and back buttons work. Again, if this is all you want, your done :).
+
==Default capabilities==
 +
*When the device is plugged in, it is identified and configured as a GO Wireless USB device. The "gyration mouse" bit works immediately. By default the Stop button will stop media playback, and the skip forward and back buttons work. If this is all you want, you're done. No further configuration is needed.
  
By default kubuntu/LMCE sees the volume up/down keys, the 10 key numbers, the MCE button, and the media control play/stop/ffwd/rwd/pause/skip fwd/skip back.
+
*By default LinuxMCE recognizes the ''volume up/down'' keys, the 10 number keys, the MCE button, and the media controls ''play/stop/ffwd/rwd/pause/skip fwd/skip back''.
  
Gyration codes: [[Gyration-GYR3101US-codes]]
+
== How to Setup ==
 +
*Gyration codes: [[Gyration-GYR3101US-codes]]
  
== The HowTo ==
+
*I wanted the "Ambience" (Volume/Lighting) control key mapped, as well as the Channel/Chapter function, and the pull up menu for watching/listening to media. 
  
To enable the volume control, I used the ''xev'' application from the KDE desktop terminal window, and identified the required keys.
+
*To enable the volume control, I used the ''xev'' application from the KDE desktop terminal window, and identified the required keys.
  
 
  xev
 
  xev
  
Once this is run, it will pop-up a test window. Place your mouse in there, and then press the buttons on the Gyration remote, and see the results in the terminal. Pay special attention to the
+
The first time this is run, it will pop-up a test window. Specify your mouse there, and then press the buttons on the Gyration remote to see the results in the terminal. Pay special attention to the
  
 
  keycode
 
  keycode
  
entries, they are what you will place in your new .Xmodmap file.
+
entries -- they are what you will specify in the .Xmodmap file.
  
Now on my particular setup, and I have a feeling its the default, the keys show up as:
+
On my particular setup (which I think is the default) the keys show up as:
  
 
  Volume Up  keycode 176
 
  Volume Up  keycode 176
Line 42: Line 43:
  
  
Now the keys in LMCE that provide for the volume/channel/menu function are:
+
Now the keys in LinuxMCE that provide the ''volume/channel/menu'' functions are:
 
   
 
   
 
  F6 = Channel/Chapter FFWD/RWD/PAUSE menu
 
  F6 = Channel/Chapter FFWD/RWD/PAUSE menu
Line 48: Line 49:
 
  F8 = Volume/Lighting button "ambience"
 
  F8 = Volume/Lighting button "ambience"
  
== Update to get more MythTV functionality!!! ==
+
== Update to get more MythTV functionality ==
  
 
MythTV Keys
 
MythTV Keys
Line 81: Line 82:
 
  keycode 152 = PgDOWN
 
  keycode 152 = PgDOWN
  
Now after creating the file, we need to make sure it is loaded when LMCE starts up. To do this add the following as root to  
+
Now after creating the file, make sure it is loaded when LinuxMCE starts up. To do this add the following (as root) to the script file ''/usr/pluto/bin/lmce_launch_manager.sh'':
''/usr/pluto/bin/lmce_launch_manager.sh''
+
  
 
  sudo vi /usr/pluto/bin/lmce_launch_manager.sh
 
  sudo vi /usr/pluto/bin/lmce_launch_manager.sh
Put this right before the line '''KDE_DEBUG=1'''
+
 
So that it looks like.....
+
Add a line before the line '''KDE_DEBUG=1''' so that it looks like
 +
 
 
  xmodmap /etc/.Xmodmap
 
  xmodmap /etc/.Xmodmap
 
  KDE_DEBUG=1
 
  KDE_DEBUG=1
  
 +
Save the file. You have two choices to get it going.
  
Save the file. Now you have two choices to get it going,
+
* 1. Fire off the command
  
Choice 1 is to fire off the command
 
 
  sudo xmodmap /etc/.Xmodmap  
 
  sudo xmodmap /etc/.Xmodmap  
This must be done from the KDE desktop term window, as it needs to be run in the X environment. (you can also export the display like: export DISPLAY=:0;xmodmap /etc/.Xmodmap )
 
  
Choice 2 is to restart the core.
+
:(This must be done from the KDE desktop term window (Konsole), as it needs to be run in the X environment. (You can also export the display like: export DISPLAY=:0;xmodmap /etc/.Xmodmap .)
  
By placing the file in the lmce_launch_manager.sh script, anytime the core is rebooted, your settings are automagically set up. :)
+
* 2. Restart the core.
  
There are a couple of oddities to deal with that I have seen. Now when I watch a movie, and want to change the volume or lighting, on a movie or pre-recorded program, it does what it supposed to, but when watching mythtv live, pressing the volume up on the Gyration remote invokes the Sleep Timer in mythtv. This can be easily resolved by remapping the sleep timer key using the mythweb application located at http://core.ip.address/mythweb/ for internal open systems or http://core.dhcp.server.adress/mythweb/
+
:By placing the file in the lmce_launch_manager.sh script, anytime the core is rebooted, your settings are automagically set up.
 +
 
 +
==Troublshooting==
 +
Problem:
 +
There are a couple of oddities to that I have encountered. When I watch a movie and want to change the volume or lighting for a movie (or pre-recorded program), it does what it supposed to. But when I watch Mythtv live, pressing the volume up on the Gyration remote invokes the MythTV Sleep Timer.  
 +
 
 +
Solution:
 +
This can be resolved by remapping the sleep timer key using the Mythweb application located at http://core.ip.address/mythweb/ (for internal open systems) or at http://core.dhcp.server.adress/mythweb/
  
 
This can be avoided by unmapping the following keys in Mythweb/Settings/Controls
 
This can be avoided by unmapping the following keys in Mythweb/Settings/Controls
Line 109: Line 116:
 
  F8
 
  F8
  
Simply unmap these keys. Make sure you scroll down the whole list, as they appear more than once :)
+
Unmap these keys. Make sure you scroll down the whole list, as they appear more than once.
 
   
 
   
 +
After you have completed these steps the following keys will perform these functions:
  
So after you have completed these steps the following keys will do these functions:
+
*MCE button pulls up LinuxMCE menu system
 
+
*Volume Up button brings up the "Ambience" controls during media playback
MCE button pulls up LMCE menu system
+
*Volume Down button brings up the ''Channel/Chapter Fast Forward/Rewind and Pause'' functions
Volume Up button brings up the "Ambience" controls during media playback
+
*The Gyration center button does movement correctly
Volume Down button brings up the Channel/Chapter Fast Forward/Rewind and Pause functions
+
*If you double click the center button, the mouse stays active, but remember to click once more to turn off (or you'll kill the batteries).
The Gyration center button does movement
+
*The Gyration Left button acts like the left mouse button for "Choose" functions
If you double click the center button, the mouse stays active,  
+
*The Gyration Right button is the "exit" or "clear item" button  
but remember to click once more to turn off, or you'll kill the batteries.
+
*The left and right buttons are just like mouse buttons
The Gyration Left button acts like the left mouse button for "Choose" functions
+
*The Number keys work with MythTV
The Gyration Right button is the "exit" or "clear item" button.
+
*The Pause button will pause MythTV
The left and right buttons are just like mouse buttons.
+
*The Record button will start an on-the-fly-recording
The Number keys work with MythTV
+
*The skip forward button does the standard 30 second skip correctly
The Pause button will pause MythTV
+
*The skip back button does the 10 second back skip correctly
The Record button will start an on-the-fly-recording
+
*The fast-forward and rewind buttons function as they should
The skip forward button, does the standard 30 second skip
+
*The Pictures button will switch tuner cards if you have more than one. Nice for DVB users who don't use VDR.
The skip back button does the 10 second back skip
+
*The Mute button functions correctly
The fast-forward and rewind buttons function as they should
+
*The Info button functions correctly
The Pictures button, will switch tuner cards if you have more than one, Nice for us DVB users who don't use VDR.
+
The Mute button functions
+
The Info button functions
+
 
+
Thats it, your ready to be Inter "Active" with your LMCE system. Enjoy.
+
 
+
Please feel free to update this article with any other information, or if I forgot something. :-)
+

Revision as of 16:30, 25 May 2008


Summary

Gyration.JPG

The Gyration GYR3101US remote is identical in style to the Fiire Chief. The keys are not mapped as nicely as the custom-designed Fiire Chief, though. The Gyration's firmware can be updated to gain similar functionality, though, using the Xmodmap program (and its corresponding config file) .

The Gyration remote control uses the gyro feature just like the Fiire Chief and the Gyration mouse. (The major difference is how the remote is detected and used by LinuxMCE, of course.)

Availability

Default capabilities

  • When the device is plugged in, it is identified and configured as a GO Wireless USB device. The "gyration mouse" bit works immediately. By default the Stop button will stop media playback, and the skip forward and back buttons work. If this is all you want, you're done. No further configuration is needed.
  • By default LinuxMCE recognizes the volume up/down keys, the 10 number keys, the MCE button, and the media controls play/stop/ffwd/rwd/pause/skip fwd/skip back.

How to Setup

  • I wanted the "Ambience" (Volume/Lighting) control key mapped, as well as the Channel/Chapter function, and the pull up menu for watching/listening to media.
  • To enable the volume control, I used the xev application from the KDE desktop terminal window, and identified the required keys.
xev

The first time this is run, it will pop-up a test window. Specify your mouse there, and then press the buttons on the Gyration remote to see the results in the terminal. Pay special attention to the

keycode

entries -- they are what you will specify in the .Xmodmap file.

On my particular setup (which I think is the default) the keys show up as:

Volume Up   keycode 176
Volume Down keycode 174
MCE button  keycode 97


Now the keys in LinuxMCE that provide the volume/channel/menu functions are:

F6 = Channel/Chapter FFWD/RWD/PAUSE menu
F7 = Menu button
F8 = Volume/Lighting button "ambience"

Update to get more MythTV functionality

MythTV Keys

P = Pause  # Pause key on remote
R = Record   # Record key on remote
Z = 30 second skip # Right skip key under directional pad
Q = 10 second back   # Left skip key under directional pad
I = Info   # Info button
F9 = Mute   # Mute button
Y = Switch Cards   # Pictures button
PgUP = Fast Forward   # FFWD Button
PgDOWN = Rewind   # RWND Button

Using this info, I created the following .Xmodmap file as root user in /etc

cd /etc
sudo vi /etc/.Xmodmap

/etc/.Xmodmap

keycode 176 = F8
keycode 174 = F6
keycode 97 = F7
keycode 110 = P
keycode 177 = R
keycode 153 = Z
keycode 144 = Q
keycode 134 = I
keycode 160 = F9
keycode 237 = Y
keycode 180 = PgUP
keycode 152 = PgDOWN

Now after creating the file, make sure it is loaded when LinuxMCE starts up. To do this add the following (as root) to the script file /usr/pluto/bin/lmce_launch_manager.sh:

sudo vi /usr/pluto/bin/lmce_launch_manager.sh

Add a line before the line KDE_DEBUG=1 so that it looks like

xmodmap /etc/.Xmodmap
KDE_DEBUG=1

Save the file. You have two choices to get it going.

  • 1. Fire off the command
sudo xmodmap /etc/.Xmodmap 
(This must be done from the KDE desktop term window (Konsole), as it needs to be run in the X environment. (You can also export the display like: export DISPLAY=:0;xmodmap /etc/.Xmodmap .)
  • 2. Restart the core.
By placing the file in the lmce_launch_manager.sh script, anytime the core is rebooted, your settings are automagically set up.

Troublshooting

Problem: There are a couple of oddities to that I have encountered. When I watch a movie and want to change the volume or lighting for a movie (or pre-recorded program), it does what it supposed to. But when I watch Mythtv live, pressing the volume up on the Gyration remote invokes the MythTV Sleep Timer.

Solution: This can be resolved by remapping the sleep timer key using the Mythweb application located at http://core.ip.address/mythweb/ (for internal open systems) or at http://core.dhcp.server.adress/mythweb/

This can be avoided by unmapping the following keys in Mythweb/Settings/Controls

F6
F7
F8

Unmap these keys. Make sure you scroll down the whole list, as they appear more than once.

After you have completed these steps the following keys will perform these functions:

  • MCE button pulls up LinuxMCE menu system
  • Volume Up button brings up the "Ambience" controls during media playback
  • Volume Down button brings up the Channel/Chapter Fast Forward/Rewind and Pause functions
  • The Gyration center button does movement correctly
  • If you double click the center button, the mouse stays active, but remember to click once more to turn off (or you'll kill the batteries).
  • The Gyration Left button acts like the left mouse button for "Choose" functions
  • The Gyration Right button is the "exit" or "clear item" button
  • The left and right buttons are just like mouse buttons
  • The Number keys work with MythTV
  • The Pause button will pause MythTV
  • The Record button will start an on-the-fly-recording
  • The skip forward button does the standard 30 second skip correctly
  • The skip back button does the 10 second back skip correctly
  • The fast-forward and rewind buttons function as they should
  • The Pictures button will switch tuner cards if you have more than one. Nice for DVB users who don't use VDR.
  • The Mute button functions correctly
  • The Info button functions correctly