[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)
- Diego2002 - 2011-01-27 23:48
I tried this x11/xorg blacklisting, but in /usr/share/x11 there isn't such folder xorg.conf.d.
The situation anyway isn't changed, my custom map isn't recognized.
Slowly I give up, because I have only two buttons (Power off, and Win key), which aren't working on my remote, I try to live without these.
- coldsource - 2011-01-28 11:50
Cucurbitace Wrote:Every key that use a value above 9 (A to E) is not recognized by the program.
My fault it was a bug in the code. I have updated the beta version to correct this. Try redownloading the archive to see if it works.
Still not detecting these keys - akr884 - 2011-01-28 12:47
coldsource Wrote:My fault it was a bug in the code. I have updated the beta version to correct this. Try redownloading the archive to see if it works.
First of all, thanks a lot for these drivers.
I just downloaded the beta version again and it has the same issue with not detecting keypresses that have letters (for me a - f).
edit: Updating the beta driver on my laptop didn't work (I use it for testing) but installing the beta cleanly on my Media Center PC worked.
- Cucurbitace - 2011-01-29 11:22
Congratulations coldsource, the new beta is doing really good.
Here is my map:
I add to edit keyboard.xml config from XBMC too in order to have all the keys working the way I wanted. Here are the changes:
At the moment I still run it manually, as soon as you think it's not a beta anymore, I'll install it properly.
Thanks again for the great work.
Buttons Sticking - akr884 - 2011-01-30 21:55
I've got a generic USB HID mce remote: 073a:2230 that has a mouse input pad.
The button presses that it sends is something like this for the mouse pad
with the xx starting off as one thing and changing maybe 7 times before it sticks definitively (if I hold the button down).
Each direction has a unique pattern, but no matter which number I choose in the sequence as the Action capture to define the button in my .map file, the button sticks until I push another button.
It's not a deal-breaker, but I was wondering if there is a possible fix for this.
I tried to block out only the keyboard and not the mouse input in xorg, but I couldn't get that to work either.
It shows up as /dev/input/by-id/xxx/mouse
/dev/input/by-id/xxx/mouse-event-server - but this one is the only one that shows up on the event input query using cat.
- Grez - 2011-01-31 22:59
This is brilliant, thank you so much Coldsource, this driver/app has solved all my Remote niggles with my Jetway Mini-TOP.
The jetway has a built in IR that shows up as:
Found HID device at /dev/hidraw3
Manufacturer : Cy se̪http://www.ir
Product name : http://www.irfmedia.com UIR
Here's my map, I basically remapped most of the more useless buttons on the bundled remote into keys to do useful things in XBMC as follows:
Standby = L (next sub)
Close = Q (add to queue)
Magnifier = A (audio delay)
www = T (toggle subs)
Full Screen = Z (aspect ratio)
Desktop = O (codec info)
Mic OSD = C (context menu)
WindowToggle = I (info)
I then made my Harmony remote learn all these, mapped them to the right buttons on the Harmony and I can shove the useless bundled remote into a drawer.
- coldsource - 2011-02-01 12:49
Hi everyone and thanks for the feedback.
Based on your results and on the tests I have made I think the beta version is now stable enough, so I have placed it as stable.
I'll post a startup script using upstart for those using ubuntu so you can cleanly start the mapper at boot time.
Some devices simulate multiple interfaces (for mouse and keyboard for example).
When you start the mapper, do you see multiple :
Quote:Opened HID interface on ...And if it is the case could you post the output at startup.
If I understand your problem, the mapping works but the key repetition doesn't. Is it right? I'm not sure to understand what you would like to do.
Could you also post the exact model of your remote ?
- Shayan - 2011-02-02 01:58
Thanks for putting this together, it works great. It got me to register just to say thanks for putting this together.
However, there was one bug I ran into. When I do a ./hid_mapper --list-devices, I have 6 devices attached to my machine, the last 3 of them have the Manufacturer as unknown. So in this block of code
Even though it found my HID device earlier in its loop, the code still exits out with a -1 causing the program to say the HID device was not found.
I did a quick hack, which works for me. If it found some devices earlier, return 0 instead of -1, but I didn't go and check if that works if the valid HID device is after devices with an unknown manufacturer.
Here's my updated block of code
Hope this helps.
- coldsource - 2011-02-02 10:42
Shayan Wrote:However, there was one bug I ran into. When I do a ./hid_mapper --list-devices, I have 6 devices attached to my machine, the last 3 of them have the Manufacturer as unknown.
I think you could use the --lookup-id if some devices have unknown manufacturer or product name, it should do the trick.
Quote:./hid_mapper --list-devices --lookup-id
- UsagiYojimbo - 2011-02-02 13:29
Thanks for this driver!
It works with the IR receiver in my ModeCom FEEL 607 MediaCenter case. I will post the mappings for my remotes (i have 2 of them).