Re: MacBook patches

From: Arne Schwabe <schwabe_at_uni-paderborn.de>
Date: Sat, 02 Jun 2007 00:36:55 +0200
Rui Paulo wrote:
> Here's a new patch including the System Management Console driver:
> 	http://fnop.net/~rpaulo/priv/freebsd/macbook.diff
>
> You have to apply the patch with CWD src/sys.
>
> For more comments, see:
> 	http://wiki.freebsd.org/AppleMacbook
>
> Have fun.
>   
I tried this on my shiny Macbook Pro. :)

dmesg http://plai.de/freebsd/dmesg.mbp.

 sysctl -a |grep asmc
hw.asmc.fan.0.speed: 4498
hw.asmc.fan.0.safespeed: 1200
hw.asmc.fan.0.minspeed: 2000
hw.asmc.fan.0.maxspeed: 6000
hw.asmc.fan.0.targetspeed: 4492
hw.asmc.fan.1.speed: 4489
hw.asmc.fan.1.safespeed: 1200
hw.asmc.fan.1.minspeed: 2000
hw.asmc.fan.1.maxspeed: 6000
hw.asmc.fan.1.targetspeed: 4492
hw.asmc.temp.enclosure: 54
hw.asmc.temp.northbridge1: 118
^^^ This seems to be bogus and it . Values jump between 65 and 125.

hw.asmc.temp.northbridge2: 56
hw.asmc.temp.heatsink1: 54
hw.asmc.temp.heatsink2: 111
^^^ Same here.

hw.asmc.temp.memory: 37
hw.asmc.sms.x: 4
hw.asmc.sms.y: -4
hw.asmc.sms.z: 258
Works :)

dev.asmc.0.%desc: Apple SMC MacBook Pro Core 2 Duo (15-inch)
dev.asmc.0.%driver: asmc
dev.asmc.0.%parent: isa0



% sysctl dev.cpu dev.cpufreq dev.acpi_throttle
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 2316
dev.cpu.0.freq_levels: 2316/-1 2026/-1 1737/-1 1447/-1 1158/-1 868/-1
579/-1 289/-1
dev.cpu.0.cx_supported: C1/1 C2/1
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00%
dev.cpu.0.temperature: 62
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/1 C2/1
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00% 0.00%
dev.cpu.1.temperature: 65

freq_levels are missing for cpu1. Is this by design or a bug?

dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.acpi_throttle.0.%desc: ACPI CPU Throttling
dev.acpi_throttle.0.%driver: acpi_throttle
dev.acpi_throttle.0.%parent: cpu0
dev.acpi_throttle.0.freq_settings: 10000/-1 8750/-1 7500/-1 6250/-1
5000/-1 3750/-1 2500/-1 1250/-1


The backlight module does nothing for my MBP. At least it does not crash
it :)

The msrtemp module was not build with the kernel. But doing cd
/usr/src/sys/modules/msrtemp ; make obj all install worked for me:

dev.cpu.0.temperature: 69
dev.cpu.1.temperature: 71
dev.msrtemp.0.%desc: CPU On-Die Thermal Sensors
dev.msrtemp.0.%driver: msrtemp
dev.msrtemp.0.%parent: cpu0
dev.msrtemp.1.%desc: CPU On-Die Thermal Sensors
dev.msrtemp.1.%driver: msrtemp
dev.msrtemp.1.%parent: cpu1


But still may thanks for your work.

Arne
Received on Fri Jun 01 2007 - 20:37:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC