Hello all, can anyone share some light on the current situation regarding Sixaxis support on Linux? What is the recommended way of doing things? I had high expectations when I found sixaxis.c in the bluez git tree - but even after getting it to compile against the bluez version (4.91) that comes with my xubuntu version, it still does not seem to work: Setting the bluetooth master works nicely, and running "--store-info" does seem to at least change the files trust, sdp, profiles and did inside my /var/lib/bluetooth. But when I then press the PS button on the controller, I see an active connection in Blueman, the controller appears in the list of devices (this time with the trusted flag, but not as paired), but disappears again after some seconds and comes back with the trusted flag missing. If, in the mean time, I select to connect to the "Input service" via the context menu, I receive a "Connection refused (111)" error message. Similarly, if I choose to pair the device via the context menu I am prompted with a dialog to enter a PIN (but no joy when entering 1234 or similar). Any suggestions? (or command line fun I am missing?) I am attaching my hack'ish patch against the git input/sixaxis.c - only compile-tested this against version 4.91, but some parts are probably valid for upstream as well. regards, gohai PS: Please CC me as I am not subscribed to the list.
--- sixpair.c.orig 2011-07-09 17:40:38.398451767 +0200 +++ sixpair.c 2011-07-09 17:49:11.358438483 +0200 @@ -1,5 +1,5 @@ /* To compile - * gcc -g -Wall -I../src -I../lib/ -I../include -DSTORAGEDIR=\"/var/lib/bluetooth\" -o sixpair sixpair.c ../src/storage.c ../common/libhelper.a -I../common `pkg-config --libs --cflags glib-2.0 libusb-1.0` -lbluetooth + * gcc -g -Wall -I../src -I../lib -I../btio -DSTORAGEDIR=\"/var/lib/bluetooth\" -o sixpair sixpair.c ../src/storage.c ../src/textfile.c ../src/glib-helper.c -I../common `pkg-config --libs --cflags glib-2.0 libusb-1.0 dbus-1` -lbluetooth */ #include <unistd.h> @@ -12,6 +12,8 @@ #include <glib.h> #include <libusb.h> +#include <dbus/dbus.h> +#include <device.h> #include "storage.h" /* Vendor and product ID for the Sixaxis PS3 controller */