From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Subject: Re: tsc2005 touchscreen: implement disable attribute Date: Sun, 9 Nov 2014 13:49:19 +0100 Message-ID: <201411091349.20116@pali> References: <20141109115636.GA3106@amd> <20141109124025.GA21763@earth.universe> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2482422.I2mjBvijPq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141109124025.GA21763@earth.universe> Sender: linux-omap-owner@vger.kernel.org To: Sebastian Reichel Cc: Pavel Machek , kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, freemangordon@abv.bg, B38611@freescale.com, jg1.han@samsung.com, linux-input@vger.kernel.org, Dmitry Torokhov List-Id: linux-input@vger.kernel.org --nextPart2482422.I2mjBvijPq Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sunday 09 November 2014 13:40:25 Sebastian Reichel wrote: > Hi, >=20 > On Sun, Nov 09, 2014 at 12:56:37PM +0100, Pavel Machek wrote: > > Implement disable attribute for tsc2005 touchscreen. It is > > useful to avoid wakeups when phone is in the pocket. >=20 > I don't think this should be some driver specific sysfs node. > Instead a generic method from the input subsystem should be > used. >=20 > -- Sebastian Yes. I would like to see generic method to turn off input device=20 (or just "mute" it if device does not support turn off). Similar=20 problem is also on laptops or other portable devices. E.g when I=20 close LID of my laptop I want to turn off internal input devices=20 (keyboard, touchpad, trackstick) without need to unload evdev=20 Xserver drivers (or killing Xserver). Another use case is to turn=20 off keyboard (also from kernel tty on Ctrl+Alt+Fx) which cannot=20 be unplugged (internal laptop keyboard). CCed Dmitry, what do you think about it? =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart2482422.I2mjBvijPq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlRfYtAACgkQi/DJPQPkQ1LjewCeOq2LU1yi0D/nD6dpW8n3q9KT /vkAoIGQM3wGrLcg8IhxSB7jHakFABV6 =Jd1K -----END PGP SIGNATURE----- --nextPart2482422.I2mjBvijPq--