Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1583210

Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

From Dmitry Torokhov <dmitry.torokhov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state
Date 2017-02-17 09:50 +0100
Message-ID <tbMoN-1Y8-9@gated-at.bofh.it> (permalink)
References <taM7v-2Vs-9@gated-at.bofh.it> <tbHyO-7eB-13@gated-at.bofh.it> <tbLj4-1dN-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Feb 17, 2017 at 09:39:20AM +0200, Andy Shevchenko wrote:
> On Fri, Feb 17, 2017 at 5:33 AM, Darren Hart <dvhart@infradead.org> wrote:
> > On Tue, Feb 14, 2017 at 07:46:12PM +0530, Ritesh Raj Sarraf wrote:
> >> Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3
> >> 14 etc) has multiple modles that are a hybrid laptop, working in laptop
> >> mode as well as tablet mode.
> 
> > That said, we need to make these systems usable, and as there appears not to be
> > an accepted standard way of doing this, I don't object to the approach. However,
> > you mentioned in the bug comments (#64) on 2/12:
> >
> >     "I have attached the final patch that I had proposed, but for whatever
> >     reasons, the maintainer isn't convinced that that interface is needed."
> >
> > This is the only version of this patch I have seen.
> 
> This patch is actually a v2 that includes maintainers as I had asked
> and additional paragraph to explain why we need such interface.
> 
> > Who objected to the patch?
> 
> I was trying to understand why /dev/input/eventX can not be used for a such.
> 
> > I would like to hear from Rafael and Dmitry, for their opinion on an ACPI or INPUT
> > interface for indicating TABLET_MODE to userspace. Even if we accept this patch
> > as is, we should be thinking about how to do this in a standard way.

Kernel should send EV_SW/SW_TABLET_MODE to communicate tablet mode to
userspace; clients should be listening to these events.

It looks like the patch is trying to provide a way to disable the
touchpad when transitioning in tablet mode. In ChromeOS we have a notion
of "inhibiting" input devices, where userspace policy daemon tells the
kernel that it is not interested in events from a given device and input
core will suppress events from such device (and driver may optionally
put device into low power mode, if it chooses to do so). But in this
case the control seems to be totally outside of the input driver (which
I suspect is PS/2 device), so the policy daemon would have to have
specific knowledge of this new knob.

BTW, I am not sure if this is actually reliable: if system goes to S3
with lid open and user changes it into tablet form, nobody will tell the
EC that touchpad should be ignored and it will wake up the tablet.

Thanks.

-- 
Dmitry

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state Ritesh Raj Sarraf <rrs@debian.org> - 2017-02-14 15:20 +0100
  Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Darren Hart <dvhart@infradead.org> - 2017-02-17 04:40 +0100
    Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-02-17 08:40 +0100
      Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-02-17 09:50 +0100
        Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Ritesh Raj Sarraf <rrs@debian.org> - 2017-02-17 10:20 +0100
          Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-02-17 21:00 +0100
            Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Ritesh Raj Sarraf <rrs@debian.org> - 2017-02-18 11:00 +0100
    Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Ritesh Raj Sarraf <rrs@debian.org> - 2017-02-17 10:10 +0100
      Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for  touchpad state Ritesh Raj Sarraf <rrs@debian.org> - 2017-02-17 16:00 +0100

csiph-web