> However, since Apple's SMC implementation almost certainly changed
> over the years, it would be good to test this diff on a wider range of
> Apple hardware. Please check that all sensors are still present and
> are properly updated after applying this diff.
Seems to be a significant improvement on this MacBookPro 4,1:
All sensors show up in sysctl immediately after boot. Before the patch,
the fans were detected only after about five minutes uptime.
The exact same sensors are detected.
All sensors seem to have about the same values as before the patch both
when the machine is idle and when it is under load.
Responsiveness of keyboard.backlight adjustment is now immediate rather
than delayed by about one second.
OpenBSD 5.9-beta (GENERIC.MP) #188: Tue Dec 22 07:03:10 CET 2015
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2110599168 (2012MB)
avail mem = 2042535936 (1947MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0000 (45 entries)
bios0: vendor Apple Inc. version "MBP41.88Z.00C1.B03.0802271651" date 02/27/08
bios0: Apple Inc. MacBookPro4,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) UHC5(S3) EHC1(S3) EHC2(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2394.46 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2394.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 3MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 3 (RP03)
acpiprt3 at acpi0: bus 11 (RP05)
acpiprt4 at acpi0: bus 12 (RP06)
acpiprt5 at acpi0: bus 13 (PCIB)
acpicpu0 at acpi0: !C3(100@57 mwait.3@0x31), !C2(500@1 mwait@0x10), C1(1000@1
mwait), PSS
acpicpu1 at acpi0: !C3(100@57 mwait.3@0x31), !C2(500@1 mwait@0x10), C1(1000@1
mwait), PSS
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "14127832176087873" type 14127832377542988 oem
"14127833101004627"
acpivideo0 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2400, 2200, 2000, 1800, 1600, 1400,
1200, 800 MHz
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffa0000/0x30000
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel GM965 PCIE" rev 0x03: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8600M GT" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x04: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x04: apic 1 int 16
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x04: apic 1 int 21
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x04: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x04: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x04: msi
pci4 at ppb3 bus 11
"Broadcom BCM4321" rev 0x05 at pci4 dev 0 function 0 not configured
ppb4 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x04: msi
pci5 at ppb4 bus 12
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8058" rev 0x13, Yukon-2 EC
Ultra rev. B0 (0x3): apic 1 int 17
msk0 at mskc0 port A: address 00:22:41:32:fe:f1
eephy0 at msk0 phy 0: 88E1149 Gigabit PHY, rev. 1
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x04: apic 1 int 16
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x04: apic 1 int 18
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x04: apic 1 int 21
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x04: apic 1 int 20
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf4
pci6 at ppb5 bus 13
"TI TSB82AA2 FireWire" rev 0x02 at pci6 dev 3 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x04
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x04: DMA, channel 0
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 1 int 21 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRW GSA-S10N, AP12> ATAPI 5/cdrom
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801HBM SATA" rev 0x04: DMA, channel
0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 18 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <HITACHI HTS725050A9A364>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x04: apic 1 int 20
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
asmc0 at isa0 port 0x300/32: rev 1.27f527, 261 keys
vmm0 at mainbus0: VMX
umass0 at uhub0 port 2 configuration 1 interface 0 " " rev 2.00/1.05 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <, , 8.07> SCSI2 0/direct removable
serial.058f6387010755000720
sd0: 7450MB, 512 bytes/sector, 15257600 sectors
uvideo0 at uhub1 port 4 configuration 1 interface 0 "Apple Inc. Built-in
iSight" rev 2.00/1.60 addr 2
video0 at uvideo0
ugen0 at uhub1 port 4 configuration 1 "Apple Inc. Built-in iSight" rev
2.00/1.60 addr 2
uhub7 at uhub2 port 1 "Apple Inc. BRCM2046 Hub" rev 2.00/1.00 addr 2
ugen1 at uhub7 port 1 "Apple Inc. Bluetooth USB Host Controller" rev 2.00/1.80
addr 3
uhidev0 at uhub7 port 2 configuration 1 interface 0 "Apple Computer product
0x820a" rev 2.00/1.00 addr 4
uhidev0: iclass 3/1, 1 report id
ukbd0 at uhidev0 reportid 1: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub7 port 3 configuration 1 interface 0 "Apple Computer product
0x820b" rev 2.00/1.00 addr 5
uhidev1: iclass 3/1, 2 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
uhidev2 at uhub6 port 1 configuration 1 interface 0 "Apple Computer, Inc. IR
Receiver" rev 2.00/0.16 addr 2
uhidev2: iclass 3/0, 38 report ids
uhid0 at uhidev2 reportid 36: input=4, output=0, feature=0
uhid1 at uhidev2 reportid 37: input=4, output=0, feature=0
uhid2 at uhidev2 reportid 38: input=4, output=0, feature=0
uhidev3 at uhub6 port 2 configuration 1 interface 0 "Apple, Inc. Apple Internal
Keyboard / Trackpad" rev 2.00/0.70 addr 3
uhidev3: iclass 3/1, 9 report ids
ukbd1 at uhidev3 reportid 1: 8 variable keys, 6 key codes, country code 13
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhid3 at uhidev3 reportid 9: input=0, output=0, feature=3
uhidev4 at uhub6 port 2 configuration 1 interface 1 "Apple, Inc. Apple Internal
Keyboard / Trackpad" rev 2.00/0.70 addr 3
uhidev4: iclass 3/0, 68 report ids
uhid4 at uhidev4 reportid 68: input=511, output=0, feature=0
ubcmtp0 at uhub6 port 2 configuration 1 interface 2 "Apple, Inc. Apple Internal
Keyboard / Trackpad" rev 2.00/0.70 addr 3
wsmouse1 at ubcmtp0 mux 0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd1 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd1: 476936MB, 512 bytes/sector, 976766528 sectors
root on sd1a (7966d4a5430aa607.a) swap on sd1b dump on sd1b
hw.machine=amd64
hw.model=Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz
hw.ncpu=2
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=cd0:,wd0:70d5ee0972da806f,sd0:a034bb4e9bdf5e21,sd1:7966d4a5430aa607
hw.diskcount=4
hw.sensors.cpu0.temp0=57.00 degC
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=11.10 VDC (voltage)
hw.sensors.acpibat0.volt1=12.33 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=15.90 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=0.25 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.10 Wh (low capacity)
hw.sensors.acpibat0.watthour3=15.46 Wh (remaining capacity), OK
hw.sensors.acpibat0.watthour4=56.00 Wh (design capacity)
hw.sensors.acpibat0.raw0=0 (battery idle), OK
hw.sensors.asmc0.temp0=35.00 degC (TB0T Enclosure Bottom)
hw.sensors.asmc0.temp1=68.00 degC (TC0D CPU0 Die Core)
hw.sensors.asmc0.temp2=63.00 degC (TC0P CPU0 Proximity)
hw.sensors.asmc0.temp3=79.00 degC (TG0D GPU0 Diode)
hw.sensors.asmc0.temp4=66.00 degC (TG0H GPU0 Heatsink)
hw.sensors.asmc0.temp5=69.00 degC (TTF0)
hw.sensors.asmc0.temp6=41.00 degC (TW0P Wireless Airport Card)
hw.sensors.asmc0.temp7=65.00 degC (Th0H Main Heatsink A)
hw.sensors.asmc0.temp8=51.00 degC (Th1H Main Heatsink B)
hw.sensors.asmc0.temp9=53.00 degC (Th2H Main Heatsink C)
hw.sensors.asmc0.temp10=51.00 degC (Tm0P Memory Controller)
hw.sensors.asmc0.temp11=37.00 degC (Ts0P)
hw.sensors.asmc0.fan0=3401 RPM (Left side left mid rear)
hw.sensors.asmc0.fan1=3393 RPM (Right side right mid rear)
hw.sensors.asmc0.illuminance0=1956.13 lx (left)
hw.sensors.asmc0.illuminance1=3506.07 lx (right)
hw.sensors.softraid0.drive0=online (sd1), OK
hw.cpuspeed=800
hw.setperf=0
hw.vendor=Apple Inc.
hw.product=MacBookPro4,1
hw.version=1.0
hw.serialno=W88353E2YJX
hw.uuid=26a96eac-cd73-7a49-8b7c-2da8f466d971
hw.physmem=2110599168
hw.usermem=2110582784
hw.ncpufound=2
hw.allowpowerdown=1
hw.perfpolicy=auto