Re: iMac things

2004-03-09 Thread Michael Schmitz
> > Same as my Powerbook. The monitor power button isn't expected to produce a > > keycode, I think. > > > > Did you get both key down and key up events?? > > Yes, both. OK; so my Powerbook is on the weird side here. I get the keydown only (plus autorepeat ad infinitum). > > > > How would I go ab

Re: iMac things

2004-03-08 Thread Benjamin Herrenschmidt
On Tue, 2004-03-09 at 05:32, Iain Georgeson wrote: > I get something, although I'm not sure about "relevant". It prints @s > and linefeeds. The messages are in binary format, you can't just read them with a shell script or whatever. > > Wake-On-Lan is possible with the proper support in the sung

Re: iMac things

2004-03-08 Thread Iain Georgeson
Michael Schmitz <[EMAIL PROTECTED]> writes: > Same as my Powerbook. The monitor power button isn't expected to produce a > keycode, I think. > > Did you get both key down and key up events?? Yes, both. > > How would I go about trapping that? It would be nice to have both > > working so the luser

Re: iMac things

2004-03-08 Thread Iain Georgeson
[It takes me a while to get around to things sometimes...] Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > On Wed, 2004-02-18 at 05:54, Iain Georgeson wrote: > 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/

Re: iMac things

2004-02-21 Thread Benjamin Herrenschmidt
On Fri, 2004-02-20 at 01:28, Michael Schmitz wrote: > > > Could you try showkey, Iain? > > > > The keyboard power button says Keycode 116. The monitor power button > > doesn't show anything with showkeys. > > Same as my Powerbook. The monitor power button isn't expected to produce a > keycode, I t

Re: iMac things

2004-02-19 Thread Michael Schmitz
Some more comments: > > > 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,

Re: iMac things

2004-02-19 Thread Michael Schmitz
> > Could you try showkey, Iain? > > The keyboard power button says Keycode 116. The monitor power button > doesn't show anything with showkeys. Same as my Powerbook. The monitor power button isn't expected to produce a keycode, I think. Did you get both key down and key up events?? > How would

Re: iMac things

2004-02-18 Thread Iain Georgeson
Michael Schmitz <[EMAIL PROTECTED]> writes: > 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? The keyboard powe

Re: iMac things

2004-02-18 Thread Michael Schmitz
> > 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 > > pack

Re: iMac things

2004-02-17 Thread Benjamin Herrenschmidt
On Wed, 2004-02-18 at 05:54, Iain Georgeson wrote: > I've just slapped Woody on a crusty old iMac. I've got most of it up, > but I've got a couple of issues with it left: > > The power button. It currently does nothing. How do I trap it? (My > lusers are unable to cope with the concept of shutting