All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: Antonio Ospite <ospite@studenti.unina.it>, simon@mungewell.org
Cc: Henrik Rydberg <rydberg@euromail.se>,
	case <case@corpsmoderne.net>,
	linux-input@vger.kernel.org,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: About the PS3 Sixaxis linux driver
Date: Mon, 18 Nov 2013 10:38:42 -0500	[thread overview]
Message-ID: <528A3482.8040807@redhat.com> (raw)
In-Reply-To: <20131116180607.8508c13158a181f8c5fa7dd6@studenti.unina.it>

Hi guys,

I forgot to say that:
- IMO, the approach raised in 2011 by Antonio[1] was the correct one:
the multitouch protocol introduced a regression with devices providing
large axis number, so we should fix this in input core, not on a per
device basis.
- I'll send an update to this patch later this week.
- I don't think remapping the PS3 axis now will make into upstream
(backward compatibility), but this is only my own opinion
- I have discussed this with the Xinput maintainer, and he also would
like to get the information from the kernel when the ABS_MT axis are
used as ABS_MT or ABS_MISC, so I'll also add a property in this way.

Cheers,
Benjamin

[1] http://www.spinics.net/lists/linux-input/msg16881.html

On 16/11/13 12:06, Antonio Ospite wrote:
> On Mon, 4 Nov 2013 16:40:29 -0500
> simon@mungewell.org wrote:
> 
> Hi Simon, sorry for the delay on this one.
>  
>>> Actually I intended to rewrite the whole HID descriptor and add a sane
>>> mapping for all the buttons (maybe following the Gamepad API and
>>> even using the new ABS_ACCEL_* and ABS_GYRO_* events from David
>>> Hermann).
>>
>> I think that the root of the problem here is simply the large number of
>> axis, and that the keycodes start at 'axis-x' then overflow into/past the
>> MultiTouch keycode.
>>
> 
> Yes, and the code that maps HID usages to event keycodes also comes into
> play I guess.
> 
>> This problem is going to be a more common one as HID drivers present more
>> buttons/axis.
>>
>> We did some patching here:
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hid/hid-sony.c?id=refs/tags/v3.12#n301
>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/hid/hid-sony.c?id=61ab44bebdefab296487e7cd723a634849278827
>>
>> Do we need to fix this is the HID descriptor, or in 'hid-sony' input stuff?
> 
> I think both:
> 
>   1. adjust the HID descriptor into something that can be more easily
>      remapped;
> 
>   2. remap the keycodes in hid-sony to those of the gamepad API, because
>      AFAICT that can't be achieved by solely deciding HID usage codes in
>      the descriptor.
> 
>> Do you have example of another driver to copy?
> 
> I am doing some work already in this direction, on the lines of what we
> did for the ps3remote in hid-sony, but it needs some input bits not
> merged yet, I'll send an RFC as soon as this becomes more easily
> testable.
> 
> Regards,
>    Antonio
> 


  reply	other threads:[~2013-11-18 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <526A697E.7050605@corpsmoderne.net>
2013-11-04 20:37 ` About the PS3 Sixaxis linux driver Benjamin Tissoires
2013-11-04 21:07   ` simon
2013-11-04 21:18   ` Antonio Ospite
2013-11-04 21:40     ` simon
2013-11-16 17:06       ` Antonio Ospite
2013-11-18 15:38         ` Benjamin Tissoires [this message]
2013-11-18 16:25           ` Antonio Ospite
2013-11-18 17:02             ` Benjamin Tissoires
2013-11-04 23:03     ` Marc

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=528A3482.8040807@redhat.com \
    --to=benjamin.tissoires@redhat.com \
    --cc=case@corpsmoderne.net \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=ospite@studenti.unina.it \
    --cc=rydberg@euromail.se \
    --cc=simon@mungewell.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.