LinuxMCE Forums

General => Users => Topic started by: b4rney on April 01, 2010, 05:33:18 PM

Title: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on April 01, 2010, 05: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?
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on April 01, 2010, 05: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?
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 02, 2010, 12:31:35 AM
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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: tschak909 on October 02, 2010, 03:20:44 AM
What's the key mapping? I'll add it here, with a new device template specifically for it.

-Thom
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 02, 2010, 11: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 02, 2010, 06: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: tschak909 on October 02, 2010, 07: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 03, 2010, 01: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 03, 2010, 02: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: tschak909 on October 03, 2010, 06: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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: b4rney on October 03, 2010, 12:15:36 PM
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
Title: Re: Emprex 3009URF RF Vista MCE remote
Post by: tschak909 on October 03, 2010, 06:17:48 PM
The Generic HID Interface code would need to be modified to handle this, I guess.

-Thom