2009-05-10, 11:40
Hi,
This is my first post, but I read often the forum.
I have found a way to make the PS3 BD Remote to work with LIRC and any application that uses it, including of course XBMC :-)
I'll try to explain how I did it.
I use Ubuntu Jaunty, maybe it works with other Linux distros.
NOTE: The language I use on the desktop is Spanish, so maybe the translations to English I make are not so accurate, and sorry for my poor English
1.- Install blueman
For that, you must include the PPA for blueman
Include the following lines to /etc/apt/sources.list
deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
After that execute:
2.- Pair the PS3 BD Remote
Normally after installing blueman, will appear the bluetooth icon on the top bar of the gnome desktop, if not, you must execute the applet:
Once we have the blueman applet running, we click with the secondary mouse button on the bluetooth icon and select "Configure new device".
While the remote is in discovery mode (pressing enter + start for 5 secconds) we will see our remote on the device list, click on it and click "next", the wizard will offer 3 options "random key", "my own key", and "not pairing", we select "not pairing" and click next. On the next screen will see 2 options "input service" and "don't connect", we select "input service and click next.
Now we have the remote paired permanently with the PC, to check it, open "devices" right clicking on the bluetooth icon, and will see the "BD Remote Control" paired, on the right it will show the signal strength. On the devices list there is a button to trust on a device, we must trust on "BD Remote Control", it will show a little yellow star on the icon.
This has created a input device, to see it execute:
this will show the actual input devices on your system and will have something like this
We are looking for the info on the line
In my case the the remote is "event6"
3.- Configure LIRC
To configure LIRC we must edit /etc/lirc/hardware.conf and include the following lines:
The last line include the name of the input device that was created on the previous step, in my case "/dev/input/event6"
Then restart LIRC
4.- Learn the remote codes of the PS3 BD Remote
You may record your own codes with the command:
Where "/dev/input/event6" is your input device. And follow the instructions.
NOTE: The PS3 remote send one event when you press a key, and another event when you release it, so when irrecord needs a key pressed we must press many times different keys.
Or use the one I created
5.- Test it
The last step is test it, so we execute irw and pressing keys on the remote will see something like this:
000000008001001c 00 enter ps3
0000000080010067 00 up ps3
6.- Configure XBMC (Lircmap.xml and Keymap.xml)
Actually I am on this step
I hope you find this guide useful.
J.
This is my first post, but I read often the forum.
I have found a way to make the PS3 BD Remote to work with LIRC and any application that uses it, including of course XBMC :-)
I'll try to explain how I did it.
I use Ubuntu Jaunty, maybe it works with other Linux distros.
NOTE: The language I use on the desktop is Spanish, so maybe the translations to English I make are not so accurate, and sorry for my poor English
1.- Install blueman
For that, you must include the PPA for blueman
Include the following lines to /etc/apt/sources.list
deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
After that execute:
Code:
sudo apt-get update
sudo apt-get install blueman
2.- Pair the PS3 BD Remote
Normally after installing blueman, will appear the bluetooth icon on the top bar of the gnome desktop, if not, you must execute the applet:
Code:
blueman-applet
Once we have the blueman applet running, we click with the secondary mouse button on the bluetooth icon and select "Configure new device".
While the remote is in discovery mode (pressing enter + start for 5 secconds) we will see our remote on the device list, click on it and click "next", the wizard will offer 3 options "random key", "my own key", and "not pairing", we select "not pairing" and click next. On the next screen will see 2 options "input service" and "don't connect", we select "input service and click next.
Now we have the remote paired permanently with the PC, to check it, open "devices" right clicking on the bluetooth icon, and will see the "BD Remote Control" paired, on the right it will show the signal strength. On the devices list there is a button to trust on a device, we must trust on "BD Remote Control", it will show a little yellow star on the icon.
This has created a input device, to see it execute:
Code:
cat /proc/bus/input/devices
this will show the actual input devices on your system and will have something like this
Code:
I: Bus=0005 Vendor=054c Product=0306 Version=0000
N: Name="PS3 Remote Controller"
P: Phys=
S: Sysfs=/devices/virtual/input/input8
U: Uniq=
H: Handlers=kbd event6
B: EV=3
B: KEY=80000000 0 700000 1083c100 8c00ea 0 6bc00000 1 0 8000 1102 c0000801 801680 0 0 10000ffe
We are looking for the info on the line
Code:
H: Handlers=kbd event6
3.- Configure LIRC
To configure LIRC we must edit /etc/lirc/hardware.conf and include the following lines:
Code:
REMOTE="ps3"
REMOTE_DRIVER="devinput"
REMOTE_DEVICE="/dev/input/event6"
The last line include the name of the input device that was created on the previous step, in my case "/dev/input/event6"
Then restart LIRC
Code:
sudo /etc/init.d/lirc restart
4.- Learn the remote codes of the PS3 BD Remote
You may record your own codes with the command:
Code:
sudo irrecord --device=/dev/input/event6 --driver=devinput PS3.rem
NOTE: The PS3 remote send one event when you press a key, and another event when you release it, so when irrecord needs a key pressed we must press many times different keys.
Or use the one I created
Code:
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.8.4a(devinput) on Sun May 3 19:43:29 2009
#
# contributed by
#
# brand: PS3
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name ps3
bits 32
eps 30
aeps 100
one 0 0
zero 0 0
gap 102974
toggle_bit_mask 0x8001019C
begin codes
1 0x80010002
2 0x80010003
3 0x80010004
4 0x80010005
5 0x80010006
6 0x80010007
7 0x00010008
8 0x80010009
9 0x8001000A
0 0x8001000B
eject 0x800100A1
audio 0x80010188
angle 0x80010173
subtitle 0x80010172
clear 0x80010163
time 0x80010167
red 0x0001018E
green 0x8001018F
yellow 0x80010190
blue 0x80010191
display 0x80010166
top_menu 0x8001008B
popup 0x800101B6
return 0x80010001
options 0x80010165
back 0x8001009E
view 0x80010177
x 0x80010100
enter 0x8001001C
up 0x80010067
down 0x8001006C
left 0x00010069
right 0x8001006A
l1 0x80010136
l2 0x80010138
l3 0x8001013D
r1 0x80010137
r2 0x80010139
r3 0x8001013E
select 0x80010161
start 0x8001013B
ps 0x800100AC
rew 0x800100A8
play 0x800100CF
ffw 0x8001009F
prev 0x0001019C
stop 0x80010080
next 0x80010197
slow_rew 0x800101B4
pause 0x80010077
slow_ffw 0x800101B5
end codes
end remote
5.- Test it
The last step is test it, so we execute irw and pressing keys on the remote will see something like this:
000000008001001c 00 enter ps3
0000000080010067 00 up ps3
6.- Configure XBMC (Lircmap.xml and Keymap.xml)
Actually I am on this step
I hope you find this guide useful.
J.