diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-12 12:35:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-12 12:35:20 +0000 |
commit | 85ff2d85fa96f6409f5bc9266c1e94ae0ca5151c (patch) | |
tree | 4357009f42669a60d01b2b6226be134b0bf69d8b /sys/dev/acpi | |
parent | 6eaa573d6f08d7ebea8666da09484d6ce9f4e1ba (diff) |
In acpitz_setfan(), try to send fan commands to ``power resources'' objects.
Makes a few hp laptops run cooler and quieter.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpitz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index 9b99ffe841d..f1a56860bce 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.27 2008/09/11 12:45:20 miod Exp $ */ +/* $OpenBSD: acpitz.c,v 1.28 2008/09/12 12:35:19 miod Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -248,7 +248,8 @@ acpitz_setfan(struct acpitz_softc *sc, int i, char *method) if (ref->type == AML_OBJTYPE_OBJREF) { ref = ref->v_objref.ref; } - if (ref->type != AML_OBJTYPE_DEVICE) { + if (ref->type != AML_OBJTYPE_DEVICE && + ref->type != AML_OBJTYPE_POWERRSRC) { printf("%s: %s[%d.%d] _PRO not a package\n", DEVNAME(sc), name, x, y); continue; |