• 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 13
[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live)
I know it doesn't help you much but I also upgraded to 11.04 and have been able to use hid_mapper still, so the driver seems to be compatible. Did you try recompiling?
Reply
I did try recompiling. I tried make clean. I deleted the whole folder, downloaded the latest tarball, un-tarred, and ran make on that, but I still get the same results. It must be something I'm missing. Probably something the upgrade disabled that I have yet to enable again. I'll look through my steps again.
Reply
Well, after installing xbmc live (based on 10.10) and again getting everything to work but the remote, I've narrowed it down to the new version of the hid_mapper (which I decided to update at the same time as the update to 11.04). When I went to an older version, it worked again.

The newer version seems to get stuck at 'Found HID device' while the older one will tell me 'Opened HID interface on /dev/hidraw3'

Problem solved for me I guess.
Reply
Has anyone with a Jetway Mini-top found two identical HID devices when running the ./hid_mapper --list-devices command?

Here is the output that I get:

Code:
Found HID device at /dev/hidraw0
  Manufacturer : C-Media Electronics Inc.
  Product name : USB PnP Sound Device

Found HID device at /dev/hidraw1
  Manufacturer : Cy se̪[url]www.ir[/url]
  Product name : [url]www.irfmedia.com[/url] UIR

Found HID device at /dev/hidraw2
  Manufacturer : Cy se̪[url]www.ir[/url]
  Product name : [url]www.irfmedia.com[/url] UIR

Found HID device at /dev/hidraw3
  Manufacturer : Unknown
  Product name : Unknown

Found HID device at /dev/hidraw4
  Manufacturer : Unknown
  Product name : Unknown
Reply
Yes. I get 2 as well. I don't know why, but it doesn't seem to negatively effect anything. Also I'd like to point out that I haven't been able to use hid_mapper using the actual names, but rather only by ids. The high-ASCII 'e̪' character might mess it up.

Code:
./hid_mapper --list-devices --lookup-id

Should give you 2 instances with manufacturer of '0755' and product of '2626'. So the learn command is:

Code:
./hid_mapper --lookup-id --learn --manufacturer '0755' --product '2626'

That should give you the following output:

Code:
Found HID device
Opened HID interface on /dev/hidraw1
Opened HID interface on /dev/hidraw2

The actual hidraw numbers will vary based on what devices you have connected. I have an issue with the latest beta not actually opening the HIDs, so I'm using an earlier version.
Reply
I also have the JetWay nettop and compiled HID_MAPPER for it.

Ubuntu maverick:
Code:
# uname -a
Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux

I can see the devices
Code:
# ./hid_mapper --list-devices --lookup-id
Found HID device at /dev/hidraw0
  Manufacturer : 0d8c
  Product name : 013c

Found HID device at /dev/hidraw1
  Manufacturer : 0755
  Product name : 2626

Found HID device at /dev/hidraw2
  Manufacturer : 0755
  Product name : 2626

But I can't find them:
Code:
# ./hid_mapper --lookup-id --learn --manufacturer '0755' --product '2626'
Unable to find specified HID device

