2011-05-02, 01:40
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?
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
./hid_mapper --list-devices --lookup-id
./hid_mapper --lookup-id --learn --manufacturer '0755' --product '2626'
Found HID device
Opened HID interface on /dev/hidraw1
Opened HID interface on /dev/hidraw2
# uname -a
Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux
# ./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
# ./hid_mapper --lookup-id --learn --manufacturer '0755' --product '2626'
Unable to find specified HID device
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
# 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"
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.
0c 00 28 00 00 00 00 00
02 00 00 00 00
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
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 workingI 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.![]()
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.
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"
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
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
$ sudo insmod `modinfo uinput | grep filename | cut -d: -f2`
$ grep -i uinput /boot/config-`uname -r`