Re: mac-mini power button
Brought to you by:
matthiasgrimm
|
From: Matthias G. <mat...@us...> - 2005-09-29 21:16:15
|
On Thu, 15 Sep 2005 10:01:43 +0200
pix <pi...@te...> wrote:
> i could see that on pressing the power button, the bytes [0x40 0x0c] are
> generated. when you release the button, [0x40 0x04] is generated.
>
> i tried adding this to the module_pmac.c file, but then i noticed a
> bigger problem. it appears that when running on the mac mini, pbbuttonsd
> doesn't even listen to /dev/pmu. to check, i turned on PMUINTR in
> debug.h and compiled with -DDEBUG. i get a lot more debug info, but i
> don't get the expected line printing out the bytes that i know are being
> generated at /dev/pmu... so i assume somewhere during startup, pbbutons
> makes some decision not to monitor /dev/pmu.. possibly because it
> doesn't support many laptop-like functions, such as sleeping (this is
> also why pmud doesn't want to start on the mac-mini).
There is no check for desktop or laptop in pbbuttonsd. As long
as /dev/pmu could be opened it would always be read (check permissions
on /dev/pmu and your logs for pbbuttonsd error messages). Could you
send me the debug output?
> i hope this is useful for the developers, unless there is some policy
> about not supporting desktop machines...
Such a policy doesn't exist. If something doesn't work, we make it work.
Best Regards
Matthias
|