[LINUX] [PS3 generic remote controller] Navigation keys won't work
#1
Hi all,

I've just buy this cheap PS3 generic remote control in amazon
Image

I was pretty happy with my purchase but the problem is that navigation keys are not working. This is what I did:

1.- /proc gave me this information

$cat /proc/bus/input/devices
I: Bus=0003 Vendor=1d57 Product=3412 Version=0110
N: Name="PS3 Controller"
P: Phys=usb-0000:00:1d.0-1.3/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input13
U: Uniq=
H: Handlers=event11 js0
B: PROP=0
B: EV=1b
B: KEY=1fff0000 0 0 0 0 0 0 0 0 0
B: ABS=30027
B: MSC=10

2.- I mapped de device to /dev/input/irremote0 adding an udev rule

$sudo cat /etc/udev/rules.d/10-irremote.rules
SUBSYSTEM=="input",ATTRS{idVendor}=="1d57",ATTRS{idProduct}=="3412",SYMLINK="input/irremote0"


3.- I ran de inputlirc daemon

$sudo /etc/init.d/inputlirc start

with the following config

$cat /etc/default/inputlirc
# Options to be passed to inputlirc.
EVENTS="/dev/input/irremote0"
OPTIONS="-g -d /var/run/lirc/lircd -m 0"


4.- I tested de remote using irw wich worked just fine for most keys

$irw
137 0 BTN_TR /dev/input/irremote0
130 0 BTN_GAMEPAD /dev/input/irremote0
132 0 BTN_C /dev/input/irremote0
131 0 BTN_B /dev/input/irremote0

BUT the four navigation keys (arrow left, right, top and down) are not showing anything


5.- So, I tried to get some debug information with keymap and hexdump

For a working key I get the following results

/lib/udev/keymap -i /dev/input/irremote0
scan code: 0x90004 key code: 133

sudo hexdump -x /dev/input/irremote0
0000160 336d 4f5b e15e 0009 0004 0004 0004 0009
0000170 336d 4f5b e164 0009 0001 0133 0001 0000
0000180 336d 4f5b e19c 0009 0000 0000 0000 0000
0000190 336d 4f5b db97 000a 0004 0004 0004 0009
00001a0 336d 4f5b db9c 000a 0001 0133 0000 0000
00001b0 336d 4f5b dbd3 000a 0000 0000 0000 0000

For a non working key I got the following information:

/lib/udev/keymap -i /dev/input/irremote0
(no scan code received) key code: reserved


The hexdump of the four non-working keys is:

sudo hexdump -x /dev/input/irremote0
0000000 3482 4f5b 0bee 0005 0003 0011 ffff ffff
0000010 3482 4f5b 0c19 0005 0000 0000 0000 0000
0000020 3482 4f5b 05e0 0006 0003 0011 0000 0000
0000030 3482 4f5b 0607 0006 0000 0000 0000 0000

0000000 4b1a 4f5b 851a 0002 0003 0010 ffff ffff
0000010 4b1a 4f5b 854b 0002 0000 0000 0000 0000
0000020 4b1a 4f5b 1596 0005 0003 0010 0000 0000
0000030 4b1a 4f5b 15c1 0005 0000 0000 0000 0000

0000000 4b56 4f5b 5ba8 0009 0003 0010 0001 0000
0000010 4b56 4f5b 5bd2 0009 0000 0000 0000 0000
0000020 4b56 4f5b 5587 000a 0003 0010 0000 0000
0000030 4b56 4f5b 55bf 000a 0000 0000 0000 0000

0000000 4b60 4f5b 49a1 000c 0003 0011 0001 0000
0000010 4b60 4f5b 49cc 000c 0000 0000 0000 0000
0000020 4b60 4f5b f932 000e 0003 0011 0000 0000
0000030 4b60 4f5b f95d 000e 0000 0000 0000 0000


I suppose the problem is related to the scancode width but I'm stalled here. Maybe I have to write my own /etc/lirc/lircd.conf but I have no idea on how to do add those weird keys. I'll apreciate if someone could give me some hints to solve this problem so I could get my remote controller working with my xbmc.

Thank you in advance

------

ubuntu 11.10
xbmc 11.0~
lircd 0.9.0
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] [PS3 generic remote controller] Navigation keys won't work0