[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iMac things



> > The power button. It currently does nothing. How do I trap it? (My
> > lusers are unable to cope with the concept of shutting down, so it has
> > been on the receiving end of some not-so-gentle power-offs.) It would
> > be quite handy to do suspends too. Problem is, I have no idea what
> > packages to use, or how it all works.
>
> I think we get a PMU message from the button, but I don't know
> for sure. I don't have an iMac to test. You can try reading
> /dev/pmu and see if you get anything relevant

I think we get a key event from the power button (at least on the olde
powerbooks) that's just plain ignored. Keycode 116 down (and never up
again), as per showkey. We talked about this before :-)

Could you try showkey, Iain?

> > apmd thinks it's on battery power (and so anacron won't fire on
> > bootup).
>
> Dunno how it figures that out ...

apmd might be the wrong tool to use here. Try pmud.

	Michael



Reply to: