LinuxMCE Forums
May 19, 2013, 11:09:27 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Emprex 3009URF RF Vista MCE remote  (Read 1574 times)
b4rney
Guru
****
Posts: 454


View Profile
« on: April 01, 2010, 04:33:18 pm »

Took a gamble and bought this mce RF remote from Amazon.
http://www.amazon.co.uk/Emprex-3009URF-Windows-Center-Control/dp/B002A8HEFY/

USB receiver dongle plugs in, connected the remote and had 90% functionality straight away using 810.

Missing functions are the green mce button (biggest pain), mute and volume do nothing. All media keys work as expected as does 'guide', 'back', all numbers, channel up/down. So it's almost there. Just that magic green button and I'd be happy.

Comments on Amazon regarding linux use:
http://www.amazon.co.uk/review/R24W6CO393NC4I/ref=cm_cr_rdp_perm

Installs as a hid device/keyboard. Anyone tried this remote? Any thoughts on how or if I can get the green mce button to work?
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #1 on: April 01, 2010, 04:56:38 pm »

Tried:
cat /dev/hiddev1
And was able to see the raw key presses, but this is all new to me.

I thought a cheap RF remote might be a nice addition to lmce. Can someone with some expertise tell me if I am wasting my time?
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #2 on: October 01, 2010, 11:31:35 pm »

Recently got this working. Turns out it has the same keycodes as the gyration 3101 minus the green menu button.

Option one is to duplicate the Go Cordless GC1005M template (1812) and add a mapping for the green button to a different key. I chose the pause button as the play button does both play and pause.

Then add the vendor id 046e5578 to the pnp section.

Option two is to add a single key mapping to the Go Cordless GC1005M template, with the main menu mapped to the escape key (for example). Then add the vendor id to this template. This would simply add a new unused key to the gyration template which would allow the Emprex to work but would not affect the gyration at all.

The advantage of the second approach is there is very little work to do and no duplication.

Both are compromises as the big green button is useless either way.

Obviously I have the new template with the pause button mapped ready for submission.
Barney
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #3 on: October 02, 2010, 02:20:44 am »

What's the key mapping? I'll add it here, with a new device template specifically for it.

-Thom
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #4 on: October 02, 2010, 10:40:22 am »

Thanks Thom,

I commented out the pause button in the configuration box:
#Pause,110,D

Then changed the f7 link mapping to be the pause button:
2,110=2,73
3,110=3,73

There are a few redundant keys in the config though.
Vendor id for pnp :
046e5578

I added the manufacturer Emprex, but I see they are also known as BTC.
Cheers
Barney
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #5 on: October 02, 2010, 05:56:07 pm »

Thom,
Tested for a couple of days now.

Could also do with mapping the 'escape/clear' button to a 'right mouse click'.
keycode:
escape,9

Is this possible? Where would I find the key mapping info?
73=f7 etc

Looked in the forums/wiki already with no luck.
Barney
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #6 on: October 02, 2010, 06:55:00 pm »

run and watch the output of xev in a console window as you press some keys inside the window that xev pops up.

-Thom
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #7 on: October 03, 2010, 12:04:28 am »

Thom,

I did that and got the 'escape, 9' keycode. I just don't know where to map it to for a right mouse click.

Barney
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #8 on: October 03, 2010, 01:08:19 am »

Thom,

The right mouse click shows as 'button 3' in xev. This mouse clicks doesn't have a 'keycode' in xev just the 'button 3' string.

What is the syntax for mapping keycode 9 escape to 'button 3'?  I've tried several combinations.
2,9=4,button 3
2,9=4,3

Cheers,
Barney
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #9 on: October 03, 2010, 05:26:53 am »

Take a look at this, real quick:

http://wiki.linuxmce.org/index.php/Creating_a_Device_Template_for_a_Remote_that_uses_the_kernel_input_subsystem

-Thom
Logged
b4rney
Guru
****
Posts: 454


View Profile
« Reply #10 on: October 03, 2010, 11:15:36 am »

Thom,

Been using that page already. It seems the right mouse button doesn't have a keycode output in xev so I'm stumped.

I'll keep digging.
Cheers
Barney
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #11 on: October 03, 2010, 05:17:48 pm »

The Generic HID Interface code would need to be modified to handle this, I guess.

-Thom
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!