[LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.04
#1
Thumbs Up 
i finally got the hama mce remote control to work properly under ubuntu 9.04 with xbmc after about a week doing a lot of research and testing.

i use this remote control and got almost every key to work in xbmc.

in this tutorial, [xbmc-user] is a placeholder for your xbmc user.

please note that some keys have the same mapping (for example: "OK", "Start" and "Enter" or "i" and the right mouse button). some keys send three commands to the ir receiver, but in the lircd.conf, i only entered one, otherwise it didn't work, because xbmc only catches the first key sent.

log in as your standard xbmc user and install the latest lirc:
Code:
sudo apt-get install lirc

In the lirc configuration tool, that opens up after installation, select "None" in every screen.

after the installation has been completed, edit the following files:

/etc/lirc/lircd.conf
Code:
begin remote
        name hama_52451
        bits 32
        begin codes
                HOMEPAGE                        0x100ac
                POWER                           0x1008e
                YELLOW                          0x10014
                BLUE                            0x10032
                GREEN                           0x10017
                RED                             0x10012
                TV                              0x10018
                PICTURES                        0x10022
                REWIND                          0x10030
                FASTFORWARD                     0x10021
                PREV                            0x100a5
                NEXT                            0x100a3
                PLAYPAUSE                       0x100a4
                STOP                            0x100a6
                REC                             0x10013
                BACK                            0x1000e
                INFO                            0x10111
                UP                              0x10067
                LEFT                            0x10069
                RIGHT                           0x1006a
                DOWN                            0x1006c
                ENTER                           0x1001c
                BTN_LEFT                        0x10110
                VOLUMEUP                        0x10073
                VOLUMEDOWN                      0x10072
                MUTE                            0x10071
                CHANNELUP                       0x10068
                CHANNELDOWN                     0x1006d
                1                               0x1004f
                2                               0x10050
                3                               0x10051
                4                               0x1004b
                5                               0x1004c
                6                               0x1004d
                7                               0x10047
                8                               0x10048
                9                               0x10049
                0                               0x10052
                STERN                           0x10037
                CLOSE                           0x1003e
                CLEAR                           0x10001
        end codes
end remote


/etc/lirc/hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES="lirc_atiusb lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS="-r"

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF="lircd.conf"

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="true"
START_LIRCMD=""


add the following code to

/etc/modprobe.d/blacklist.conf
Code:
blacklist ati_remote

add the following code (IMPORTANT: the entry has to be written before "exit 0") to
/etc/rc.local
Code:
./home/[xbmc-user]/lircstart.sh

read out the event numbers for your hid:
Code:
cat /proc/bus/input/devices

you get something like this (i only copied the important entries containing Name="HID...):
Code:
I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-0000:00:04.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb2/2-3/2-3:1.0/input/input3
U: Uniq=
H: Handlers=kbd [b]event3[/b]
B: EV=120013
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-0000:00:04.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb2/2-3/2-3:1.1/input/input4
U: Uniq=
H: Handlers=kbd mouse1 [b]event4[/b]
B: EV=17
B: KEY=1f0000 0 2020000 3878 d801d001 1e0000 0 0 0
B: REL=103
B: MSC=10

event3 and event4 are the two important entries from the cat we made before that we need in the next step. they could be different on your system.

create a file
/home/[xbmc-user]/lircstart.sh

please note that the code change from dec 17, 2009. the old code contained a copy/paste error...
Code:
#!/bin/sh

/etc/init.d/lirc stop
lircd --driver=devinput --device=/dev/input/event3 --pidfile=/var/run/lirc1.pid --listen=9988;
lircd --driver=devinput --device=/dev/input/event4 --pidfile=/var/run/lirc2.pid --connect=localhost:9988;



be careful to change event3 and event4 to the event numbers you got for your system.

chmod the lircstart.sh to 0755
Code:
chmod 0755 lircstart.sh

to be continued in the next post...
Reply


Messages In This Thread
[LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.04 - by lx_cool_j - 2009-12-02, 23:10
[No subject] - by anton610 - 2009-12-03, 20:14
Ubuntu 9.10 - by anton610 - 2009-12-07, 16:21
[No subject] - by lx_cool_j - 2009-12-07, 18:02
[No subject] - by anton610 - 2009-12-08, 18:33
[No subject] - by TheHeadGear - 2009-12-16, 21:19
[No subject] - by lx_cool_j - 2009-12-17, 18:34
[No subject] - by DocEvil - 2009-12-22, 00:19
[No subject] - by DocEvil - 2009-12-22, 18:30
[No subject] - by anton610 - 2009-12-23, 10:10
[No subject] - by lx_cool_j - 2009-12-23, 16:31
[No subject] - by DocEvil - 2009-12-23, 17:58
[No subject] - by lx_cool_j - 2009-12-24, 13:03
[No subject] - by vibowit - 2009-12-28, 03:36
[No subject] - by Surjio - 2010-01-04, 15:28
[No subject] - by leftbit - 2010-01-05, 22:05
[No subject] - by Evin - 2010-01-06, 17:52
[No subject] - by lx_cool_j - 2010-01-07, 12:13
[No subject] - by lx_cool_j - 2010-01-07, 12:14
[No subject] - by Evin - 2010-01-07, 12:45
[No subject] - by vibowit - 2010-01-08, 12:42
[No subject] - by DocEvil - 2010-01-08, 16:10
[No subject] - by vibowit - 2010-01-09, 16:58
[No subject] - by Redsandro - 2010-01-12, 14:59
[No subject] - by ubuntuf4n - 2010-02-06, 07:17
[No subject] - by vibowit - 2010-02-07, 11:59
[No subject] - by ubuntuf4n - 2010-02-09, 05:01
Thanks for this tip! - by krijeck - 2010-02-09, 21:20
[No subject] - by sircube - 2010-03-18, 09:38
[No subject] - by psypher246 - 2010-04-01, 07:56
[No subject] - by lx_cool_j - 2010-04-01, 08:52
[No subject] - by psypher246 - 2010-04-01, 09:15
[No subject] - by lx_cool_j - 2010-04-01, 09:25
Confirmed Function - by Lee Daugherty - 2010-04-03, 18:41
[No subject] - by xoanon - 2010-05-16, 11:39
[No subject] - by Juanjo - 2010-09-03, 16:52
[No subject] - by ernie - 2010-09-10, 17:49
[No subject] - by slux - 2010-09-10, 23:06
[No subject] - by slux - 2010-09-11, 00:48
[No subject] - by ernie - 2010-09-11, 09:54
[No subject] - by Horscht - 2010-09-11, 10:11
[No subject] - by slux - 2010-09-11, 11:28
[No subject] - by Horscht - 2010-09-11, 11:31
[No subject] - by slux - 2010-09-11, 11:37
[No subject] - by Horscht - 2010-09-11, 11:40
[No subject] - by slux - 2010-09-11, 11:41
[No subject] - by Horscht - 2010-09-11, 11:52
[No subject] - by slux - 2010-09-11, 12:01
[No subject] - by Horscht - 2010-09-11, 12:31
[No subject] - by slux - 2010-09-11, 12:51
[No subject] - by fyfe - 2010-09-14, 17:47
[No subject] - by slux - 2010-09-14, 19:28
[No subject] - by Horscht - 2010-09-14, 19:54
[No subject] - by h.udo - 2010-09-14, 23:33
[No subject] - by Juanjo - 2010-09-15, 02:43
[No subject] - by Horscht - 2010-09-15, 05:25
[No subject] - by Juanjo - 2010-09-15, 13:40
[No subject] - by Juanjo - 2010-09-15, 13:57
[No subject] - by fyfe - 2010-09-15, 21:48
[No subject] - by h.udo - 2010-09-15, 22:30
[No subject] - by Juanjo - 2010-09-16, 05:36
[No subject] - by fyfe - 2010-09-16, 10:56
[No subject] - by fyfe - 2010-09-16, 13:32
[No subject] - by Juanjo - 2010-09-16, 14:23
[No subject] - by fyfe - 2010-09-16, 14:25
[No subject] - by Juanjo - 2010-09-16, 14:52
[No subject] - by Juanjo - 2010-09-16, 17:51
[No subject] - by Horscht - 2010-10-10, 15:29
[No subject] - by Silence66 - 2010-11-01, 13:35
[No subject] - by fyfe - 2010-11-01, 23:34
[No subject] - by Silence66 - 2010-11-02, 19:11
[No subject] - by bump909 - 2010-11-23, 16:25
[No subject] - by h.udo - 2010-11-23, 16:57
[No subject] - by bump909 - 2010-11-23, 17:33
[No subject] - by bump909 - 2010-11-23, 17:38
[No subject] - by h.udo - 2010-11-23, 19:10
[No subject] - by bump909 - 2010-11-23, 20:17
[No subject] - by h.udo - 2010-11-24, 02:56
[No subject] - by nssk - 2010-12-01, 17:15
[No subject] - by theraw - 2010-12-24, 22:11
[No subject] - by gripnrip - 2011-01-19, 12:46
[No subject] - by andlinux - 2011-02-22, 19:44
[No subject] - by andlinux - 2011-02-23, 19:17
[No subject] - by digitaldr - 2011-02-26, 02:24
[No subject] - by ukasz - 2011-02-27, 11:59
[No subject] - by fatez - 2011-03-13, 11:37
[No subject] - by h.udo - 2011-03-13, 15:08
[No subject] - by fatez - 2011-03-13, 17:24
[No subject] - by h.udo - 2011-03-14, 18:55
[No subject] - by fatez - 2011-03-14, 21:17
[No subject] - by h.udo - 2011-03-15, 00:50
[No subject] - by h.udo - 2011-03-16, 02:33
[No subject] - by h.udo - 2011-03-17, 16:09
[No subject] - by fatez - 2011-03-19, 00:28
[No subject] - by h.udo - 2011-03-19, 01:02
[No subject] - by h.udo - 2011-03-20, 22:02
[No subject] - by fatez - 2011-03-20, 23:59
[No subject] - by h.udo - 2011-03-21, 02:40
[No subject] - by fatez - 2011-03-22, 14:52
[No subject] - by h.udo - 2011-03-25, 16:52
[No subject] - by fatez - 2011-03-25, 20:37
[No subject] - by h.udo - 2011-03-27, 21:45
[No subject] - by arshlan - 2011-05-20, 13:14
[No subject] - by xbmc-user - 2011-11-04, 17:57
Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.042