From owner-freebsd-current@FreeBSD.ORG Sat May 12 04:20:56 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5AA1C16A400 for ; Sat, 12 May 2007 04:20:56 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id EE88313C458 for ; Sat, 12 May 2007 04:20:55 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.1/8.14.1) with ESMTP id l4C3kAjB006659; Fri, 11 May 2007 23:46:11 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Rui Paulo In-Reply-To: <86k5vffjz8.wl%rpaulo@fnop.net> References: <86k5vffjz8.wl%rpaulo@fnop.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VT6ghH4zch4Tq4SlqFBu" Organization: MarcusCom, Inc. Date: Fri, 11 May 2007 23:45:49 -0400 Message-Id: <1178941549.80037.33.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on creme-brulee.marcuscom.com Cc: current@freebsd.org Subject: Re: MacBook patches X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 04:20:56 -0000 --=-VT6ghH4zch4Tq4SlqFBu Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: >=20 > 1) Grab the patch a > http://fnop.net/~rpaulo/freebsd/macbook.diff > 2) Apply it to today's -current > 3) Build a kernel. Very cool. >=20 > Load three modules: backlight, msrtemp, cpufreq (est). > The only one that shouldn't work out of the box on MacBook Pro's > backlight. >=20 > 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 http://svn.sourceforge.net/viewvc/mactel-linux/trunk/backlight that does this via memmapping on the ATI card. >=20 > msrtemp displays the Cores temperature. > There should be N new sysctls, one for each CPU. For example: >=20 > $ 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 Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-VT6ghH4zch4Tq4SlqFBu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGRThqb2iPiv4Uz4cRAvUXAJ40zQz+7xlzIyjFCS+ZGRFgtk4zfgCdHiN5 gNEW5Vux/jENk3sQkcL2Yt0= =v4lG -----END PGP SIGNATURE----- --=-VT6ghH4zch4Tq4SlqFBu--