Re: [RFC PATCH] input: Add disable sysfs entry for every input device

From: Bastien Nocera
Date: Tue Jan 02 2018 - 20:38:46 EST


On Tue, 2017-01-17 at 12:07 +0100, Pavel Machek wrote:
>
<snip>
> We'd really like it to work on plain old text console, too, because
> that's what
> I'm using on n900, and with old maemo userspace, because that's what
> everyone
> else uses.
>
> You mentioned you think X.org can do this kind of device disabling
> (and powersave).
> Would you have an idea how to activate that? I'd like to disable
> touchscreen
> and most of the buttons when the device is "in the pocket".

You need to change the "Device Enabled" property in X. What this does
depends on which Xorg driver it uses.