[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) |
- Psycho_Dad - 2011-02-19 The blacklisting is only needed to block the key presses from your remote to the X server. If you have working buttons and you are satisfied with them you don't need to block it. And it won't be a problem if you have two devices which for example can send an 'F1' key press to the X server. You won't be using the two at the same time (I assume), so the X server will only know that the key press was an 'F1', it doesn't care about whom send it. At least this is how I see, and I couldn't even map my HID device with hid_mapper yet. : ) However, blacklisting is a must for me, because my remote switches to tty2-4 with some key presses, and sends combinations like 'CTRL+ALT+SHIFT+F+F1+DEL+:D' and stuff to the X server. - ximon - 2011-02-21 UsagiYojimbo Wrote:I do not really understand why do you need hid_mapper, again? Also, my remote only produces stupid key presses (control shift ?) and is a PITA to set up in keymap.xml. It would be much easier for me to be able to assign 'normal' keyboard keys to each button on the remote and use the default xbmc keymap - for example backspace for back, esc for home, c for contextual menu… But to do this I need to get the blacklist to work… Getting a fully working remote is the bane of my xbmc life - I would just buy a MCE2 remote, but it is impossible to find one where I live (France). If anyone has any ideas, please share! Thanks! - coldsource - 2011-02-22 Hi ximon, Which distribution are you using ? MatchUSBID is refered in xorg.conf manual so it should work. Anyway have you tried : Quote:MatchVendor "HOLTEK" I think it could work. - ximon - 2011-02-23 coldsource Wrote:Hi ximon, I'm using XBMCLive Dharma. Tried "MatchVendor "HOLTEK"" and success! Thanks so much for your help, and of course for the HID Mapper. - Mindzai - 2011-02-23 Mindzai Wrote:Hi coldsource I'm still having no luck with this. I tried a different remote and that does the same. I notice that hid_mapper is exiting saying "Segmentation fault". It can't be an issue with the hardware because the second remote worked fine when I tested it at work (Ubuntu 10.10), but on my Live machine it breaks. Is there anything I can do to debug this? Here is the output from the command: Code: karl@mediacenter:~/hid_mapper_beta$ sudo ./hid_mapper --lookup-id --manufacturer '046e' --product '5577' --map emprex.map - coldsource - 2011-02-23 Mindzai Wrote:I'm still having no luck with this. I tried a different remote and that does the same. I notice that hid_mapper is exiting saying "Segmentation fault". It can't be an issue with the hardware because the second remote worked fine when I tested it at work (Ubuntu 10.10), but on my Live machine it breaks. Is there anything I can do to debug this? Hi Mindzai the segfault was a bug in the beta version. I've updated it : hid_mapper_beta.tar.gz This should solve your problems. - Mindzai - 2011-02-23 Hi coldsource, Thanks, that's working perfectly. Finally a solution for getting my IR and RF remotes working! I've only ever had a few buttons working before, this is great! Thanks for providing this driver. I really think it should be incorporated into XBMC Live. I'm sure it would be trivial to write an addon which can generate map files. - Psycho_Dad - 2011-02-23 Any ideas on problem mentioned previously? hoyanf back here had the same problem. Sorry to bring this up coldsource, but maybe these just slipped your attention. What could be the problem? :/ Could that be an issue that my input.h missing a few keys? Invalid mapping file format? (Although, hid_mapper reported that it "Loaded map file /path/to/mapfile".) - coldsource - 2011-02-24 Hi Psycho_Dad, Sorry I had completely forgotten your previous post. Your problem might come from several things, I've noticed that some uinput files are not located the same way on ubuntu and debian. I've updated beta version : hid_mapper_beta.tar.gz This version should correct the errors in keys_definition.cpp so you should not have to edit this file anymore. It also checks several locations for uinput files which could be your problem. Don't forget to run modprobe uinput as debian kernel doesn't have built in support for uinput. Let me know if it works VFD on USB/HID - UsagiYojimbo - 2011-02-24 Does anyone has ideas for using the VFD of that same device? - coldsource - 2011-02-24 Hi everyone, I've switched the current beta version to stable and uploaded the new beta version : hid_mapper_beta.tar.gz Improvements are :
Here is a sample file that uses both new mappings : Quote:0000050000000000:KEY_Z I'm waiting for your feedback - ximon - 2011-02-24 Hi, I upgraded to the latest stable version since a lot of my keys weren't working (all the keys with 'short' codes, ie. 00040100), but now I can't get hid_mapper to run: Code: root@XBMCLive:~/hid_mapper# ./hid_mapper --lookup-id --manufacturer '1241' --product 'e000' --map 'SL-6399.map' Any ideas? I'm using the same .map file that loaded fine with an older version… - coldsource - 2011-02-24 Hi ximon, Could you post the line that is not recognized as well as your linux distribution ? Edit : can you post the whole file so I can test everything at once. Thanks - ximon - 2011-02-24 I got it sorted, tried to post straight back but the forum seems a little flakey tonight… My .map had a 'KEY_IO:' in it that was causing trouble, got rid of it and hid_mapper runs. It's still not picking up a lot of buttons though, all the buttons that generate long codes in 'learn' mode work, like 'Select' for instance: Code: Opened HID interface on /dev/hidraw1 But all the buttons that generate shorter code pairs don't seem to work, like 'Start': Code: Opened HID interface on /dev/hidraw1 I don't know what I'm missing, any ideas? Cheers! - coldsource - 2011-02-24 Quite strange cause my remote also sends short and long codes and both are working. Could you post the whole file I'll test it at home, it might be a problem with the key lookup that trigger only with special mappings. |