Subject: Re: ADB stuff
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 11/18/2006 01:28:35
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Nov 18, 2006, at 00:12, Nathan J. Williams wrote:
> Michael Lorenz <macallan@NetBSD.org> writes:
>
>> Second - how much do people really care about apm emulation? All it
>> does is report battery and AC power state, data which will also be
>> available via envsys, in much more detail.
>
> As long as the pkgsrc battery-monitor type programs (I used xbattbar)
> can cope with envsys, it's all good.
Hmm, I guess I'll have a look. I intended to make the batteries look
like ACPI batteries as far as envsys is concerned.
>> So far it does NOT:
>> support brightness and audio volume buttons on powerbooks
>> support any sort of power management
>> send weird phantom keycodes like the old driver
>
> phantom keycodes - is that the caps lock stuff or something else?
Stuff like the 0 after caps lock. And when you send a command to the
keyboard ( for instance to control LEDs on an Extended II ) you get a
couple more 0 as answers - not actually from the keyboard but from
somewhere in the bowels of the ADB handler, apparently it can't clearly
distinguish between keyboard events and answers to TALK requests.
And I forgot - my code doesn't honour CAPS_IS_CONTROL - mainly because
caps lock pretends to be a mechanical locking key so we get only the
down or only the up event and nothing else and second because some
keyboards control their LEDs themselves, like those in *Books. Evil
hack IMHO.
have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQEVAwUBRV6oFMpnzkX8Yg2nAQLaqQf+K2EQDhWPs939Zsgylzl7XaGvc8wqEi+K
2kumTELkImNWRPfI0fg5YHyqj57qP0MFv9ZjVu/p5UQBiWFUT7O29jdSheiWl5XP
XKm8sXv0jw1MkG8zAggM505+/jYH88K9UDGc3t0R4JsO8JFjf7G9nrvPdJtm7YG7
1xrXxMrwh4lTIOigKtaJQhTfXiPSTuszkdhQ0qxh9pIjsrBjKAdDY5HrME20k7GO
QS9EQ+AzdpcPrOGb0nME7ULff+Ix79bJCTsRxYcIqNZ69RnS7VrRCnO3NJ1wFlcg
1wHo71SkVXZJ3pDGnjJhPyRWaBmjmL8z8rWiSIVbKbnGmBOnnqgz2A==
=pK7p
-----END PGP SIGNATURE-----