MacBook patches

Rui Paulo rpaulo at fnop.net
Sat Jun 2 16:40:43 UTC 2007


At Sat, 02 Jun 2007 00:36:55 +0200,
Arne Schwabe wrote:
>  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.

Can you change asmc.c (asmc_wait function) like this and try again?

@@ -492,7 +492,7 @@ asmc_wait(device_t dev, uint8_t val)
 
        val = val & ASMC_STATUS_MASK;
 
-       for (i = 0; i < 100; i++) {
+       for (i = 0; i < 1000; i++) {
                if ((inb(ASMC_CMDPORT) & ASMC_STATUS_MASK) == val)
                        return 0;
                DELAY(10);


--
Rui Paulo


More information about the freebsd-current mailing list