Kodi Community Forum

Full Version: [Live] input.conf ignored?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Linux n00b
XBMC Live 10.1 (installed to HD)
Revo R3700
PS3 Remote
Generic Cambridge Silicon bluetooth USB

I've been trying to get my PS3 remote working, but I only have some basic buttons working like play, pause, directions, return, rewind but cannot get anything else working. I've followed several guides and haven't progressed any further. My steps have been somewhere along the lines of this:
Code:
sudo apt-get update
sudo apt-get install bluez
sudo apt-get install bluez-utils python-bluez
sudo apt-get install build-essential
sudo apt-get install libbluetooth-dev
sudo apt-get install python-dbus
sudo apt-get install blueman

wget http://kitlaan.twinaxis.com/holdingcell/ps3pair.tar.gz
tar xvfz ps3pair.tar.gz
cd ~/ps3pair
sudo python ps3_pair.py
The remote pairs, I ran a test using python-bluetooth and all the button presses are registered. I've got copies of input.conf, keyboard.xml, Lircmap.xml copied in about 3 different directories, but nothing seems to be picking them up.
cat /proc/bus/input/devices | grep emot
shows
Code:
N: Name="PS3 Remote Controller"
usr/share/doc/bluez/examples/list-devices
shows
Code:
[ /org/bluez/991/hci0/dev_00_24_33_4F_D2_32 ]
        Name = BD Remote Control
        Paired = 0
        Adapter = /org/bluez/991/hci0
        Alias = BD Remote Control
        Connected = 1
        UUIDs = 0x1124 0x1200
        Address = 00:24:33:4F:D2:32
        Class = 0x00250c
        Trusted = 1

What am I missing here? Everything seems to be in order but I have no idea what the next step is.
Thanks in advance for any help, I know the above may be a little vague, I've followed about 5 guides (some listed below)...

http://forum.xbmc.org/showthread.php?tid=89869
http://forum.xbmc.org/showthread.php?p=5...post547456 (Zerogoki's post)
http://assortednewsandtips.blogspot.com/...ng-to.html
I think what you are missing is kitlaan's patch.

A couple of pages after your reference to Zerogoki's post, he posts another:
http://forum.xbmc.org/showthread.php?tid=50717&page=49

