From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by dsl2.external.hp.com (Postfix) with SMTP id 2FA13484C for ; Mon, 15 Apr 2002 18:33:56 -0600 (MDT) Content-Type: text/plain; charset="iso-8859-1" From: Helge Deller To: "Kenneth Westelinck" , parisc-linux@lists.parisc-linux.org Subject: Re: [parisc-linux] not freeing initmem and power button Date: Tue, 16 Apr 2002 02:30:39 +0200 References: In-Reply-To: MIME-Version: 1.0 Message-Id: <200204160223.35879.deller@gmx.de> Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: On Monday 15 April 2002 13:59, Kenneth Westelinck wrote: > >The power-button should work if you update to a newer kernel (>= > >2.4.18-pa19). > > Cool, does this mean: if I push the button, the system will do a clean > shutdown? Or if I push the button, nothing happens? > > Is there an easy way to disable this. In Kernel 2.4.18-pa20 I've added a /proc/sys/kernel/power procfs entry which lets you enable/disable the soft power switch at runtime: # echo 0 > /proc/sys/kernel/power # disables the power switch # echo 1 > /proc/sys/kernel/power # enables the power switch # cat /proc/sys/kernel/power Software power switch support: enabled (1) Or, you could of course also use sysctl program/interface. Greetings, Helge