linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Veseli Veseljko <veseljko75@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: ShanWan Sixaxis PS3 controller
Date: Thu, 18 Dec 2014 12:24:59 +0100	[thread overview]
Message-ID: <1432274.34ricBdst7@uw000953> (raw)
In-Reply-To: <20141217133613.GA18280@ubuntu.localnet>

Hi Veseli,

On Wednesday 17 of December 2014 14:36:13 Veseli Veseljko wrote:
> On Tuesday, 2014-12-16, at 18:24:21 +0100, Veseli Veseljko wrote:
> > I have a Sony PS3 Sixaxis compatible controller made by ShanWan. Is it
> > possible to make it work with bluez sixaxis plugin? I tried it on
> > Ubuntu 14.10 running Linux kernel 3.16 and bluez 5.20, compiled with
> > sixaxis option.
> 
> I added some DBGs into "/profiles/input/server.c" code and I found
> out that when dev_is_sixaxis is run, both vendor ID and product ID for
> this controller are 0x0000.
> 
> Any ideas?

Typically DS3 should be handled like this:

1. make sure you don't have sixad/qtsixa installed as it was reported that it
   conflicted with sixpair plugin (udev rules)
2. make sure you have sixaxis plugin installed - this plugin depends on udev
   so it is not builin into bluetoothd but loaded on start from
   /usr/lib/bluetooth/plugins 
3. plug it into USB (don't press PS button yet)
   you should see something like "sixaxis: compatible device connected: ...."
   in bluetoothd logs
4. unplug it
5. press PS button

Device should now connect and you should be asked (in bluetoothctl or UI) to
authorize connection. After that you should be able to reconnect without need
of pluging it with USB first.

This was mostly tested with genuine controllers. There were reports that some
of clone devices doesn't behave exactly the same ie. use different pid/vid or
don't report correct BT address over USB. Making them work would probably
require some extra work, but I don't have any of those clone devices.


-- 
Best regards, 
Szymon Janc

  reply	other threads:[~2014-12-18 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-16 17:24 ShanWan Sixaxis PS3 controller Veseli Veseljko
2014-12-17 13:36 ` Veseli Veseljko
2014-12-18 11:24   ` Szymon Janc [this message]
2014-12-19 11:53     ` Veseli Veseljko
2015-01-02 14:12       ` 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=1432274.34ricBdst7@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=veseljko75@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;
as well as URLs for NNTP newsgroup(s).