[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live)

  Thread Rating:
  • 7 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pokemeintheye Offline
Junior Member
Posts: 2
Joined: Jul 2008
Reputation: 0
Post: #171
(2011-06-25 21:01)oscargirao Wrote:  
Grez Wrote:Hi coldsource, hope you can help. I just upgraded the OS on my Jetway mini-top from Ubuntu 10.10 to 11.04 and the hid_mapper has stopped working Sad

I tried recompiling the version that worked previously, and also downloaded the most recent tarball you posted in this thread and compiled that but neither seems to work.

The --list devices option works OK and seems to show the same results as it always did, but either trying to run the hid_mapper or to learn both come up with "Unable to find specified HID device".

Strangely, the only thing that does work is the very first version you posted in this thread, hid_mapper.tar.gz -- this finds the device fine and the remote starts to work, but not all of the buttons work properly in this version which is why I had moved to the hid_mapper_beta version a long time ago.
I have the same problem when I plug an external USB disk to my Jetway. If I remove the disk and start the htpc without it plugged and then plug the disk after the xbmc starts the remote works fine.
Any ideas?

oscargirao,

Did you ever find a fix for this. I'm having the exact same issue. I have to unplug my external USB drive on boot or the hid_mapper does not work. Anyone have any ideas?
find quote
almalaci Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #172
Hi,

Thanks everyone for getting this project where it is now.
I have a 1241:e000 receiver with a separate MCE remote.
The remote is found but I seem to have an issue with learn mode.

starting hid_mapper, I get:
Opened HID interface on /dev/hidraw2
Opened HID interface on /dev/hidraw3

But none of the keys I press give any result.

Any ideas?
find quote
haylocki Offline
Junior Member
Posts: 1
Joined: Aug 2012
Reputation: 0
Post: #173
Hi,

I have the following remote control :

IRF Media RC6 Remote

This works great using the following map file

irfmedia-rc6.map

04003D0000000000:KEY_ESC
01000C0000000000:KEY_CAMERA
0400280000000000:KEY_ZOOM
038100000000:KEY_POWER
0100080000000000:KEY_VIDEO
0300170000000000:KEY_TV
0100040000000000:KEY_RADIO
0100100000000000:KEY_AUDIO
0300100000000000:KEY_DVD
0300050000000000:KEY_REWIND
02B700000000:KEY_STOP
02B300000000:KEY_FASTFORWARD
02B600000000:KEY_PREVIOUSSONG
02CD00000000:KEY_PLAYPAUSE
02B500000000:KEY_NEXTSONG
02E900000000:KEY_VOLUMEUP
02EA00000000:KEY_VOLUMEDOWN
02E200000000:KEY_MUTE
0800070000000000:KEY_COMPUTER
0C00280000000000:KEY_MEDIA
0000520000000000:KEY_UP
0000510000000000:KEY_DOWN
0000500000000000:KEY_LEFT
00004F0000000000:KEY_RIGHT
0000280000000000:KEY_ENTER
00002A0000000000:KEY_BACK
0000650000000000:KEY_INFO
022402000000:KEY_PREVIOUSSONG
022502000000:KEY_NEXTSONG
0000290000000000:KEY_CLEAR
00001E0000000000:KEY_NUMERIC_1
00001F0000000000:KEY_NUMERIC_2
0000200000000000:KEY_NUMERIC_3
0000210000000000:KEY_NUMERIC_4
0000220000000000:KEY_NUMERIC_5
0000230000000000:KEY_NUMERIC_6
0000240000000000:KEY_NUMERIC_7
0000250000000000:KEY_NUMERIC_8
0000260000000000:KEY_NUMERIC_9
0000270000000000:KEY_NUMERIC_0
0200250000000000:KEY_NUMERIC_STAR
0200200000000000:KEY_NUMERIC_POUND
00004B0000000000:KEY_CHANNELUP
00004E0000000000:KEY_CHANNELDOWN
0100150000000000:KEY_RED
022302000000:KEY_GREEN
028A01000000:KEY_YELLOW

and can be run using the following command
Code:
sudo ./hid_mapper --lookup-id  --manufacturer '0755' --product '2626' --map './irfmedia-rc6.map'

I have mapped the "close" button to "ESC" rather than "Close" as this is more useful when using the remote with Performous.
If you wish to map the button to "Close" just change the first line in the map file.

Cheers, Ian
find quote
almalaci Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #174
I guess I only needed a restart because the other day I was routinely using the remote under xbmc thinking I was in XP Media Centre and it worked!
Basic functions work already without a map file so I'm chuffed!
(This post was last modified: 2012-08-08 00:31 by almalaci.)
find quote
monchyp11 Offline
Junior Member
Posts: 1
Joined: Aug 2012
Reputation: 0
Post: #175
Hi everyone, maybe you can help me with this problem i'm having, i configured my remote to wake up after sleep and setting the power button to KEY_POWER, that works fine.
the problem is that when i wake up my laptop from the remote button i get "Error reading HID event", but if wake it from the laptop power button it keeps working correctly. im using xubuntu 12.04.
thank you, this is a great script
find quote
lautriv Offline
Junior Member
Posts: 2
Joined: May 2013
Reputation: 0
Post: #176
Hello,

i used the mapper with success on an aureal (hid-aureal), unfortunately it breaks on newer libc
(2.13 vs 2.17) this is caused by the deprecated fd_set from select and now it's suggested
to use poll instead.

mind to change that for recent machines ? or maybe you did already and i just didn't see that ?
find quote
Claudio.Sjo Offline
Junior Member
Posts: 4
Joined: May 2013
Reputation: 0
Post: #177
Hi,
I have hacked the driver to make it work in my HD-PLEX based HTPC.
It works pretty well under Lubuntu 12.10, with HID 1241:e000
Still XBMC doesn't follow my wishes for all keys, it looks like there's somewhere a key definition that is used,
and that differs from my rc6 remote control.

If you wish, I can upload the updated driver, just let me know how to upload a file in this forum.

Regards,
Claudio
find quote
Post Reply