by mungewell » Sat Jan 07, 2012 6:38 pm
For reference, here's how the SixAxis is seen by the system
--
simon@womble:~$ uname -a
Linux womble 3.0.0-dfp+ #6 SMP Fri Jul 29 17:37:56 PDT 2011 i686 i686 i386 GNU/Linux
--
Jan 7 11:23:43 womble kernel: [ 4342.252973] usbhid: USB HID core driver
Jan 7 11:23:43 womble kernel: [ 4342.479840] sony 0003:054C:0268.0001: Fixing up Sony Sixaxis report descriptor
Jan 7 11:23:43 womble kernel: [ 4342.542229] input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input7
Jan 7 11:23:43 womble kernel: [ 4342.545863] sony 0003:054C:0268.0001: input,hiddev0,hidraw0: USB HID v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:1d.1-1/input0
--
--
simon@womble:~$ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (Sony PLAYSTATION(R)3 Controller) has 27 axes (X, Y, Z, Rz, (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null))
and 19 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead, BtnA, BtnB, BtnC, (null), (null), (null)).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 24: 0 25: 0 26: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off 15:off 16:off 1
--
Axis are as follows....
Left thumbstick on 0 & 1
Right thumbstick on 2 & 3
D up, right, down and left on 8, 9, 10 & 11 (11 has a problem which was reported to the kernel list a while back).
L2, R2, L1 and R1 on 12, 13, 14 & 15
Triangle, Circle, Cross and Square on 16, 17, 18 & 19.
Accelerometer's are on 23, 24 and 25 (so should not be a problem).
Which buttons/sticks are you trying to register?
When using this controller I prefer L2 brake, R2 acc, right thumbstick steer and left thumbstick shift.