From: dv Date: Wed, 9 Feb 2022 16:10:05 +0000 (+0000) Subject: add Surface Go 3 hid to acpibat(4) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0304f138cb3cdad8c95b0150467a840d92e24204;p=openbsd add Surface Go 3 hid to acpibat(4) Microsoft decided to break with basic ACPI standards with the Go 3. In this case, they don't expose the battery in a standard way, so acpibat(4) needs to look for the special Microsoft hid. From mlarkin@, ok kettenis@ --- diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c index 9075aa39722..751278c0cd8 100644 --- a/sys/dev/acpi/acpibat.c +++ b/sys/dev/acpi/acpibat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpibat.c,v 1.68 2020/06/10 22:26:40 jca Exp $ */ +/* $OpenBSD: acpibat.c,v 1.69 2022/02/09 16:10:05 dv Exp $ */ /* * Copyright (c) 2005 Marco Peereboom * @@ -47,6 +47,7 @@ struct cfdriver acpibat_cd = { const char *acpibat_hids[] = { ACPI_DEV_CMB, + "MSHW0146", NULL };