MacBook patches

Joe Marcus Clarke marcus at
Sat May 12 04:20:56 UTC 2007

On Fri, 2007-05-11 at 16:39 +0100, Rui Paulo wrote:
> Hi,
> Attached are the work I've done so far for my Summer of Code
> project. If you have a MacBook and are willing to spend some time
> build -current with these patches and testing, here's what you should
> know:
> 1) Grab the patch a
> 2) Apply it to today's -current
> 3) Build a kernel.

Very cool.

> Load three modules: backlight, msrtemp, cpufreq (est).
> The only one that shouldn't work out of the box on MacBook Pro's
> backlight.
> backlight controls the LCD backlight. You should have
> hw.backlight.{enable,value} after loading the module.
> Play with it to see if it works. I didn't test MacBook Core 2 Duo, but
> it should work.
> I have a feeling that it should be very easy to make it work for the
> MacBook Pro, but contact me if you need help.

Actually, it's not so easy.  This driver operates directly on the Intel
915 card in the MacBook.  The MacBook Pro uses an ATI card.  While you
can configure the driver to recognize the ATI card, the backlight code
does not work.  There is a utility (userland) at that does
this via memmapping on the ATI card.

> msrtemp displays the Cores temperature.
> There should be N new sysctls, one for each CPU. For example:
> $ sysctl dev.cpu.{0,1}.temperature
> dev.cpu.0.temperature: 53
> dev.cpu.1.temperature: 53

This seems to work on my Core Duo Pro:

dev.cpu.0.temperature: 70
dev.cpu.1.temperature: 70


PGP Key :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url :

More information about the freebsd-current mailing list