From: Bastien Nocera <hadess@hadess.net>
To: linux-input@vger.kernel.org
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Subject: Re: XBox One S Bluetooth controller hid-recorder
Date: Thu, 09 Nov 2017 17:01:08 +0100 [thread overview]
Message-ID: <1510243268.2624.37.camel@hadess.net> (raw)
In-Reply-To: <1510241150.2624.33.camel@hadess.net>
Self follow-up,
On Thu, 2017-11-09 at 16:25 +0100, Bastien Nocera wrote:
> Hey,
>
> This is the hid-recorder for that device.
>
> I started hid-recorder and pressed:
> - up, down, left, right, on the d-pad, then left analog stick, then
> right analog stick
> - Y, A, X, B on the face buttons (that's up, down, left, right
> respectively as well)
> - left button 1, right button 1
> - left trigger (2), right trigger (2)
> - menu ("Select") and Start
>
> I just realised that I didn't press down the 2 analog sticks, or on
> the
> "vendor" button either. Let me know whether you want a new log with
> those.
>
> I get this error in the kernel logs:
> [ 6821.181818] hid-generic 0005:045E:02E0.000A: unknown main item tag
> 0x0
>
> The analog sticks and d-pad seem to work properly, the problems start
> with:
> - button X reports BTN_C instead of BTN_WEST
> - the left and right trigger buttons report BTN_WEST and BTN_Z
> respectively
> - left and trigger analogue triggers report ABS_Z and ABS_RZ, not
> sure
> whether this is expected
> - "Select" reports BTN_TL, "Start" reports BTN_TR
I discussed this with Benjamin on IRC, and it seems there's nothing
here that can't be handled by user-space mappings, such as SDL2's
database.
Valve's SteamOS patch (at least the HID hunk) is really a work-around
for their big picture mode not being able to capture "KEY_MENU" it
seems:
https://github.com/ValveSoftware/steamos_kernel/commit/549c3dc10fa3749b
3999549a2672b14bf0e9786d
There's 2 more problems shown with this device:
- the hid-generic warning above is "the bt stack forgetting to remove
the terminating '0' before forwarding it to HID", which we might want
to fix to avoid bug reports
- the necessity to disable ERTM to correctly pair and connect with the
device. This is currently discussed on linux-bluetooth.
Cheers
prev parent reply other threads:[~2017-11-09 16:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 15:25 XBox One S Bluetooth controller hid-recorder Bastien Nocera
2017-11-09 16:01 ` 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=1510243268.2624.37.camel@hadess.net \
--to=hadess@hadess.net \
--cc=benjamin.tissoires@redhat.com \
--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