Subject: Re: ADB setup
To: None <macallan@netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: port-macppc
Date: 10/03/2007 22:37:13
> I thought I fixed this in 4.0 but I guess I was wrong.
> On some newer *Books we accidentally power down when the adb driver
> attaches. As far as I know this happens on machines which don't have
> an ADB bus, so the PMU regards ADB commands as error and powers down.
> The attached patch will prevent the adb driver from issuing any ADB
> commands when the pmu node doesn't have an adb child. I've tested it
> on a PowerMac G4 which doesn't have ADB but the PMU is similar enough
> to the one used in newer PowerBooks although it doesn't power down on
> every error and a PowerBook 3400c which does have ADB. On the G4 no
> ADB commands are issued ( usually there would be a timeout message )
> and on the PowerBook the normal ADB devices attach.
>
> Please test this on machines with or without ADB, if it fixes the
> power down problem and doesn't have any funny side effects I'll
> request pullup into 4.0
Do you have a test kernel with the patch incorporated?
BTW, my PowerBook G4 12" powered down when I hitted f2 key
twice or more with the kernel 3.99.x or earlier, but 4.99.31
works fine. Not tested 4.0.x.
My machine is:
PowerBook6,4 (late 2004)
166.402MHz
Regards,
--
SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>