Latest working kernel version: unknown Earliest failing kernel version: unknown Distribution: ubuntu Hardware Environment: macbook air Software Environment: git kernel source Problem Description: Macbook air not recognized by applesmc Steps to reproduce: none The Applesmc module wrongly detects the Macbook Air as a macbook, which does not have keyboard backlights. Also, the sensor set is wrong. A patch is attached which 1) makes applesmc detect the macbook air 2) sets up a minimal set of sensors The sensor set is most likely not complete, but at least the keyboard backlight is activated.
Created attachment 16574 [details] Make applesmc recognize the macbook air, and assign a minimal set of sensors as a first guss The patch was created against the v2.6.26-rc7 kernel, with the command diff -u ../../../upstream-2.6/drivers/hwmon/applesmc.c applesmc.c
The patch looks sane. Did you try sending it to the author of the applesmc driver, Nicolas Boichat (who I just added to Cc)? Best would be if Nicolas could review and sign the patch then send it to the lm-sensors list for upstream inclusion.
I did not, thanks for the reply. I will standby and hope Nicolas forwards the patch.
I sent a patch to Nicolas today, with more SMC information about the Macbook Air. If I hear nothing in a week or so, I will send it to lm-sensors directly.
Created attachment 16804 [details] Macbook Air SMC Keys The list was created from instructions at http://lkml.org/lkml/2007/4/13/16