How to get a seamless remote experience
(2013-06-07, 15:24)puzzler Wrote: Claudio.Sjo, thanks for the reply. I'm not an expert at linux, so could you please describe step-by-step how to do it?

Hi,
I'm going to try helping you.
First of all, the thread where I got the driver that I hacked:
http://forum.xbmc.org/showthread.php?tid=88560
then the page in french that explains how to install such a driver
http://doc.ubuntu-fr.org/tutoriel/hid

Let's talk about compiling and installing.
You need the proper toolkit in your Ubuntu Linux, that is make, gcc and g++
You can install the missing tools by using the command
$ sudo apt-get install

Unpack the source code in a directory and give the commands
$ make clean
$ make
if successfull, this will produce the driver, otherwise you need some other tools to be installed
Let say that it was OK, now you have compiled the driver.
You can test it by giving
$ ./hid_mapper
and the driver will complain that it must be run as root

It's time now to test it seriously, give
$ sudo ./hid_mapper --list-devices
and this time the driver will provide you a list of HID devices, where you will find the one provided by HDPLEX, the name is HOLTEK, the manufacturer is 1241 and the product is e000
You can test your remote by giving
$ sudo ./hid_mapper --learn --manufacturer 1241 --product e000
and then pressing the keys on your remote you will be able to get the values on the screen.

Please verify that the values that you get are exactly the same as I wrote in the lenovo-rc6.map file, otherwise edit that file and fix it.
The editor is "nano"


So far so good, now it's time to install it.
You need to create a directory for the data file
$ sudo mkdir /usr/local/etc/hid_mapper
copy the datafile
$ sudo cp lenovo-rc6.map /usr/local/etc/hid_mapper/remote.map
install the driver
$ sudo cp hid_mapper /usr/local/bin

---- The driver launcher ---
If you use Lubuntu, install the driver launcher
$ sudo cp 10-HID-REMOTE.rules /etc/udev/rules.d

If you are not using Lubuntu:
Lubuntu comes with uinput module already compiled in the kernel, this is not valid with all distros.
If you have uinput compiled as a module, you need to use the file 10-HID-REMOTE.rules described in section 2.3 of the document
http://doc.ubuntu-fr.org/tutoriel/hid
It forces loading uinput module before the driver.

--- Get rid of X11 side effects

create a rule for avoiding X11 to use the remote
the editor is "nano", use it in this way
$ sudo nano /usr/share/X11/xorg.conf.d/50-HID-blacklist.conf
and write the following inside that file

Code:
Section "InputClass"
Identifier "HID blacklist"
MatchProduct "HOLTEK"
Option "Ignore" "on"
EndSection

press Ctrl-O to write the file and Ctrl-X to exit

Reboot the HTPC and it shall work.
Reply


Messages In This Thread
[No subject] - by darkscout - 2011-06-29, 20:11
[No subject] - by LB06 - 2011-06-29, 20:27
[No subject] - by gazrat - 2011-06-30, 00:09
[No subject] - by Anastrophe - 2011-06-30, 16:48
[No subject] - by gazrat - 2011-06-30, 21:48
[No subject] - by LB06 - 2011-06-30, 22:34
[No subject] - by gazrat - 2011-07-04, 18:28
[No subject] - by LB06 - 2011-07-04, 18:59
[No subject] - by gazrat - 2011-07-04, 23:52
[No subject] - by LB06 - 2011-07-04, 23:58
[No subject] - by gazrat - 2011-07-05, 00:28
[No subject] - by LB06 - 2011-07-05, 01:17
[No subject] - by wsnipex - 2011-07-05, 09:37
[No subject] - by darkscout - 2011-07-05, 10:23
[No subject] - by LB06 - 2011-07-05, 10:37
[No subject] - by gazrat - 2011-07-05, 20:45
[No subject] - by LB06 - 2011-07-05, 22:11
[No subject] - by gazrat - 2011-07-05, 22:31
[No subject] - by LB06 - 2011-07-05, 23:10
[No subject] - by gazrat - 2011-07-05, 23:16
[No subject] - by SirHc - 2011-07-07, 22:07
Nesting actions? - by konti - 2011-07-08, 12:19
[No subject] - by SirHc - 2011-07-08, 12:45
[No subject] - by LB06 - 2011-07-08, 13:30
[No subject] - by LB06 - 2011-07-08, 13:33
[No subject] - by mason - 2011-07-08, 13:51
[No subject] - by SirHc - 2011-07-08, 20:22
[No subject] - by teeedubb - 2011-07-10, 11:47
[No subject] - by LB06 - 2011-07-10, 13:02
[No subject] - by LB06 - 2011-07-10, 13:55
[No subject] - by teeedubb - 2011-07-10, 14:10
[No subject] - by LB06 - 2011-07-10, 14:56
[No subject] - by gazrat - 2011-07-12, 19:40
[No subject] - by LB06 - 2011-07-12, 22:20
[No subject] - by blubyu - 2011-07-13, 03:03
[No subject] - by teeedubb - 2011-07-14, 05:21
[No subject] - by toliman - 2011-07-27, 14:58
[No subject] - by LB06 - 2011-07-27, 16:16
[No subject] - by Jayphen - 2011-08-24, 06:27
[No subject] - by recluce - 2011-08-24, 19:16
[No subject] - by LB06 - 2011-08-24, 19:19
[No subject] - by Jayphen - 2011-08-25, 00:42
[No subject] - by LB06 - 2011-08-25, 00:57
[No subject] - by Jayphen - 2011-08-25, 01:18
[No subject] - by recluce - 2011-08-25, 01:21
[No subject] - by LB06 - 2011-08-25, 01:27
[No subject] - by LB06 - 2011-08-25, 01:29
[No subject] - by Jayphen - 2011-08-25, 01:30
[No subject] - by LB06 - 2011-08-25, 01:31
[No subject] - by Jayphen - 2011-08-25, 01:33
[No subject] - by LB06 - 2011-08-25, 01:52
[No subject] - by recluce - 2011-08-25, 01:57
[No subject] - by Jayphen - 2011-08-25, 02:10
[No subject] - by LB06 - 2011-08-25, 10:25
[No subject] - by koekiemonster - 2011-09-15, 23:29
RE: - by GreatEmerald - 2013-03-11, 20:57
[No subject] - by stefanwa - 2011-09-20, 16:50
RE: How to get a seamless remote experience - by Claudio.Sjo - 2013-06-10, 09:28
Logout Mark Read Team Forum Stats Members Help
How to get a seamless remote experience9