From aa7da346bd6e4388e186fc40b8dcb9ef90127302 Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Mon, 12 Jan 2009 22:52:02 +0100 Subject: Fix light sensor readings on newer MacBooks The light sensors ALV0 and ALV1 on newer MacBooks (early 2008 and later) changed to report 10 bytes instead the earlier 6, and the sensor encoding subsequently changed. As a result, the reported light sensors readings are much too low. From experiments leading up to this patch, it seems only the ALV0 is reporting data, and the most useful value therein is a 10-bit big-endian value at offset 6. This suggests that a new protocol was added as a backward-compatible replacement on top of the old one. This patch makes applesmc report the improved light sensor reading for the new machines, on a scale in conformance with earlier ones. This patch has also been sent to kernel.org Signed-off-by: Alex Murray Signed-off-by: Henrik Rydberg --- debian/changelog | 6 ++++++ debian/postinst | 2 +- debian/postrm | 2 +- debian/prerm | 2 +- debian/rules | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index f3c0464..680ced9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +applesmc-dkms (0.14.2) unstable; urgency=low + + * Fix light sensor readings on newer MacBooks + + -- Alex Murray Sun, 11 Jan 2009 20:42:03 +1030 + applesmc-dkms (0.14.1) unstable; urgency=low * Add support for MacBook Air 2 diff --git a/debian/postinst b/debian/postinst index 6351864..89c94eb 100644 --- a/debian/postinst +++ b/debian/postinst @@ -3,7 +3,7 @@ set -e NAME=applesmc -VERSION=0.14.1 +VERSION=0.14.2 case "$1" in configure) diff --git a/debian/postrm b/debian/postrm index 454faea..7f94688 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,7 +1,7 @@ #!/bin/sh NAME=applesmc -VERSION=0.14.1 +VERSION=0.14.2 set -e diff --git a/debian/prerm b/debian/prerm index 05315a4..a6cf719 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,7 +1,7 @@ #!/bin/sh NAME=applesmc -VERSION=0.14.1 +VERSION=0.14.2 set -e diff --git a/debian/rules b/debian/rules index c829ec6..9fdb303 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,7 @@ #export DH_VERBOSE=1 NAME=applesmc -VERSION=0.14.1 +VERSION=0.14.2 configure: configure-stamp configure-stamp: -- cgit v1.2.3