Re: En/disabling power button shutdown

2011-06-15 Thread Andrew Fresh
On Sat, Jun 11, 2011 at 10:58:17AM +0200, Mark Kettenis wrote: > Like I asked on icb, why do we need a knob for this at all? I don't need one yet, but someday when hybernate works I would like to sysctl hw.powerbuttonaction=hybernate In preparation for that, I don't see a reason not to support a

Re: En/disabling power button shutdown

2011-06-14 Thread Christian Weisgerber
Christian Weisgerber wrote: > The diff below -snip- > I have only tested this on amd64 and sparc64. Has anybody compiled this on landisk, sgi, zaurus? -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: En/disabling power button shutdown

2011-06-12 Thread Kevin Chadwick
On Sat, 11 Jun 2011 21:14:02 +0200 gilbert.fernan...@orange.fr wrote: > They had to put pieces of paper in front of the power buttons > because when you move a machine sometimes your finger presses > the power button. A matchbox with a hole in it acts like a reset button protection.

Re: En/disabling power button shutdown

2011-06-12 Thread gilbert . fernandes
On Sun, Jun 12, 2011 at 10:38:33AM +0100, Stuart Henderson wrote: > whether or not the power button is disabled, there are plenty of things > which can go wrong with such a move. do it the right way, especially for > a server relied on by 100+ users... True :-) Well I guess that's a mistake I wo

Re: En/disabling power button shutdown

2011-06-12 Thread Stuart Henderson
On 2011/06/11 21:06, gilbert.fernan...@orange.fr wrote: >We have to add one, so move the others > on one side, and by moving one we accidentally pressed a > power button and the machine did shut down... Without > almost a hundred machines depending on it and people working > on

Re: En/disabling power button shutdown

2011-06-11 Thread gilbert . fernandes
On Sat, Jun 11, 2011 at 11:01:20PM +0200, Marc Espie wrote: > One knob for the dwarfen guys that work in the IT mines, to bind the machines > and rule them all. And under the Linux kernel undefined constants, bind them !

Re: En/disabling power button shutdown

2011-06-11 Thread Marc Espie
On Sat, Jun 11, 2011 at 09:06:05PM +0200, gilbert.fernan...@orange.fr wrote: > One knob to be able to turn it on so when you're working > on a machine, and console dies, to be able to shutdown > properly and avoid a fsck. One knob for the dwarfen guys that work in the IT mines, to bind the machine

Re: En/disabling power button shutdown

2011-06-11 Thread gilbert . fernandes
On Sat, Jun 11, 2011 at 03:00:10PM +, Christian Weisgerber wrote: > That leaves "avoid shutdown by accidentally brushing against the > button", but that isn't an issue in practice. A lot of people are using PCs as servers instead of real servers (with two power supplies and all the bell and w

Re: En/disabling power button shutdown

2011-06-11 Thread gilbert . fernandes
On Sat, Jun 11, 2011 at 10:58:17AM +0200, Mark Kettenis wrote: > Like I asked on icb, why do we need a knob for this at all? One knob to turn it off so when you have installed servers in a room, to avoid seeing one shutdown because you pressed the power button when moving one. To give you an exa

Re: En/disabling power button shutdown

2011-06-11 Thread Christian Weisgerber
Peter Hessler wrote: > :> Like I asked on icb, why do we need a knob for this at all? > > I have used this feature on a regular basis. Very useful when you want > to politely power off a system, but you don't have/don't want a login. You misunderstand. The question is, why do we need a knob t

Re: En/disabling power button shutdown

2011-06-11 Thread Ted Roby
On Sat, Jun 11, 2011 at 10:08 AM, Amit Kulkarni wrote: >> I have used this feature on a regular basis. Very useful when you want >> to politely power off a system, but you don't have/don't want a login. > > +1 > > especially when i am trying off and on to make my xorg.conf work in > dual monitor

Re: En/disabling power button shutdown

2011-06-11 Thread Amit Kulkarni
> I have used this feature on a regular basis. Very useful when you want > to politely power off a system, but you don't have/don't want a login. +1 especially when i am trying off and on to make my xorg.conf work in dual monitor setup for months, and it hangs. And pressing the power button for

Re: En/disabling power button shutdown

2011-06-11 Thread Peter Hessler
On 2011 Jun 11 (Sat) at 15:00:10 + (+), Christian Weisgerber wrote: :Mark Kettenis wrote: : :> Like I asked on icb, why do we need a knob for this at all? : :I don't need one. I'd be just as happy to simply rip out :machdep.kbdreset where it's currently abused for that purpose. : :* If yo

Re: En/disabling power button shutdown

2011-06-11 Thread Christian Weisgerber
Mark Kettenis wrote: > Like I asked on icb, why do we need a knob for this at all? I don't need one. I'd be just as happy to simply rip out machdep.kbdreset where it's currently abused for that purpose. * If you press one of these soft power buttons a little bit longer, they typically shut o

Re: En/disabling power button shutdown

2011-06-11 Thread Mark Kettenis
Like I asked on icb, why do we need a knob for this at all?

En/disabling power button shutdown

2011-06-10 Thread Christian Weisgerber
The machdep.kbdreset sysctl currently serves two functions: On amd64 and i386 it enables a shutdown by Ctrl-Alt-Del. On various other archs, it enables a shutdown by pressing the soft power button. There is currently no way to disable a shutdown by ACPI power button on amd64 and i386. The diff be