diff options
| author | Alex Murray <murray.alex@gmail.com> | 2009-01-12 22:52:02 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2009-01-12 22:52:02 +0100 |
| commit | aa7da346bd6e4388e186fc40b8dcb9ef90127302 (patch) | |
| tree | d50f1ce94dfeca5692cffd7f34c0b60cbe7da1b5 /Makefile | |
| parent | dc4adff09d3dd32b048645008b67d53887047c00 (diff) | |
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 <murray.alex@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | NAME = applesmc | 1 | NAME = applesmc |
| 2 | VERSION = 0.14.1 | 2 | VERSION = 0.14.2 |
| 3 | SRC = usr/src | 3 | SRC = usr/src |
| 4 | 4 | ||
| 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz | 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz |
