(2014-06-06, 21:48)OS/2 Wrote: You still need the patch for Bluez-4.101.
Thanks. Remote works as expected after patching 4.101.
I've made a small script for Ubuntu to automate patching of bluez. The script downloads bluez source via apt-get, downloads patch for bluez 4.101 (thanks for the patch, RMerlin), applies the patch, rebuilds the package, increments the package version by adding .1 to the current version, updates package changelog and upgrades distribution bluez packages (if installed) with the patched version. If bluez was not installed you'll have to install the *.deb's in bluez/ directory yourself.
Code:
#!/bin/bash
PKGSRC=bluez
PATCHURL=http://h.lr.lt/misc/bluez-4-101_ps3remote.diff
PATCHFILE=${PATCHURL##*/}
CHANGELOG="Add $PATCHFILE patch."
sudo apt-get install build-essential devscripts quilt
mkdir -p $PKGSRC
cd $PKGSRC
sudo apt-get build-dep $PKGSRC
apt-get source $PKGSRC
wget -c "$PATCHURL" || exit 1
cd ${PKGSRC}-*
quilt import ../${PATCHFILE}
quilt push || exit 1
dch -n "$CHANGELOG"
dpkg-buildpackage -b
cd ..
for PKG in *.deb; do
dpkg-query -s ${PKG%%_*} > /dev/null 2>&1 && sudo dpkg -i $PKG
done
I think this script can be used to automate bluez patching for any Ubuntu/bluez version - just change the PATCHURL variable if you want to use a different patch.
Stock Ubuntu 14.04 LTS bluez packages:
Code:
ii bluez 4.101-0ubuntu13 amd64 Bluetooth tools and daemons
ii bluez-alsa:amd64 4.101-0ubuntu13 amd64 Bluetooth ALSA support
ii bluez-cups 4.101-0ubuntu13 amd64 Bluetooth printer driver for CUPS
ii bluez-gstreamer 4.101-0ubuntu13 amd64 Bluetooth GStreamer support
ii libbluetooth3:amd64 4.101-0ubuntu13 amd64 Library to use the BlueZ Linux Bluetooth stack
Patched packages (after the script was run):
Code:
ii bluez 4.101-0ubuntu13.1 amd64 Bluetooth tools and daemons
ii bluez-alsa:amd64 4.101-0ubuntu13.1 amd64 Bluetooth ALSA support
ii bluez-cups 4.101-0ubuntu13.1 amd64 Bluetooth printer driver for CUPS
ii bluez-gstreamer 4.101-0ubuntu13.1 amd64 Bluetooth GStreamer support
ii libbluetooth3:amd64 4.101-0ubuntu13.1 amd64 Library to use the BlueZ Linux Bluetooth stack
You'll have to rerun the script if Ubuntu updates the bluez packages.