Bug 218574 - [patch] asmc add support for Macbook Air 2011, 11inch model 4,1 to control backlight
Summary: [patch] asmc add support for Macbook Air 2011, 11inch model 4,1 to control ba...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Ed Maste
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-04-11 22:01 UTC by NapoleonWils0n
Modified: 2019-06-22 08:26 UTC (History)
3 users (show)

See Also:


Attachments
asmc patch for macbook air 2011 11 inch model 4,1 (2.72 KB, patch)
2017-04-11 22:01 UTC, NapoleonWils0n
no flags Details | Diff
Combined patch for Macbook Air 2011, 11 (4,1) and 13 (4,2) inch models (1.94 KB, patch)
2019-06-22 08:20 UTC, John Hay
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description NapoleonWils0n 2017-04-11 22:01:45 UTC
Created attachment 181703 [details]
asmc patch for macbook air 2011 11 inch model 4,1

I have created a patch for asmc for the Macbook Air 2011, 11 inch model 4,1

I dumped the smc stats from the macbook air using smc fan control

This patch enables the keyboard backlight and fan control
Comment 1 Thomas Merkel 2017-08-07 08:31:51 UTC
I would like to let you know that I've running a similar patch to yours at my MacBook Air which works perfect!
Comment 2 Ed Maste freebsd_committer 2018-03-08 18:54:20 UTC
Do you have the names/descriptions for the temperature sensors?
Comment 3 NapoleonWils0n 2018-10-23 16:00:26 UTC
Hi Ed

sorry for late reply, 
i havent checked the post for a while my bad

I actually followed someones blog post about dumping smc settings from the mac,
so i dont have any names description for the temp sensors

I have all the notes i made at the time, 
and the smc settings i dumped from the mac if thats any help

+ my notes on dumping smc and creating asmc entry

https://github.com/NapoleonWils0n/cerberus/blob/master/freebsd/freebsd-macbook.md#build-custom-kernel

+ smc stats dumped from my mac

https://github.com/NapoleonWils0n/cerberus/blob/master/freebsd/smc-macbook-air.txt

+ asmc patch

https://github.com/NapoleonWils0n/cerberus/blob/master/freebsd/asmc-patch.txt

+ asmc.c and asmcvar.h

https://github.com/NapoleonWils0n/cerberus/tree/master/freebsd/asmc-macbook-air


I think it was this post on reddit i followed

https://www.reddit.com/r/freebsd/comments/4ufu92/can_anyone_explain_to_me_how_i_can_add_my_own/
Comment 4 John Hay 2019-06-22 08:20:57 UTC
Created attachment 205277 [details]
Combined patch for Macbook Air 2011, 11 (4,1) and 13 (4,2) inch models

The patch was created on FreeBSD 12
Comment 5 John Hay 2019-06-22 08:26:30 UTC
If someone is interested in descriptions for the sensors, the openbsd driver with the same name, although with a different layout, have a lot of them:

https://cvsweb.openbsd.org/src/sys/dev/isa/asmc.c?rev=1.32&content-type=text/x-cvsweb-markup