From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from systemhalted (CPE0080c82c70ca.cpe.net.cable.rogers.com [24.112.140.233]) by dsl2.external.hp.com (Postfix) with ESMTP id C7F22483D for ; Wed, 3 Jul 2002 14:33:09 -0600 (MDT) Date: Wed, 3 Jul 2002 16:32:27 -0400 From: Carlos O'Donell To: Ralf Hildebrandt Cc: Grant Grundler , parisc-linux@lists.parisc-linux.org Subject: Re: [parisc-linux] Power Button doesn't turn machine off anymore Message-ID: <20020703203227.GE9009@systemhalted> References: <20020702185708.GP25586@charite.de> <20020702190606.GA3678@systemhalted> <20020702190842.GR25586@charite.de> <20020702192147.GC3678@systemhalted> <20020702193116.GU25586@charite.de> <20020703052415.GB32490@charite.de> <20020703121306.GA8464@systemhalted> <20020703121737.GS15228@charite.de> <20020703164631.F0CE2483A@dsl2.external.hp.com> <20020703165234.GG13244@charite.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+QahgC5+KEYLbs62" In-Reply-To: <20020703165234.GG13244@charite.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: --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > > > > That's not needed for 712/715/B-class/et al. > > Alas, I came back home today, pressed the button. And the machine > still ran. > Could you please try this out and see if you see anything in your logs :) c. --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="power.c.diff" --- ./arch/parisc/kernel/power.c Tue Jul 2 15:17:59 2002 +++ ./arch/parisc/kernel/power.c Wed Jul 3 16:28:47 2002 @@ -55,6 +55,7 @@ #include #include +#define DEBUG #ifdef DEBUG # define DPRINTK(x) printk x @@ -123,6 +124,8 @@ /* check, give feedback and start shutdown after one second */ static void process_shutdown(void) { + DPRINTK((KERN_INFO "Processing shutodwn...\n")); + if (shutdown_timer == 0) DPRINTK((KERN_INFO "Shutdown requested...\n")); @@ -181,7 +184,12 @@ static void polling_tasklet_func(unsigned long soft_power_reg) { unsigned long current_status; - + +#ifdef DEBUG + /* CAO July 3, 2002 - Prove we are using gecko tasklet */ + BUG(); +#endif + if (!pwrsw_enabled) return; @@ -362,6 +370,8 @@ power_remove_procfs(); power_tasklet.func = NULL; pdc_soft_power_button(0); + + printk(KERN_INFO "Soft power switch disabled.\n"); } module_init(power_init); --+QahgC5+KEYLbs62--