Skip to content

Commit 7dacee0

Browse files
qzedrafaeljw
authored andcommitted
ACPI: battery: Add device HID and quirk for Microsoft Surface Go 3
For some reason, the Microsoft Surface Go 3 uses the standard ACPI interface for battery information, but does not use the standard PNP0C0A HID. Instead it uses MSHW0146 as identifier. Add that ID to the driver as this seems to work well. Additionally, the power state is not updated immediately after the AC has been (un-)plugged, so add the respective quirk for that. Signed-off-by: Maximilian Luz <[email protected]> Cc: All applicable <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent cfb9244 commit 7dacee0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/acpi/battery.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ MODULE_PARM_DESC(cache_time, "cache time in milliseconds");
5959

6060
static const struct acpi_device_id battery_device_ids[] = {
6161
{"PNP0C0A", 0},
62+
63+
/* Microsoft Surface Go 3 */
64+
{"MSHW0146", 0},
65+
6266
{"", 0},
6367
};
6468

@@ -1148,6 +1152,14 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
11481152
DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad"),
11491153
},
11501154
},
1155+
{
1156+
/* Microsoft Surface Go 3 */
1157+
.callback = battery_notification_delay_quirk,
1158+
.matches = {
1159+
DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
1160+
DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go 3"),
1161+
},
1162+
},
11511163
{},
11521164
};
11531165

0 commit comments

Comments
 (0)