From: Chase Douglas <chase.douglas@canonical.com>
To: Henrik Rydberg <rydberg@euromail.se>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jussi Pakkanen <jussi.pakkanen@canonical.com>,
linux-input@vger.kernel.org
Subject: Re: [PATCH v3] bcm5974: Set BUTTONPAD property
Date: Tue, 17 Jan 2012 20:06:45 +0100 [thread overview]
Message-ID: <4F15C6C5.8060202@canonical.com> (raw)
In-Reply-To: <20120117185738.GA12487@polaris.bitmath.org>
On 01/17/2012 07:57 PM, Henrik Rydberg wrote:
>> Imagine a tablet driver only has INPUT_PROP_DIRECT set. According to the
>> "unknown" definition, it's ok to leave INPUT_PROP_POINTER as unset. But
>> then userspace will end up treating it like a touchscreen instead of a
>> tablet.
>
> INPUT_PROP_DIRECT and INPUT_PROP_POINTER go together, remember? Thus,
> there is no problem using the input properties to determine the
> (touchscreen, touchpad, tablet) types.
Sorry, I forgot. Which means this needs to be documented too :).
>> If you are unwilling to backport property bits to stable kernels, then I
>> don't think we have any other choice than to leave the definition as
>> "unset bits are unknown", but it clearly puts userspace in a bind.
>> Because the evdev event codes are clear (BTN_TOUCH means touchscreen,
>> BTN_TOOL_FINGER means touchpad) and these property bits are not, I doubt
>> userspace will ever rely on the direct and pointer property bits.
>
> BUTTONPAD
>
> If set, treat as button pad. If not set and bcm5974, look at result of
> older method. Else, treat as not button pad.
>
> SEMIMT
>
> If set, treat as semimt device. If not set, treat as not semimt
> device.
>
> There, all four types are now fully defined and backwards compatible.
These two are more straightforward. We can easily handle these
properties as "unknown" without breaking things. It's the other bits
that are problematic.
-- Chase
next prev parent reply other threads:[~2012-01-17 19:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 9:36 [PATCH] Set buttonpad property on those bcm5974 devices that have a physical button Jussi Pakkanen
2012-01-10 9:45 ` Henrik Rydberg
2012-01-10 10:08 ` [PATCH v2] " Jussi Pakkanen
2012-01-10 10:22 ` Henrik Rydberg
2012-01-10 10:56 ` [PATCH v3] bcm5974: Set BUTTONPAD property Jussi Pakkanen
2012-01-10 11:42 ` Henrik Rydberg
2012-01-11 7:38 ` Dmitry Torokhov
2012-01-11 9:23 ` Chase Douglas
2012-01-11 10:04 ` Henrik Rydberg
2012-01-11 10:09 ` Chase Douglas
2012-01-11 17:18 ` Dmitry Torokhov
2012-01-11 21:36 ` Chase Douglas
2012-01-11 21:59 ` Dmitry Torokhov
2012-01-11 22:57 ` Chase Douglas
2012-01-12 0:22 ` Henrik Rydberg
2012-01-12 10:19 ` Chase Douglas
2012-01-17 16:39 ` Chase Douglas
2012-01-17 18:06 ` Dmitry Torokhov
2012-01-17 18:15 ` Henrik Rydberg
2012-01-17 18:24 ` Jason Gerecke
2012-01-17 19:21 ` Dmitry Torokhov
2012-01-17 20:27 ` Jason Gerecke
2012-01-17 20:40 ` Dmitry Torokhov
2012-01-17 21:10 ` Jason Gerecke
2012-01-17 18:25 ` Chase Douglas
2012-01-17 18:57 ` Henrik Rydberg
2012-01-17 19:06 ` Chase Douglas [this message]
2012-01-17 19:29 ` Dmitry Torokhov
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=4F15C6C5.8060202@canonical.com \
--to=chase.douglas@canonical.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jussi.pakkanen@canonical.com \
--cc=linux-input@vger.kernel.org \
--cc=rydberg@euromail.se \
/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).