All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ritesh Raj Sarraf <rrs@debian.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>,
	Rafael Wysocki <rjw@rjwysocki.net>,
	Platform Driver <platform-driver-x86@vger.kernel.org>,
	Ike Panhc <ike.pan@canonical.com>,
	Andy Shevchenko <andy@infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state
Date: Fri, 17 Feb 2017 14:49:00 +0530	[thread overview]
Message-ID: <1487323140.6980.20.camel@debian.org> (raw)
In-Reply-To: <20170217084806.GA4397@dtor-ws>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello Dmitry,

On Fri, 2017-02-17 at 00:48 -0800, Dmitry Torokhov wrote:
> It looks like the patch is trying to provide a way to disable the
> touchpad when transitioning in tablet mode. 

The keyboard/touchpad get disabled, by hardware, when flipped to tablet mode.
Since currently, the driver has no way to expose a tablet-mode interface, we
relied on this behavior, for the Lenovo Yoga device types.

> 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.

I am not sure what you mean here. But:

root@learner:/sys/bus/platform/devices/VPC2004:00# When in normal mode^C
root@learner:/sys/bus/platform/devices/VPC2004:00# cat touchpad_mode 
1

S3 Suspend here. THen flip hw to tablet mode. Now, hit power btn to Resume.

root@learner:/sys/bus/platform/devices/VPC2004:00# Now in tablet mode^C
root@learner:/sys/bus/platform/devices/VPC2004:00# cat touchpad_mode 
0

- -- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAlimwAQACgkQpjpYo/Lh
dWkzIw/+NMiQ4A/OplUP/g6mTfba5zyuN0g9Or6RwzXyPrFsWbPAN4E6pcNIM1OT
oy8RAnrqdSQymVH5atbR/ysPwlzG19+LWB4FVlVdkDMKkVonAHmUX+mL9+KFa7E5
+RmpS9Hzc6cLv1kpKMUeLD7j9U3I4NkUEsxDZwLk916KE6fCthGsmbn1gGADv3oT
/lErDW7MLaImR67cmHmRhfhIotQPokcn3OVT/Eb7K8UjvXQLlWnDxMdxlQ7xDTua
aJ3c/lB+FQytwp/JBSbNpzspNcCX5mmkh6PERXhxLJzL1CpCz3qnwKwKyeoGFcjv
goj+CTZNsnGqaBuZThNI2vVWJRHqGCX2qp3IyWrSzNa6j5SfMTlgr0a/WsI7rpiY
4+81OXoeCVcr+ZGO4wtsvR1WDWvXqb+0bWYByNu85L/Rj9KWzxfh1mbtahG6odi8
bp7/+1cy55+d4XnX2/QHgkXdSCelBPtwH+aJUBp5av1N6t88+Dat8p3EyK30Cyp/
XfdglsfKWvmJX+hLBgR75ejy3cvr5iBIuExuULZNd8qrj+4dYDt4cYQB/MnttLt4
HZ1c/qSjMTDPdMBb4s3C844Pgk6QsKHJwLEl2zTN8HqNTMdwHBktyFPEzsRqV6Wn
Kea6z4lFUwS17LCaq/bhCwvYcFJm2XSimtXWj1a50YdwEgAiT5o=
=nuhe
-----END PGP SIGNATURE-----

  reply	other threads:[~2017-02-17  9:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14 14:16 [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state Ritesh Raj Sarraf
2017-02-17  3:33 ` Darren Hart
2017-02-17  7:39   ` Andy Shevchenko
2017-02-17  8:48     ` Dmitry Torokhov
2017-02-17  9:19       ` Ritesh Raj Sarraf [this message]
2017-02-17 19:52         ` Dmitry Torokhov
2017-02-18  9:51           ` Ritesh Raj Sarraf
2017-02-17  9:05   ` Ritesh Raj Sarraf
2017-02-17 14:53     ` Ritesh Raj Sarraf

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=1487323140.6980.20.camel@debian.org \
    --to=rrs@debian.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@infradead.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=ike.pan@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /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.