Linux bluetooth development
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: Antonio Ospite <ao2@ao2.it>, Szymon Janc <szymon.janc@gmail.com>,
	linux-bluetooth@vger.kernel.org,
	Veseli Veseljko <veseljko75@gmail.com>
Subject: Re: [RFC 2/2] profiles/input: Add support for SDP fallback for DualShock 3 clones
Date: Mon, 09 Mar 2015 17:53:00 +0100	[thread overview]
Message-ID: <1425919980.1421.18.camel@hadess.net> (raw)
In-Reply-To: <1644418.QPL4BBNlRG@uw000953>

On Mon, 2015-03-09 at 14:37 +0100, Szymon Janc wrote:
> Hi Antonio,
> 
> On Monday 09 of March 2015 12:21:08 Antonio Ospite wrote:
> > On Sun,  8 Mar 2015 17:08:30 +0100
> > Szymon Janc <szymon.janc@gmail.com> wrote:
> > 
> > > Some DualShock 3 clones were reported to not provide any SDP 
> > > record. In such case provide fallback SDP record (based on 
> > > genuine DS3 record) and retry setting input device channels 
> > > before disconnecting.
> > 
> > Hi Szymon,
> > 
> > I guess this can't be done in the sixaxis plugin, right?
> 
> Unfortunately not. There would have to be some sort of callbacks 
> from input
> to handle this from plugin. But if you come up with some nice 
> solution I'd
> review it gladly :)
> 
> Maybe we could modify code to always provide those on USB plug and 
> then never do
> reverse SDP when sixaxis device is detected... I'd have to think 
> about that :)

That's what the original version of the sixaxis patch for BlueZ (the 
one that shipped only in Fedora for a long while) did.

When you create the BlueZ device setup by plugging in the pad, shove 
the SDP record in the local cache as well.

In the worst case, people will need to remove the device from the 
Bluetooth settings, and plug it back in via USB.

      reply	other threads:[~2015-03-09 16:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08 16:08 [RFC 0/2] input: Improved support for DualShock 3 clones Szymon Janc
2015-03-08 16:08 ` [RFC 1/2] core/device: Add support for setting SDP record Szymon Janc
2015-03-08 16:08 ` [RFC 2/2] profiles/input: Add support for SDP fallback for DualShock 3 clones Szymon Janc
2015-03-09 11:21   ` Antonio Ospite
2015-03-09 13:37     ` Szymon Janc
2015-03-09 16:53       ` Bastien Nocera [this message]

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=1425919980.1421.18.camel@hadess.net \
    --to=hadess@hadess.net \
    --cc=ao2@ao2.it \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=szymon.janc@gmail.com \
    --cc=szymon.janc@tieto.com \
    --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