Author Topic: Gyration Remote Configuration  (Read 2683 times)

Blackhat

  • Regular Poster
  • **
  • Posts: 28
    • View Profile
Gyration Remote Configuration
« on: March 20, 2008, 11:46:03 pm »
**EDIT** Title was way wrong, modified to better describe problem**

I'm sure I'm missing something simple, or didn't find the right document in the wiki.  But I'm having issues trying to bring up a menu while a movie is playing.  either with the keyboard/mouse or my Gyration remote.  I can use the next, previous and stop buttons but none of the others seem to respond except in the dvd menu.  What am I doing wrong?
« Last Edit: March 21, 2008, 02:38:07 pm by Blackhat »

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Movie control issues
« Reply #1 on: March 21, 2008, 12:09:08 am »
I only use mobile orbiters to control movie playback, but if I remember right, the onscreen orbiter uses F6 I believe to start accepting FF/RW and absolute positioning

Blackhat

  • Regular Poster
  • **
  • Posts: 28
    • View Profile
Re: Movie control issues
« Reply #2 on: March 21, 2008, 12:11:45 am »
Is that a permanent setting?  Hit F6 once and it'll always allow that control?

**EDIT**

Ah, I see what's going on.  Is there anyway to bind those buttons to the remote?  Or are they already and I'm not using it correctly?
« Last Edit: March 21, 2008, 12:14:53 am by Blackhat »

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Movie control issues
« Reply #3 on: March 21, 2008, 02:35:10 am »
the wiki entry states that it should be accessible from the gyro - have  you combed over http://wiki.linuxmce.org/index.php/Control_LinuxMCE_with_Gyro_Remote? Maybe it has some hints

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Movie control issues
« Reply #4 on: March 21, 2008, 03:56:11 am »
Though not specific to your gyro mouse, this wiki article details how to map buttons on your gyro mouse to keyborad keys
http://wiki.linuxmce.org/index.php/Using_the_Gyration_Remote_GYR3101US_%28Non-Fiire_Chief%29

Blackhat

  • Regular Poster
  • **
  • Posts: 28
    • View Profile
Re: Movie control issues
« Reply #5 on: March 21, 2008, 02:25:08 pm »
Exactly what I needed, thanks a ton!  Sorry for being retarded and not looking it up in the hardware list :-\  I should have looked there first...

However, I am hitting a small problem with the forward and back buttons on the remote... or more accurately, with the config file

Code: [Select]
xmodmap:  /etc/.Xmodmap:11:  bad keysym name 'PgUP' in keysym list
xmodmap:  /etc/.Xmodmap:12:  bad keysym name 'PgDOWN' in keysym list
xmodmap:  2 errors encountered, aborting.

It appears the commands for PageUp and PageDown have changed...  I did a search and didn't come up with anything, anyone know by chance what they are supposed to be?

** EDIT **

Also, the pause command doesn't appear to work with DVD's.  Is this a xine setting or something?  I have the correct remote keycode set for "P", but I noticed the hardware page is talking about controlling TV, not DVD's.
« Last Edit: March 21, 2008, 03:07:46 pm by Blackhat »

Elitoh

  • Regular Poster
  • **
  • Posts: 15
    • View Profile
Re: Gyration Remote Configuration
« Reply #6 on: April 01, 2008, 07:40:20 pm »
yeah I am having the same problem right now. It works when you first install LMCE but when you do the xmodmap it doesn't keep the other settings. I want to pause, stop, FF, RW and I cant . Any Solutions for this yet?

Randykc

  • Regular Poster
  • **
  • Posts: 28
    • View Profile
Re: Gyration Remote Configuration
« Reply #7 on: April 08, 2008, 01:08:14 pm »
Does the Play button work for you? Doesn't seem to do anything on my remote.  What would keycode 179 map to in the .Xmodmap?
« Last Edit: April 08, 2008, 03:13:40 pm by Randykc »

radmofo

  • Veteran
  • ***
  • Posts: 94
    • View Profile
Re: Gyration Remote Configuration
« Reply #8 on: June 03, 2008, 05:19:48 pm »
I'm having a heck of a time with this....Asistance needed please. The biggest thing is it doesnt seem to load automatically, I think its something to do with permissions, higher power help is needed. I followed the directions exactly and if I run the command manually it works but it just will not autostart per the directions. WHY!!?? UGGH!

This works,
Quote
sudo xmodmap /etc/.Xmodmap


This don't work.
Quote
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

Also these two commands in the .Xmodmap file give an error as stated in an earlier post in this thread
Quote
keycode 180 = PgUP
keycode 152 = PgDOWN
They have to be removed from the file for it to be executed. I think from this line in the instructions that they are FF Rwd,
Quote
PgUP = Fast Forward   # FFWD Button
PgDOWN = Rewind   # RWND Button
which does not work.

The other part of the directions that are flakey is...
Quote
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:


I have looked up and down this list and there are no keys mapped to F6, F7 or F8. I'll even paypal someone real live money if they can solve this and make this remote work like the directions say. After all I did buy two of these for $75.00 (half the price of 1 fiire chief) I'd rather give the dough to a dev anyway! I figure I have 15 hours into it now and its just a damn remote!! Oh, I'm using 0710 RC2 with this (havent tried another version) Well, if there is any chance of getting it to work, I know I have posted in the right place! I look forward to hearing back...

Heres the directions I followed...
Code: [Select]
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
Gyration codes: Gyration-GYR3101US-codes
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.
Troubleshooting
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

rodercot

  • Guest
Re: Gyration Remote Configuration
« Reply #9 on: June 05, 2008, 07:52:06 pm »
Any updates on this. I had the same problem with this setup and the pgUp and down errors. I just removed them from the xmod file and saved it and then fired the command and all the rest of it works great. I tried all different caps on and off PageDown - PgUp PgDOWN - PGDOWN etc always with the same error.

 Regards,

 Dave

rodercot

  • Guest
Re: Gyration Remote Configuration
« Reply #10 on: June 06, 2008, 01:56:18 pm »
Can we view this keysym list somewhere. I searched at MYTH and here and google. I notice in live tv I am still not getting playback controls as well. pause, etc...

 rgds,

 Dave