Subject: Re: iBook Powermanagement status query
To: Cherry G. Mathew <cherry.g.mathew@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 03/07/2006 10:16:14
--Signature_Tue__7_Mar_2006_10_16_14_-0500_xEZsvxsjULe_RL46
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > Some code to talk to apmd is already there, after all we can
> > (usually) report battery status.
>=20
> Would this glue with powerd(8) ? Should it ?

No, powerd is for monitoring buttons and so on, it should however Just
Work with apmd.

> Also, I'd like to try run the powerhooks on drivers on my G3/800 (as a
> start). Where do I start ?

I'd suggest this - look at macppc/dev/apm.c and fill in the
APM_IOC_STANDBY and APM_IOC_SUSPEND cases in apmioctl(), look what i386
does there - basically it runs the powerhooks, then tells the APM BIOS
to go into standby or suspend. Lots of macppc-specific drivers don't
support powerhooks yet, that's where the real work lurks.
With the ioctl()s in place you can just use zzz or apm to call them.

have fun
Michael

--Signature_Tue__7_Mar_2006_10_16_14_-0500_xEZsvxsjULe_RL46
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBRA2jwcpnzkX8Yg2nAQLgRggAn2V+HVgG5qRQ8p80AH5Ddn7BlWaguMSp
Xra5f4vtn/9jvGTmdSi1ImPgV9msyRWZbnB8fwfRjTLrxsPVn0roSPJazuZdNtCj
9V5XopSHL0Ogl1jhn/nEgrFuLup+VVaQznZBX+KsoR3KeSeCo+632Hte8g83mWzJ
xkFu99l3dXJCQ4rGJ64ES2XKSYuYd6CavJDtUXtWM8AAv6TN0/rp4LMvfJP4BDHc
XAkfPDVIPT/y6Pky8/xDftpu8jJ7wJhn1HFT9jXGtxa8CWygo03YQ8Pg5hMudORl
ZIh+0VUpVNhKi04/1+3mdF4Ktg02nDhOCzdHDIj6KaPH/ZiOm5xr9Q==
=zrSQ
-----END PGP SIGNATURE-----

--Signature_Tue__7_Mar_2006_10_16_14_-0500_xEZsvxsjULe_RL46--