Skip to content

Commit ba852ed

Browse files
garnachoksacilotto
authored andcommitted
platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12
BugLink: https://bugs.launchpad.net/bugs/1910822 commit fe60009 upstream. This 2-in-1 model (Product name: Switch SA5-271) features a SW_TABLET_MODE that works as it would be expected, both when detaching the keyboard and when folding it behind the tablet body. It used to work until the introduction of the allow list at commit 8169bd3 ("platform/x86: intel-vbtn: Switch to an allow-list for SW_TABLET_MODE reporting"). Add this model to it, so that the Virtual Buttons device announces the EV_SW features again. Fixes: 8169bd3 ("platform/x86: intel-vbtn: Switch to an allow-list for SW_TABLET_MODE reporting") Cc: [email protected] Signed-off-by: Carlos Garnacho <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Kelsey Skunberg <[email protected]>
1 parent 3d3a51b commit ba852ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/platform/x86/intel-vbtn.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ static const struct dmi_system_id dmi_switches_allow_list[] = {
203203
DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion 13 x360 PC"),
204204
},
205205
},
206+
{
207+
.matches = {
208+
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
209+
DMI_MATCH(DMI_PRODUCT_NAME, "Switch SA5-271"),
210+
},
211+
},
206212
{} /* Array terminator */
207213
};
208214

0 commit comments

Comments
 (0)