Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Andrea <mariofutire@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: partial success with PS3 sixaxis
Date: Thu, 13 Feb 2014 10:25:43 +0100	[thread overview]
Message-ID: <2534491.XllyezJg3g@uw000953> (raw)
In-Reply-To: <52FBE820.6050701@gmail.com>

Hi Andrea,

On Wednesday 12 of February 2014 21:31:12 Andrea wrote:
> Hi,
> 
> I've been trying to pair a PS3 sixaxis controller using bluez 5.14
> I've had so far only partial success.
> 
> It connects, creates js0 and event0 devices, but after a few seconds it removes them.
> 
> The lights are always flashing.
> 
> I am on a Raspberry running ArchLinux.
> 
> This is the output of bluetoothctl
> 
> ...
> [bluetooth]# disconnect
> [CHG] Device 00:0B:EB:63:F2:62 Connected: yes
> [bluetooth]# disconnect show
> [bluetooth]# disconnect 00:0B:EB:63:F2:62
> Attempting to disconnect from 00:0B:EB:63:F2:62
> Successful disconnected
> [CHG] Device 00:0B:EB:63:F2:62 Connected: no
> [CHG] Device 00:0B:EB:63:F2:62 Connected: yes
> 
> then in dmesg I can see
> 
> [ 2745.435967] sony 0005:054C:0268.0008: Fixing up Sony Sixaxis report descriptor
> [ 2745.452105] sony 0005:054C:0268.0008: unknown main item tag 0x0
> [ 2745.471504] input: PLAYSTATION(R)3 Controller as
> /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/bluetooth/hci0/hci0:11/input7
> [ 2745.472795] sony 0005:054C:0268.0008: input,hidraw0: BLUETOOTH HID v1.00 Joystick
> [PLAYSTATION(R)3 Controller] on 00:0b:0d:4c:94:a6
> [ 2755.472242] sony: probe of 0005:054C:0268.0008 failed with error -5
> 
> the hardware should be ok as it works using sixad & sixpair.
> 
> any idea what could be going wrong?
> I am not even sure if I am doing the right thing to pair, trust, connect etc... as I cannot google
> anything using bluez 5 + ps3. All the howtos are for sixad.

This should "just work". Since 5.14 there is authorization needed when DS3 is
connecting (device is not marked as trusted when connected on USB) so please
make sure you have default agent registered.

I assume you are using bluetoothctl so do:
agent on
default-agent

Then you should get authorization request in bluetoothctl when DS3 is connecting.

-- 
Best regards, 
Szymon Janc

  reply	other threads:[~2014-02-13  9:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 21:31 partial success with PS3 sixaxis Andrea
2014-02-13  9:25 ` Szymon Janc [this message]
2014-02-15 12:10   ` Andrea
2014-02-28 10:47     ` Szymon Janc
2014-02-28 21:20       ` Andrea
2014-02-15 20:41   ` Andrea
2014-02-15 20:49     ` Andrea
2014-02-20  9:47     ` Szymon Janc
2014-02-22  9:19       ` Andrea
2014-02-28 10:35         ` Szymon Janc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2534491.XllyezJg3g@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=mariofutire@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox