Skip to content

Commit a6a87c3

Browse files
tuxedo-wsedtor
authored andcommitted
Input: i8042 - add TUXEDO devices to i8042 quirk tables
A lot of modern Clevo barebones have touchpad and/or keyboard issues after suspend fixable with nomux + reset + noloop + nopnp. Luckily, none of them have an external PS/2 port so this can safely be set for all of them. I'm not entirely sure if every device listed really needs all four quirks, but after testing and production use. No negative effects could be observed when setting all four. The list is quite massive as neither the TUXEDO nor the Clevo dmi strings have been very consistent historically. I tried to keep the list as short as possible without risking on missing an affected device. This is revision 3. The Clevo N150CU barebone is still removed as it might have problems with the fix and needs further investigations. The SchenkerTechnologiesGmbH System-/Board-Vendor string variations are added. This is now based in the quirk table refactor. This now also includes the additional noaux flag for the NS7xMU. Signed-off-by: Werner Sembach <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 69c0069 commit a6a87c3

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

drivers/input/serio/i8042-x86ia64io.h

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,29 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = {
10251025
},
10261026
.driver_data = (void *)(SERIO_QUIRK_NOMUX)
10271027
},
1028+
/*
1029+
* A lot of modern Clevo barebones have touchpad and/or keyboard issues
1030+
* after suspend fixable with nomux + reset + noloop + nopnp. Luckily,
1031+
* none of them have an external PS/2 port so this can safely be set for
1032+
* all of them. These two are based on a Clevo design, but have the
1033+
* board_name changed.
1034+
*/
1035+
{
1036+
.matches = {
1037+
DMI_MATCH(DMI_BOARD_VENDOR, "TUXEDO"),
1038+
DMI_MATCH(DMI_BOARD_NAME, "AURA1501"),
1039+
},
1040+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1041+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1042+
},
1043+
{
1044+
.matches = {
1045+
DMI_MATCH(DMI_BOARD_VENDOR, "TUXEDO"),
1046+
DMI_MATCH(DMI_BOARD_NAME, "EDUBOOK1502"),
1047+
},
1048+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1049+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1050+
},
10281051
{
10291052
/* Mivvy M310 */
10301053
.matches = {
@@ -1054,6 +1077,112 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = {
10541077
},
10551078
.driver_data = (void *)(SERIO_QUIRK_NOLOOP)
10561079
},
1080+
/*
1081+
* A lot of modern Clevo barebones have touchpad and/or keyboard issues
1082+
* after suspend fixable with nomux + reset + noloop + nopnp. Luckily,
1083+
* none of them have an external PS/2 port so this can safely be set for
1084+
* all of them.
1085+
* Clevo barebones come with board_vendor and/or system_vendor set to
1086+
* either the very generic string "Notebook" and/or a different value
1087+
* for each individual reseller. The only somewhat universal way to
1088+
* identify them is by board_name.
1089+
*/
1090+
{
1091+
.matches = {
1092+
DMI_MATCH(DMI_BOARD_NAME, "LAPQC71A"),
1093+
},
1094+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1095+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1096+
},
1097+
{
1098+
.matches = {
1099+
DMI_MATCH(DMI_BOARD_NAME, "LAPQC71B"),
1100+
},
1101+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1102+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1103+
},
1104+
{
1105+
.matches = {
1106+
DMI_MATCH(DMI_BOARD_NAME, "N140CU"),
1107+
},
1108+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1109+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1110+
},
1111+
{
1112+
.matches = {
1113+
DMI_MATCH(DMI_BOARD_NAME, "N141CU"),
1114+
},
1115+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1116+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1117+
},
1118+
{
1119+
.matches = {
1120+
DMI_MATCH(DMI_BOARD_NAME, "NH5xAx"),
1121+
},
1122+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1123+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1124+
},
1125+
{
1126+
.matches = {
1127+
DMI_MATCH(DMI_BOARD_NAME, "NL5xRU"),
1128+
},
1129+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1130+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1131+
},
1132+
/*
1133+
* At least one modern Clevo barebone has the touchpad connected both
1134+
* via PS/2 and i2c interface. This causes a race condition between the
1135+
* psmouse and i2c-hid driver. Since the full capability of the touchpad
1136+
* is available via the i2c interface and the device has no external
1137+
* PS/2 port, it is safe to just ignore all ps2 mouses here to avoid
1138+
* this issue. The known affected device is the
1139+
* TUXEDO InfinityBook S17 Gen6 / Clevo NS70MU which comes with one of
1140+
* the two different dmi strings below. NS50MU is not a typo!
1141+
*/
1142+
{
1143+
.matches = {
1144+
DMI_MATCH(DMI_BOARD_NAME, "NS50MU"),
1145+
},
1146+
.driver_data = (void *)(SERIO_QUIRK_NOAUX | SERIO_QUIRK_NOMUX |
1147+
SERIO_QUIRK_RESET_ALWAYS | SERIO_QUIRK_NOLOOP |
1148+
SERIO_QUIRK_NOPNP)
1149+
},
1150+
{
1151+
.matches = {
1152+
DMI_MATCH(DMI_BOARD_NAME, "NS50_70MU"),
1153+
},
1154+
.driver_data = (void *)(SERIO_QUIRK_NOAUX | SERIO_QUIRK_NOMUX |
1155+
SERIO_QUIRK_RESET_ALWAYS | SERIO_QUIRK_NOLOOP |
1156+
SERIO_QUIRK_NOPNP)
1157+
},
1158+
{
1159+
.matches = {
1160+
DMI_MATCH(DMI_BOARD_NAME, "NJ50_70CU"),
1161+
},
1162+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1163+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1164+
},
1165+
{
1166+
.matches = {
1167+
DMI_MATCH(DMI_BOARD_NAME, "PB50_70DFx,DDx"),
1168+
},
1169+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1170+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1171+
},
1172+
{
1173+
.matches = {
1174+
DMI_MATCH(DMI_BOARD_NAME, "X170SM"),
1175+
},
1176+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1177+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1178+
},
1179+
{
1180+
.matches = {
1181+
DMI_MATCH(DMI_BOARD_NAME, "X170KM-G"),
1182+
},
1183+
.driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS |
1184+
SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP)
1185+
},
10571186
{ }
10581187
};
10591188

0 commit comments

Comments
 (0)