diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-05-02 20:29:49 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-05-07 20:19:37 +0300 |
commit | 990fbb48067bf8cfa34b7d1e6e1674eaaef2f450 (patch) | |
tree | 98499fcc88ab0e2c99e8e9f405b791b5c4623be3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f6ba524970c4b73b234bf41ecd6628f5803b1559 (diff) |
platform/x86: intel-vbtn: Do not advertise switches to userspace if they are not there
Commit de9647efeaa9 ("platform/x86: intel-vbtn: Only activate tablet mode
switch on 2-in-1's") added a DMI chassis-type check to avoid accidentally
reporting SW_TABLET_MODE = 1 to userspace on laptops (specifically on the
Dell XPS 9360), to avoid e.g. userspace ignoring touchpad events because
userspace thought the device was in tablet-mode.
But if we are not getting the initial status of the switch because the
device does not have a tablet mode, then we really should not advertise
the presence of a tablet-mode switch to userspace at all, as userspace may
use the mere presence of this switch for certain heuristics.
Fixes: de9647efeaa9 ("platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions