diff options
author | 2020-10-25 08:31:40 +0000 | |
---|---|---|
committer | 2020-10-25 08:31:40 +0000 | |
commit | f8cacb9adb61edd4a6e50d5f35810ffc4045ee5d (patch) | |
tree | fe50f33ee5d65eaf2a8c88f3c6eafcc9e26f555e | |
parent | enable snooping on more Intel devices (diff) | |
download | wireguard-openbsd-f8cacb9adb61edd4a6e50d5f35810ffc4045ee5d.tar.xz wireguard-openbsd-f8cacb9adb61edd4a6e50d5f35810ffc4045ee5d.zip |
Unbreak brightness setting on MacBooks introduced by abl(4).
MacBooks already handle the brightness through the drm driver.
Therefore only attach abl(4) to iMacs.
Issue initially reported by James Luigy.
Discussed with kettenis@, ok jung@
-rw-r--r-- | sys/dev/acpi/abl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/acpi/abl.c b/sys/dev/acpi/abl.c index 99ff47237cf..5550dbe7ade 100644 --- a/sys/dev/acpi/abl.c +++ b/sys/dev/acpi/abl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: abl.c,v 1.2 2020/09/16 09:35:14 kettenis Exp $ */ +/* $OpenBSD: abl.c,v 1.3 2020/10/25 08:31:40 mglocker Exp $ */ /* * Copyright (c) 2020 Marcus Glocker <mglocker@openbsd.org> @@ -116,6 +116,12 @@ abl_attach(struct device *parent, struct device *self, void *aux) if (!(aml_evalname(sc->sc_acpi, sc->sc_devnode, "_CID", 0, NULL, &res))) printf(" (%s)", res.v_string); + /* Backlight on non-iMacs is already handled differently. */ + if (strncmp(hw_prod, "iMac", 4)) { + printf("\n"); + return; + } + /* * We need to check on what type of PCI controler we're running on to * access the right I/O space. |