Hi coldsource, thank you for last reply (few pages before :).
First of all I should mention that building hid_mapper on Debian Squeeze failed with the following message.
Code:
~$ cd hid_mapper_beta/
~$ make
~$ g++ -c -Iinclude main.cpp
~$ gcc -c -Iinclude uinput_device.c
~$ gcc -c -Iinclude hid.c
~$ gcc -c -Iinclude signals.c
~$ g++ -c -Iinclude keys_definition.cpp
~$ keys_definition.cpp:458: error: ‘KEY_CAMERA_FOCUS’ was not declared in this scope
~$ keys_definition.cpp:705: error: ‘KEY_RFKILL’ was not declared in this scope
~$ keys_definition.cpp:777: error: ‘KEY_WPS_BUTTON’ was not declared in this scope
~$ make: *** [keys_definition.o] Error 1
I've checked that my /usr/include/linux/input.h doesn't contain these definitions. Commenting out the corresponding three rows (in the integer array) in keys_definition.cpp solved the problem.
Code:
~$ uname -a
~$ Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux
After building hid_mapper I wrote down some key codes for my remote control and made a mapping file, but the following command failed.
Code:
~$ sudo ./hid_mapper --lookup-id --manufacturer <hex> --product <hex> --map <file>
~$ Loaded map file ~/<file>
~$ Found HID device
~$ Opened HID interface on /dev/hidraw1
~$ Unable to setup event device
I've read through the thread and Diego2002 had the same problem. It seems he managed to solve it with. I've tried the same thing.
Code:
~$ ls -l /dev/uinput
~$ # Returned some error that it does not exist or something.
~$ sudo modprobe uinput
~$ # Utter silence.
~$ ls -l /dev/uinput
~$ crw------- 1 root root 10, 223 Feb 18 20:46 /dev/uinput
~$ # After running hid_mapper as shown in the previous code fragment I get that same output.
Any idea? :) Thanks!