Re: shutting down mac mini

2005-04-26 Thread Johannes Berg
On Tue, 2005-04-26 at 09:03 -0400, Charles Lepple wrote: > suspend-to-ram (but again, I didn't see any errors in the logs at the > time the power button was pressed.) Yeah, I also have suspend-to-ram. I guess on a mac mini the screen can't be blanked like on a powerbook. Uh. Maybe -- since I hack

Re: shutting down mac mini

2005-04-26 Thread Charles Lepple
On 4/26/05, Johannes Berg <[EMAIL PROTECTED]> wrote: > What are onAC_KeyAction, onBattery_KeyAction set to? For me, that is sleep > but sleep is not supported and it falls back to blanking the screen, which > works when I turn off UseFBBlank. suspend-to-ram (but again, I didn't see any errors in t

Re: shutting down mac mini

2005-04-26 Thread Johannes Berg
Charles Lepple said: > Did I miss something, or is there no generic "map this key to a > script" configuration item? No, I don't think there is. > I figured I could assign it to SleepKey: > > SleepKey = pmupowerbutton > SleepKeyDelay = 0 > > but I don't see anything in the l

Re: shutting down mac mini

2005-04-25 Thread Charles Lepple
On 4/25/05, Johannes Berg <[EMAIL PROTECTED]> wrote: > On Mon, 2005-04-25 at 11:18 -0400, Charles Lepple wrote: > > > This looks like it'll work for the G4 Cube as well (it is identified > > as a Core99 machine, PMU version 12). I'll try it when I get home from > > work. > > > > For reference, /de

Re: shutting down mac mini

2005-04-25 Thread congrio
I have applied the correct patch and compiled without problems. Then run pbbuttonsd but: WARNING: No event devices available. Lets see what's wrong. WARNING: - Kernel module evdev.o is already loaded, must be something else. WARNING: - Can't figure out what's wrong, sorry - keyboard actions wo

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 11:18 -0400, Charles Lepple wrote: > This looks like it'll work for the G4 Cube as well (it is identified > as a Core99 machine, PMU version 12). I'll try it when I get home from > work. > > For reference, /dev/pmu was returning two-byte packets for each press > and release

Re: shutting down mac mini

2005-04-25 Thread Charles Lepple
On 4/25/05, Johannes Berg <[EMAIL PROTECTED]> wrote: > On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > > But pressing > > the power button in a mac mini isnt work. Is there any > > way to do a clean poweroff of this machine? > > Here's a patch for pbbuttonsd to support the new powerbutt

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 16:54 +0200, congrio wrote: > I am trying to patch, but patch do not apply cleanly. > I am using version 0.6.9 of pbbuttonsd, is this the correct version?? Yeah. I really need some patch instructions on my homepage: 1. save the raw text that can be obtained by either clickin

Re: shutting down mac mini

2005-04-25 Thread congrio
I am trying to patch, but patch do not apply cleanly. I am using version 0.6.9 of pbbuttonsd, is this the correct version?? Thx. El lun, 25-04-2005 a las 16:35 +0200, Johannes Berg escribió: On Mon, 2005-04-25 at 16:30 +0200, Johannes Berg wrote: > Here's a patch for pbbuttonsd to support

Re: shutting down mac mini

2005-04-25 Thread congrio
Thanks Johannes! i am going to try it! El lun, 25-04-2005 a las 16:30 +0200, Johannes Berg escribió: On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > But pressing > the power button in a mac mini isnt work. Is there any > way to do a clean poweroff of this machine? Here's a patch

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 16:30 +0200, Johannes Berg wrote: > Here's a patch for pbbuttonsd to support the new powerbutton. > > http://edit.johannes.sipsolutions.net/PowerBook/pbbuttonsd-pmu-powerbutton.patch Uh, internal URL only, use http://johannes.sipsolutions.net/PowerBook/pbbuttonsd-pmu-powerb

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > But pressing > the power button in a mac mini isnt work. Is there any > way to do a clean poweroff of this machine? Here's a patch for pbbuttonsd to support the new powerbutton. http://edit.johannes.sipsolutions.net/PowerBook/pbbuttonsd-p

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 10:38 +0200, congrio wrote: > 40 0c 40 04 40 0c |@[EMAIL > PROTECTED]@.| > 40 04 40 0c 40 04 |@[EMAIL > PROTECTED]@.| Aha. I'll look at having support in pbbuttonsd over the course of the w

Re: shutting down mac mini

2005-04-25 Thread congrio
:( i am having a wrong day...   40 0c 40 04 40 0c |@[EMAIL PROTECTED]@.|   40 04 40 0c 40 04 |@[EMAIL PROTECTED]@.| sorry. El lun, 25-04-2005 a las 10:35 +0200, Johannes Berg escribió: On Mon, 2005-04-25 at 10

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 10:33 +0200, congrio wrote: > log say: > 40 0c 40 04 40 0c |@[EMAIL > PROTECTED]@.| And it doesn't change when you push the power button? On my powerbook I get 40 14 00 00 00 30 on interrupt and 40 1c 00 00 0

Re: shutting down mac mini

2005-04-25 Thread congrio
O!! sorry log say:   40 0c 40 04 40 0c |@[EMAIL PROTECTED]@.| El lun, 25-04-2005 a las 10:30 +0200, Johannes Berg escribió: On Mon, 2005-04-25 at 10:27 +0200, congrio wrote: > Yes, but nothing happen. Nothing at all? Odd. I would have though

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 10:27 +0200, congrio wrote: > Yes, but nothing happen. Nothing at all? Odd. I would have thought you'd at least get the PMU status interrupt thing. johannes signature.asc Description: This is a digitally signed message part

Re: shutting down mac mini

2005-04-25 Thread congrio
El lun, 25-04-2005 a las 10:12 +0200, Johannes Berg escribió: On Mon, 2005-04-25 at 10:01 +0200, congrio wrote: > And, if i press power button, nothing happen. That's ok, pbbuttonsd doesn't support the new power button yet. :( Have you tried something like # cat /dev/pmu | (while tr

Re: shutting down mac mini

2005-04-25 Thread Johannes Berg
On Mon, 2005-04-25 at 10:01 +0200, congrio wrote: > And, if i press power button, nothing happen. That's ok, pbbuttonsd doesn't support the new power button yet. Have you tried something like # cat /dev/pmu | (while true ; do hd -n6 | grep ; done ) johannes signature.asc Description

Re: shutting down mac mini

2005-04-25 Thread congrio
El lun, 25-04-2005 a las 09:03 +0200, Juergen Kreileder escribió: Johannes Berg <[EMAIL PROTECTED]> writes: > On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: >> But pressing the power button in a mac mini isnt work. Is there any >> way to do a clean poweroff of this machine? > > May

Re: shutting down mac mini

2005-04-25 Thread Juergen Kreileder
Johannes Berg <[EMAIL PROTECTED]> writes: > On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: >> But pressing the power button in a mac mini isnt work. Is there any >> way to do a clean poweroff of this machine? > > Maybe the mac mini has a similar power button like the new > powerbook: > h

Re: shutting down mac mini

2005-04-24 Thread Johannes Berg
On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > But pressing > the power button in a mac mini isnt work. Is there any > way to do a clean poweroff of this machine? Maybe the mac mini has a similar power button like the new powerbook: http://johannes.sipsolutions.net/PowerBook/special_bu

Re: shutting down mac mini

2005-04-24 Thread congrio
El lun, 25-04-2005 a las 10:17 +1000, Benjamin Herrenschmidt escribió: On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > Hi, > > i have a mac mini in a client busines and i need that > the owner (he doesnt know anything about computers or > linux) poweroff the mac mini all days. But

Re: shutting down mac mini

2005-04-24 Thread Benjamin Herrenschmidt
On Sun, 2005-04-24 at 20:56 +0200, congrio atarip wrote: > Hi, > > i have a mac mini in a client busines and i need that > the owner (he doesnt know anything about computers or > linux) poweroff the mac mini all days. But pressing > the power button in a mac mini isnt work. Is there any > way to d

Re: shutting down mac mini

2005-04-24 Thread Pau Rul·lan Ferragut
En/na congrio atarip ha escrit: > Hi, > > i have a mac mini in a client busines and i need that > the owner (he doesnt know anything about computers or > linux) poweroff the mac mini all days. But pressing > the power button in a mac mini isnt work. Is there any > way to do a clean poweroff of thi

shutting down mac mini

2005-04-24 Thread congrio atarip
Hi, i have a mac mini in a client busines and i need that the owner (he doesnt know anything about computers or linux) poweroff the mac mini all days. But pressing the power button in a mac mini isnt work. Is there any way to do a clean poweroff of this machine? PD. this machine hasnt any conecti