I tryed with both version I could find. (unfortunatly there is no version info the in the archives.

http://www.coldsource.net/hid_mapper.tar.gz and http://www.coldsource.net/hid_mapper_beta.tar.gz

Let me know if I should try another test.

Proto
Reply
proto Wrote:I tryed with both version I could find. (unfortunatly there is no version info the in the archives.

http://www.coldsource.net/hid_mapper.tar.gz and http://www.coldsource.net/hid_mapper_beta.tar.gz

Let me know if I should try another test.

Proto

I'm running into the same problem Proto is. Neither of those two versions is working for me.
Reply
Here is my udev rule, I want to try to improve it. 1241:e000 is mine, the others not tested.:

Code:
# hid_mapper (Generic HID Remote Driver Daemon:/usr/sbin/hid_mapper)

SUBSYSTEM=="usb", ATTRS{idVendor}=="1241", ATTRS{idProduct}=="e000", ENV{HID_MAPPER_SUPPORTED}="1", \
    RUN+="/bin/sh -c '/sbin/modprobe -b uinput; /usr/sbin/hid_mapper --lookup-id --disable-repetition \
    --manufacturer 1241 --product e000 --map /etc/hid.map 2>&1 &'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="13ec", ATTRS{idProduct}=="0006", ENV{HID_MAPPER_SUPPORTED}="1", \
    RUN+="/bin/sh -c '/sbin/modprobe -b uinput; /usr/sbin/hid_mapper --lookup-id --disable-repetition  \
    --manufacturer 13ec --product 0006 --map /etc/hid.map 2>&1 &'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0755", ATTRS{idProduct}=="2626", ENV{HID_MAPPER_SUPPORTED}="1", \
    RUN+="/bin/sh -c 'modprobe -r usbhid; modprobe -b hid-aureal; modprobe -b usbhid; /usr/sbin/hid_mapper \
    --lookup-id --disable-repetition --manufacturer 0755 --product 2626 --map /etc/hid.map 2>&1 &'"

SUBSYSTEMS=="input", ATTRS{name}=="Generic USB input mapper" SYMLINK+="input/hid_mapper"

This udev rule will create a virtual input device syslink to /dev/input/hid_mapper,then I can use lircd -H devinput -d /dev/input/hid_mapper in my VDR&XBMC. Thank for your work!
Reply
coldsource Wrote:Hi everyone,


Could you tell me which distribution you are using ? It seems that the /sys filesystem doesn't contain some required files for hid_mapper.

It looks like you were right, Coldsource. I was using Mythbuntu 10.10. I just did a fresh install of Mythbuntu 11.04 and the program now sees my remote and I can asign keypresses to most keys.Cool

Unfortunately a couple button/keypress combinations don't seem to work. For example, I have a remote button I want to assign an "M" keypress to. I start the hid_mapper in learning mode and press that key. The program returns:
Code:
0c 00 28 00 00 00 00 00
02 00 00 00 00
I copy that code into my map and assign it to KEY_M like this:
Code:
0000500000000000:KEY_LEFT
0000520000000000:KEY_UP
00004f0000000000:KEY_RIGHT
0000510000000000:KEY_DOWN
0000280000000000:KEY_SPACE
0000370000000000:KEY_ESC
00002c0000000000:KEY_P
0700310000000000:KEY_I
0c00280000000000:KEY_M        #Not working
0400280000000000:KEY_W        #Not working
00004c0000000000:KEY_D
00004b0000000000:KEY_UP
00004e0000000000:KEY_DOWN
02b5000000:KEY_PAGEDOWN
02b6000000:KEY_PAGEUP
02e9000000:KEY_F11
02ea000000:KEY_F10
02e2000000:KEY_F9
02b3000000:KEY_RIGHT
02b4000000:KEY_LEFT
When I restart the program and open a terminal window, pressing the button does not result in an M being typed in the terminal window.Sad

Any thoughts on what might be going on here?
Reply
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.
Reply
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?
Reply
This is my new udev rules.d,It works well with Yaocoo(1241:e000,the config file:/etc/hid/yaocoo) and W-King(0755:2626,the config file:/etc/hid/aureal)

Code:
root@cnvdr:/lib/udev/rules.d# cat 96-hid_mapper.rules
# hid_mapper (Generic HID Remote Driver Daemon:/usr/sbin/hid_mapper)

SUBSYSTEM=="usb", ENV{INTERFACE}=="*/2", ATTRS{idVendor}=="1241", ATTRS{idProduct}=="e000", ENV{HID_MAPPER_SUPPORTED}="1", \
        RUN+="/bin/sh -c '/sbin/modprobe -b uinput; sleep 1 && /usr/sbin/hid_mapper \
        --lookup-id --disable-repetition --manufacturer 1241 --product e000 --map /etc/hid/yaocoo.map 2>&1 &'"

SUBSYSTEM=="usb", ENV{INTERFACE}=="*/2", ATTRS{idVendor}=="13ec", ATTRS{idProduct}=="0006", ENV{HID_MAPPER_SUPPORTED}="1", \
        RUN+="/bin/sh -c '/sbin/modprobe -b uinput;  /usr/sbin/hid_mapper \
        --lookup-id --disable-repetition --manufacturer 13ec --product 0006 --map /etc/hid/yaocoo.map 2>&1 &'"

SUBSYSTEM=="usb", ENV{INTERFACE}=="*/2", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", ENV{HID_MAPPER_SUPPORTED}="1", \
        RUN+="/bin/sh -c '/sbin/modprobe -b uinput;  /usr/sbin/hid_mapper \
        --lookup-id --disable-repetition --manufacturer 16c0 --product 05df --map /etc/hid/yaocoo.map 2>&1 &'"

SUBSYSTEM=="usb", ENV{INTERFACE}=="*/2", ATTRS{idVendor}=="0755", ATTRS{idProduct}=="2626", ENV{HID_MAPPER_SUPPORTED}="1", \
        RUN+="/bin/sh -c '/sbin/modprobe -b uinput;  /usr/sbin/hid_mapper \
        --lookup-id --disable-repetition --manufacturer 0755 --product 2626 --map /etc/hid/aureal.map 2>&1 &'"

SUBSYSTEM=="usb", ACTION=="remove", ENV{HID_MAPPER_SUPPORTED}=="1", RUN+="/usr/bin/killall hid_mapper"

SUBSYSTEMS=="input", ATTRS{name}=="Generic USB input mapper" SYMLINK+="input/hid_mapper"

Code:
root@cnvdr:/etc/hid# cat yaocoo.map
0100170000000000:KEY_TV
03b70000:KEY_STOP
0100fb0000:KEY_LEFT
0100050000:KEY_RIGHT
010000fb00:KEY_UP
0100000500:KEY_DOWN
0000280000000000:KEY_OK
0101000000:KEY_BACK
0102000000:KEY_INFO
03b50000:KEY_NEXT
03b60000:KEY_REPLY
03cd0000:KEY_PAUSE
0300050000000000:KEY_REWIND
0300090000000000:KEY_FORWARD
0100150000000000:KEY_RECORD
04003d0000000000:KEY_POWER
0c00280000000000:KEY_HOME
03e90000:KEY_VOLUMEUP
03ea0000:KEY_VOLUMEDOWN
00004b0000000000:KEY_CHANNELUP
00004e0000000000:KEY_CHANNELDOWN
03e20000:KEY_MUTE
0100120000000000:KEY_VIDEO
01000a0000000000:KEY_HELP
0100040000000000:KEY_RADIO
0300100000000000:KEY_RED
0000550000000000:KEY_NUMERIC_STAR
0200200000000000:KEY_NUMERIC_POUND
0100080000000000:KEY_GREEN
0100100000000000:KEY_YELLOW
01000c0000000000:KEY_BLUE
#0300170000000000:KEY_BLUE
00001e0000000000:KEY_1
00001f0000000000:KEY_2
0000200000000000:KEY_3
0000210000000000:KEY_4
0000220000000000:KEY_5
0000230000000000:KEY_6
0000240000000000:KEY_7
0000250000000000:KEY_8
0000260000000000:KEY_9
0000270000000000:KEY_0
00002a0000000000:KEY_CLEAR
0000280000000000:KEY_ENTER
0300040000000000:KEY_LANGUAGE
0100180000000000:KEY_SUBTITLE
03001d0000000000:KEY_MODE
02e9000000:KEY_VOLUMEUP
02ea000000:KEY_VOLUMEDOWN
02e2000000:KEY_MUTE
07003b0000000000:KEY_POWER
0000370000000000:KEY_STOP

Code:
root@cnvdr:/etc/hid# cat aureal.map
0100170000000000:KEY_TV
03b70000:KEY_STOP
#0000280000000000:KEY_OK
0101000000:KEY_BACK
0102000000:KEY_INFO
03b50000:KEY_NEXT
03b60000:KEY_REPLY
03cd0000:KEY_PAUSE
0300050000000000:KEY_REWIND
0300090000000000:KEY_FORWARD
0100150000000000:KEY_RECORD
04003d0000000000:KEY_L
0c00280000000000:KEY_HOME
03e90000:KEY_VOLUMEUP
03ea0000:KEY_VOLUMEDOWN
00004b0000000000:KEY_CHANNELUP
00004e0000000000:KEY_CHANNELDOWN
03e20000:KEY_MUTE
0100120000000000:KEY_VIDEO
01000a0000000000:KEY_HELP
0100040000000000:KEY_RADIO
0300100000000000:KEY_RED
0000550000000000:KEY_NUMERIC_STAR
0200200000000000:KEY_NUMERIC_POUND
0100080000000000:KEY_GREEN
0100100000000000:KEY_YELLOW
01000c0000000000:KEY_BLUE
#0300170000000000:KEY_BLUE
00002a0000000000:KEY_CLEAR
#0000280000000000:KEY_ENTER
0300040000000000:KEY_LANGUAGE
0100180000000000:KEY_SUBTITLE
03001d0000000000:KEY_MODE
0383000000:KEY_POWER
02e9000000:KEY_VOLUMEUP
02ea000000:KEY_VOLUMEDOWN
02e2000000:KEY_MUTE
07003b0000000000:KEY_POWER
0000370000000000:KEY_STOP
Reply
Well I think I know what's causing my problem now, but I'm no closer to fixing it.

uinput just does not seem to load on my system now, sudo modprobe uinput gives no errors at all, but a lsmod | grep uinput shows no sign of uinput being loaded.

I'm a bit stumped as to how to get uinput working :/
Reply
Hello,

Could you try the following and provide us with this command output:

Code:
$ sudo insmod `modinfo uinput | grep filename | cut -d: -f2`
$ grep -i uinput /boot/config-`uname -r`

Greg.
Reply
Hi Thibault,

I just would like to thank you for your HID Mapper which saved my geeky life Smile
I found an old remote in my Aladdin's cave which is recognized as an HID device and now thanks to you I can "play" with my brand new XBMC installed on a Giada Cube N3.

I also did some researches to configure the suspend/resume feature, fully remote controlled of course Smile. It works like a charm!

Thank you again for your work.
Greg.

P.S. : Did you think about maintain this project and maybe include it officially in XMBC?
Reply
  • 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 13

Logout Mark Read Team Forum Stats Members Help
[LINUX] Generic HID Remote Driver for XBMC (Drivers for XBMC on Linux and XBMC Live)7