From: Frank Praznik <frank.praznik@oh.rr.com>
To: Antonio Ospite <ao2@ao2.it>, Frank Praznik <frank.praznik@oh.rr.com>
Cc: linux-input@vger.kernel.org, jkosina@suse.cz, dh.herrmann@gmail.com
Subject: Re: [PATCH v2 7/8] HID: sony: Initialize the controller LEDs with the device ID value
Date: Thu, 13 Mar 2014 10:24:30 -0400 [thread overview]
Message-ID: <5321BF9E.1020206@oh.rr.com> (raw)
In-Reply-To: <20140310235902.e09d0855b9c848a098b7ca36@ao2.it>
On 3/10/2014 18:59, Antonio Ospite wrote:
> On Thu, 6 Mar 2014 17:32:55 -0500
> Frank Praznik<frank.praznik@oh.rr.com> wrote:
>
>> Use the device ID to initialize the Sixaxis and DualShock 4 controller LEDs to
>> default values. The number or color of the controller is set relative to other
>> connected Sony controllers.
>>
> You already know I am not a huge fan of this idea for the sixaxis and I
> found another reason why: the Sixaxis requires the user to press the PS
> button before it starts to actually send events and the all-blink
> pattern is there to tell the user:
>
> "Look, even if the device is connected, it isn't fully functional yet,
> some action is required".
>
> That's also why the BlueZ sixaxis plugin waits for events before
> actually setting the LEDs via USB.
>
> Furthermore I still seem to get the all-blink pattern even with the
> patch applied, it seems to start _after_ the kernel driver set the
> default as per your patch; do you also experience this?
> And I still need a recent BLueZ with the sixaxis plugin to use the
> controller via BT so I don't see the benefits of defaults over BT
> either, but I am obviously biased.
Yeah, without the BlueZ plugin it keeps blinking on USB unless the PS
button is pressed almost immediately since the controller overrides the
initial settings and a new output report isn't sent until there is a
reason to do so (a rumble event or the LEDs changing in sysfs). I'm not
really sure how to fix that in the driver without some hack-ish
workarounds that may interfere with settings made in userland. It's
just an unavoidable quirk of the controller and no different from the
existing behavior in that specific case.
I can still see setting the defaults in the driver being of some use on
the Bluetooth side since there are a lot of distros that are still using
BlueZ 4.x which doesn't have the plugin (everything Debian based for
instance). You need a third party program like sixpair to do the
initial pairing, but it's still usable.
> Just please, if you can, test your changes in conjunction with the
> BlueZ sixaxis plugin in order to make sure the two don't step on each
> other toes too much.
I've tested it against the BlueZ plugin and there are no conflicts that
I've experienced. Like I've said before, the LEDs are only set to
defaults during initialization and then never touched by the driver once
the device is exposed to the system so the driver will never "step on
the toes" of userland settings. The driver has actually been setting
the LEDs to default values since someone else added the LED controls for
the Sixaxis in 3.14 and it doesn't seem to cause any problems. The only
difference this patch makes is that the LEDs are set to some meaningful
default instead of "all-off".
next prev parent reply other threads:[~2014-03-13 14:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 22:32 [PATCH v2 0/8] HID: sony: More Sony controller fixes and improvements Frank Praznik
2014-03-06 22:32 ` [PATCH v2 1/8] HID: sony: Fix Sixaxis cable state detection Frank Praznik
2014-03-06 22:32 ` [PATCH v2 2/8] HID: sony: Set the HID quriks flag for Bluetooth controllers Frank Praznik
2014-03-06 22:32 ` [PATCH v2 3/8] HID: sony: Use inliners for work queue initialization and cancellation Frank Praznik
2014-03-06 22:32 ` [PATCH v2 4/8] HID: sony: Use a struct for the Sixaxis output report Frank Praznik
2014-03-06 22:32 ` [PATCH v2 5/8] HID: sony: Convert startup and shutdown functions to use a uniform parameter type Frank Praznik
2014-03-06 22:32 ` [PATCH v2 6/8] HID: sony: Add an IDA allocator to assign unique device ids Frank Praznik
2014-03-10 22:25 ` Antonio Ospite
2014-03-13 14:30 ` Frank Praznik
2014-03-06 22:32 ` [PATCH v2 7/8] HID: sony: Initialize the controller LEDs with the device ID value Frank Praznik
2014-03-10 22:59 ` Antonio Ospite
2014-03-13 14:24 ` Frank Praznik [this message]
2014-03-06 22:32 ` [PATCH v2 8/8] HID: sony: Add blink support to the Sixaxis and DualShock 4 LEDs Frank Praznik
2014-03-14 14:42 ` [PATCH v2 0/8] HID: sony: More Sony controller fixes and improvements Jiri Kosina
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=5321BF9E.1020206@oh.rr.com \
--to=frank.praznik@oh.rr.com \
--cc=ao2@ao2.it \
--cc=dh.herrmann@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
/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).