[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live) (/showthread.php?tid=88560) |
- ximon - 2011-02-24 Sure, thanks: Code: #TV Edit: I have been double-checking, it's not all the short codes that aren't working - it's some short ones and some long ones. Confirmed not working: Title/Red 0100180000000000:KEY_I Start 00040100:KEY_ESC TV 0040200:KEY_F1 PC 04003d0000000000:KEY_END - ximon - 2011-02-24 coldsource, Don't worry about my remote, I can work around the four buttons that don't work, and I still have way more buttons working now than before thanks to your driver. Great work, you have greatly enhanced my xbmc experience! Thanks again! - coldsource - 2011-02-24 Hi ximon, I've just tested everything and all seems to work. I have simulated the key events and I get the correct keys. I don't see what could cause your problems. Maybe the mapped keys are interfering with something else, you could try with simple keys like letters and test in a term to see if this works (outside of xbmc). Hope you'll find a solution ! Glad to have helped you ! - Mindzai - 2011-02-25 Not that it helps much but I can confirm that I also have a remote which sends long and short codes and it all works fine. - UsagiYojimbo - 2011-02-25 ximon Wrote:I am not sure to have any significance, but the code for Title/Red is doubled in the map: one for KEY_GREEN and another for KEY_RED. Could this be the cause of the problems? However, the other codes seem to be not doubled. Edit: I forgot to upload my mapping file, so here it is: Code: # Buttons on the remote: - WittFan - 2011-02-27 Grez Wrote:This is brilliant, thank you so much Coldsource, this driver/app has solved all my Remote niggles with my Jetway Mini-TOP. Grez, I've got a Jetway Mini-Top too,but I'm not having any luck getting hid_mapper to see my remote. According to dmesg hid_mapper should find the remote on hidraw4 and hidraw5: Code: user@minitop:~$ dmesg | grep aureal But hid_mapper isn't finding anything. Code: user@minitop:~$ sudo ./hid_mapper_beta/hid_mapper --list-devices --lookup-id Did you have to do anything special to get hid_mapper to see your remote? - akr884 - 2011-02-28 coldsource Wrote:I've updated beta version : hid_mapper_beta.tar.gz The BTN_RIGHT and BTN_LEFT mouse clicks work perfectly. The only thing missing for me, as far as the remote control configuration is simultaneous button clicks. I think you mentioned it earlier talking about how to do drag-and-drop with the mouse, or for me, selecting text, or dragging a scroll bar. But it seems like it could also be useful, given that I've mapped a lot of my keys to function keys, to be able to have maybe a KEY_ALT to be able to use key shortcuts inside or outside of XBMC. I was also thinking about writing a tutorial with my button mappings for my remote, although I'll probably wait until you declare a final version of the mapper. Do you think it would make sense to have an auto-configure tool for specific remotes like in LIRC? Anyways, thanks again for your great work and I hope you decide to keep improving the button mapper. - Mindzai - 2011-02-28 akr884 Wrote:Do you think it would make sense to have an auto-configure tool for specific remotes like in LIRC? I was thinking about writing a tool to generate map files. At first probably just a simple CLI script but eventually as an XBMC plugin. - UsagiYojimbo - 2011-03-02 I had to remove (# out) key repetition code as it sometimes gets repeated ad infinitum... - Psycho_Dad - 2011-03-03 coldsource Wrote:Hi Psycho_Dad, Hi! Sorry for the late reply! Everything works perfectly now. I've tried hid_mapper under Debian Squeeze amd64 and Ubuntu Maverick amd64 also; it works fine under both distros. One thing though: I don't know if it's a feature or not but I couldn't map key combinations, like CTRL+F1 or something. I wanted to map mplayer's default shortcuts in my mapping file, but I failed to map 'O' for example as that would require KEY_LEFTSHIFT+KEY_O or something. Not a huge problem for me as I remapped the keys in mplayer's conf for lowercase letters but this feature couldn't hurt. - UsagiYojimbo - 2011-03-04 Psycho_Dad Wrote:One thing though: I don't know if it's a feature or not but I couldn't map key combinations, like CTRL+F1 or something. My thoughts exactly. Well, without mplayer.. - coldsource - 2011-03-04 Hi everyone, WittFan Wrote:Grez, I've got a Jetway Mini-Top too,but I'm not having any luck getting hid_mapper to see my remote.Could you tell me which distribution you are using ? It seems that the /sys filesystem doesn't contain some required files for hid_mapper. UsagiYojimbo Wrote:I had to remove (# out) key repetition code as it sometimes gets repeated ad infinitum...In which situation does it happen ? If you can isolate a sample case I'll try to debug this. akr884 Wrote:The only thing missing for me, as far as the remote control configuration is simultaneous button clicks. I think you mentioned it earlier talking about how to do drag-and-drop with the mouse, or for me, selecting text, or dragging a scroll bar. Psycho_Dad Wrote:One thing though: I don't know if it's a feature or not but I couldn't map key combinations, like CTRL+F1 or something.You're right I'll implement keys combination in the next beta release. Maybe key modifiers (like SHIFT, ALT..) would be enough, or do you need multiple key presses like A+B ? I think modifiers should be enough at least for the first release but tell me. Mindzai Wrote:I was thinking about writing a tool to generate map files. At first probably just a simple CLI script but eventually as an XBMC plugin.I think it would be a very good idea. It would simplify a lot the generation of map files. Integrating it into an XBMC plugin would be even better since some people are not very friendly with command line tools. Tell me if you need help for this. Thansk everyone - Psycho_Dad - 2011-03-05 coldsource Wrote:You're right I'll implement keys combination in the next beta release. Maybe key modifiers (like SHIFT, ALT..) would be enough, or do you need multiple key presses like A+B ? I think modifiers should be enough at least for the first release but tell me. I need no more as mplayer works just fine with my remapped keys and I only use a handful of buttons, but if you ask me there will surely be other hid_mapper users who jsut couldn't *live* without exotic key combinations like Ctrl+Super+Alt+Shift+A+F12. So you probably better off doing the most complicated stuff you could imagine. : ) - UsagiYojimbo - 2011-03-05 coldsource Wrote:In which situation does it happen ? If you can isolate a sample case I'll try to debug this. I found out: The receiver always sends 6 bytes. If no button pressed for a given time, it sends zeros to fill up... Edit: The problem occurs, when something get between the key-down and the key-up events. It also only affects XBMC, or at least it had not occurred in consoles... - UsagiYojimbo - 2011-03-05 coldsource Wrote:You're right I'll implement keys combination in the next beta release. Maybe key modifiers (like SHIFT, ALT..) would be enough, or do you need multiple key presses like A+B ? I think modifiers should be enough at least for the first release but tell me. I do not think one could need to generate a "key combination" where more than one non-modifier keys are pressed at the same time. Also, Unices use "key combinations" where non-modifier keys (with modifiers, optionally) are pressed in sequence. So "A+B" (that is A and B are pressed at the same time) is not likely needed, but "A B" (that is: A is pressed, after which B is pressed) is a possibility... |