Received: by mail.netbsd.org (Postfix, from userid 605) id 3F84D84DA2; Thu, 23 Apr 2020 12:56:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B760C84DA1 for ; Thu, 23 Apr 2020 12:56:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id d0PxvVB2ps8k for ; Thu, 23 Apr 2020 12:56:40 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 56BDB84D81 for ; Thu, 23 Apr 2020 12:56:40 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4FFA5FB27; Thu, 23 Apr 2020 12:56:40 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 23 Apr 2020 12:56:40 +0000 From: "Michael Lorenz" Subject: CVS commit: src/sys/arch/macppc/dev To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200423125640.4FFA5FB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Michael Lorenz" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: macallan Date: Thu Apr 23 12:56:40 UTC 2020 Modified Files: src/sys/arch/macppc/dev: lmu.c Log Message: make this work properly: - get rid of cargo-culted register assignments, I found the right ones by experiment, now both light sensors report sane values - keyboard brightness seems to max out at 16, act like it - do what MacOS does and fade keyboard brightness instead of just switching - add sysctls to configure keyboard brightness and environmental light thresholds - don't poll the chip more often than once a second To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/macppc/dev/lmu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.