[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live) - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live) (/showthread.php?tid=88560)
- coldsource - 2011-02-17 11:06
Hi UsagiYojimbo and thanks for your remarks.
In fact the loop line 210 tries to find an event with all 0 codes except the first one, as standard keyboard send this event to notify of a key up event. As you said your remote doesn't send this event but sends 43415400FF77 instead which was not detected.
I've tested your patch and in fact it also works with other remotes since the first event following the key press will be deteced as a key up which I belive is correct. I'll integrate it in the next release.
Could you tell me if the key repetitions are working with this or do you still need a special event to repeat the last key ? I don't think this patch should make key repetition work but who knows
- coldsource - 2011-02-17 11:13
ximon Wrote:Hello, I wonder if anyone can help me, I seem to be stuck fairly early on in the process - I can't seem to blacklist my remote (on xbmclive).
Hi ximon, could you try :
I think it should work in your case.
- UsagiYojimbo - 2011-02-17 21:49
coldsource Wrote:Could you tell me if the key repetitions are working with this or do you still need a special event to repeat the last key ? I don't think this patch should make key repetition work but who knowsIt is not working, nor should it.
As the remote uses select, press, press... events for repetition, and the keyboard uses down, down..., up events.
For this to work, I think something like this could be programmed:
I believe, this should work with other remotes, too.
By the way, I mapped the buttons on the case as well.
- ximon - 2011-02-18 12:57
coldsource Wrote:Hi ximon, could you try :
Thanks very much, I will try this tonight. I have already prepared and tested my mapping, just needed to be able to blacklist the remote from Xorg…
Mouse Map - akr884 - 2011-02-18 14:43
coldsource Wrote:You can now affect multiple events to the same code and use wildcards in event definition.
Just tried it out and it works well.
- UsagiYojimbo - 2011-02-18 15:44
Shayan Wrote:Is there a keyboard shortcut that maps directly to shutdown?Tried to map to KEY_POWER?
akr884 Wrote:Coldsource, everything works really well including the acceleration (using 2,4,6... for the pixel movements)I believe removing that first condition would stop akr88's mouse pad from repeating until another key is pressed, as these contain non-first zero bytes, too...
- coldsource - 2011-02-18 16:18
UsagiYojimbo Wrote:I believe removing that first condition would stop akr88's mouse pad from repeating until another key is pressed, as these contain non-first zero bytes, too...
Keys 02 00 xx yy for akr884 are relative mouse movement events (e.g. move up by 4 pixels) so there is only one event. This bloc was already disabled for mouse movement events. Mouse and keyboard events are treated separately with different mappings (--map and --map-mouse) as their management is not the same on uinput.
- Psycho_Dad - 2011-02-18 22:13
Hi coldsource, thank you for last reply (few pages before :).
First of all I should mention that building hid_mapper on Debian Squeeze failed with the following message.
I've checked that my /usr/include/linux/input.h doesn't contain these definitions. Commenting out the corresponding three rows (in the integer array) in keys_definition.cpp solved the problem.
After building hid_mapper I wrote down some key codes for my remote control and made a mapping file, but the following command failed.
I've read through the thread and Diego2002 had the same problem. It seems he managed to solve it with. I've tried the same thing.
Any idea? :) Thanks!
- Mindzai - 2011-02-19 02:39
I'm having an issue with (I think) key up codes not being recognised for my remote. Learn mode worked fine and I made a map, I can start the driver but as soon as I press a button not much else works, it's as if the remote locks up.
I see that my remote is not sending 0 for a key up code in some cases, is this the issue? If so is there anything that can be done to correct it?
The remote seems to consist of 2 HID devices if that makes any difference.
Here is my key map, the commented code is the key up code for the associated key down code:
- ximon - 2011-02-19 13:49
coldsource Wrote:Hi ximon, could you try :
Hmm, no luck - Xorg won't load, boots to the console. Any ideas?
Thanks again for your help!
Edit: The remote is the only input device connected to the system, is it possible that Xorg requires at least one input device in order to start?