I think that post (#486) addresses the issue you are having.

Here is more info on that patch.
http://kitlaan.twinaxis.com/projects/bluez-ps3remote/

I have been having the same struggle as you... some of the buttons work, and all configuration files are ignored... you see, I don't have the patch installed either.

As I understand it, kitlaan's patch "changes" the events that are sent to XBMC from bluez to events that XBMC understands. This is done through the input.conf in the [PS3 Remote Map] section. Without the patch the [PS3 Remote Map] section of input.conf is not loaded.

I haven't had time to dive back into this... so I do not know if one of Kitlaan's pre-compiled patches works with XBMC Live 10.04. I also don't know if his source code can easily be compiled on live.

Also, I know that the wiki:
http://wiki.xbmc.org/index.php?title=HOW..._BD_Remote

states the following:
"Note: Newer versions of bluez have been released which appear to have this patch already. I didn't need to patch 4.63 to get BD working on ubuntu 10.04 "

This is NOT true. I am using bluez 4.89 and have gone through the source code. Nothing related to PS3 remote is loaded from the input.conf (ie no [PS3 Remote Map]). Sure PS3 remote support is in Bluez, but no "customized" support for XBMC, and the events that XBMC does not understand are still used.

Hope this helps, and if you get things working with Live, or get the patch installed / compiled. Please let me know. If I make more progress I will do the same.
Ah, OK, that makes sense. I'm sure I tried to use the patch but ran into difficulty. I'll give this a shot tonight - thanks for your help!
I got more of the PS3 remote buttons working last night after following the instructions of post #483 in this thread:
http://forum.xbmc.org/showthread.php?tid=50717&page=49

I didn't encounter any problems pairing after a reboot, so I didn't need to do anything after configuring my input.conf. For the input.conf configuration I started with the one from the wiki:
http://wiki.xbmc.org/index.php?title=HOW..._BD_Remote

Code:
0x16 = KEY_E              # EJECT
0x64 = KEY_A              # AUDIO
0x65 = KEY_Z              # ANGLE
0x63 = KEY_T              # SUBTITLE
0x0f = KEY_DELETE         # CLEAR
0x28 = KEY_GRAVE          # TIMER
0x00 = KEY_1              # NUM-1
0x01 = KEY_2              # NUM-2
0x02 = KEY_3              # NUM-3
0x03 = KEY_4              # NUM-4
0x04 = KEY_5              # NUM-5
0x05 = KEY_6              # NUM-6
0x06 = KEY_7              # NUM-7
0x07 = KEY_8              # NUM-8
0x08 = KEY_9              # NUM-9
0x09 = KEY_0              # NUM-0
0x81 = KEY_F7             # RED
0x82 = KEY_F8             # GREEN
0x80 = KEY_F9             # BLUE
0x83 = KEY_F10            # YELLOW
0x70 = KEY_I              # DISPLAY
0x1a = KEY_S              # TOP MENU
0x40 = KEY_M              # POP UP/MENU
0x0e = KEY_ESC            # RETURN
0x5c = KEY_C              # TRIANGLE/OPTIONS
0x5d = KEY_BACKSPACE      # CIRCLE/BACK
0x5f = KEY_TAB            # SQUARE/VIEW
0x5e = KEY_SPACE          # CROSS
0x54 = KEY_UP             # UP
0x56 = KEY_DOWN           # DOWN
0x57 = KEY_LEFT           # LEFT
0x55 = KEY_RIGHT          # RIGHT
0x0b = KEY_ENTER          # ENTER
0x5a = KEY_F1             # L1
0x58 = KEY_F2             # L2
0x51 = KEY_F3             # L3
0x5b = KEY_F4             # R1
0x59 = KEY_F5             # R2
0x52 = KEY_F6             # R3
0x43 = KEY_HOMEPAGE       # PS button
0x50 = KEY_INSERT         # SELECT
0x53 = KEY_HOME           # START
0x33 = KEY_R              # SCAN BACK
0x32 = KEY_PLAY           # PLAY
0x34 = KEY_F              # SCAN FORWARD
0x30 = KEY_PAGEUP         # PREVIOUS
0x38 = KEY_STOP           # STOP
0x31 = KEY_PAGEDOWN       # NEXT
0x60 = KEY_COMMA          # SLOW/STEP BACK
0x39 = KEY_PAUSE          # PAUSE
0x61 = KEY_DOT            # SLOW/STEP FORWARD
0xff = KEY_MAX

and then looked to the input.h in the bluez patch for other possibilities:

http://kitlaan.twinaxis.com/projects/blu..._4.69.diff

I changed, for example:

0x5a = KEY_F1 # L1
0x58 = KEY_F2 # L2

to

0x5a = KEY_VOLUMEUP # L1
0x58 = KEY_VOLUMEDOWN # L2

I tried to customize the actions within remote.xml but was unsuccessful... I need to learn more about bluetooth, lirc, event handlers, and xml configuration in xbmc.
Patched, and when I run ./configure, I get the following 2 errors.
Code:
./configure: line 2961: --variable=udevdir: command not found
checking for DBUS... configure: error: D-Bus library is required
So I did this
Code:
sudo apt-get install libdbus-1-3
And try ./configure again and got...
Code:
configure: error: GLib library version 2.14 or later is required
Then I did this
Code:
sudo apt-get install libglib2.0-dev
and it now configures no problem.
make also worked.
Although the last step in the guide
Code:
sudo checkinstall --fstrans=no --install=yes --pkgname=bluez --pkgversion "4.76-patched"
fails with "sudo: checkinstall: command not found"
Code:
sudo apt-get install checkinstall
sudo checkinstall --fstrans=no --install=yes --pkgname=bluez --pkgversion "4.76-patched"
Done. The new package has been installed and saved to
/usr/local/src/bluez-4.76/bluez_4.76-patched-1_i386.deb
Had 1 error -
Code:
grep: /var/tmp/tmp.g3b8NSyivE/newfile: No such file or directory
Don't know what to do about that...
Alas, no change either. Still only have minor functionality... Sad
As stated above, I followed the instructions on of [post=551376]post 483[/post] in this thread:

http://forum.xbmc.org/showthread.php?tid=50717&page=49

NOTE: live 10.04 is running on Lucid so where you see jaunty in those instructions, use lucid instead.

Those instructions in [post=551376]post 483[/post] uses a PPA (which is a pre-compiled executable) as the patch, so you don't have to compile your own version as you are attempting.
Well, I followed all the instructions from #483, but still no luck.
I'm really thinking of re-installing the whole thing, I feel I've made so many changes I've managed to mess it up badly.
I'll start fresh tomorrow night and follow #483 to the letter and see what happens.
Thanks for your help
Ah... sweet victory. I reinstalled from scratch, followed a combination of Post 483 and Post 486.
Worked first time and editing the input.conf is working like a breeze.
Thanks for your help Musrick.
Sweet! Good to hear you got it working... gotta love the range of a blu-ray remote & with the amount of buttons available, it can be configured to be really functional.