Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

Power Off on Halt (fwd)

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


rmps at joel

Mar 17, 1998, 6:47 AM

Post #1 of 13 (52 views)
Permalink
Power Off on Halt (fwd)

---------- Forwarded message ----------
Date: Tue, 17 Mar 1998 13:09:35 +0000 (GMT)
From: Ricardo Manuel Pacheco Salgado <rmps [at] joel>
To: majordomo [at] vger
Subject: Power Off on Halt
I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
new features of this kernel... But, there is a but.
With the previous kernel version my system would POWER OFF on HALT, but it
no longer does that. I compiled the support for it, but it doesn't seem to
work... Any Ideas???
-
Ricardo Salgado
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


arcangel at CS

Mar 17, 1998, 7:20 AM

Post #2 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
> I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> new features of this kernel... But, there is a but.
> With the previous kernel version my system would POWER OFF on HALT, but it
> no longer does that. I compiled the support for it, but it doesn't seem to
> work... Any Ideas???
Are you sure that you are running poweroff and not halt?
Andrea[s] Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


jem at vistacom

Mar 17, 1998, 11:40 AM

Post #3 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
> On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
> > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> > new features of this kernel... But, there is a but.
> > With the previous kernel version my system would POWER OFF on HALT, but it
> > no longer does that. I compiled the support for it, but it doesn't seem to
> > work... Any Ideas???
> Are you sure that you are running poweroff and not halt?
I have the same problem. The machine (an ATX PPro, VS440FX)
does not power off, although it did it before. It just prints
"System halted." I have tried /sbin/halt -p and
/sbin/poweroff.
This started happening when I compiled a new init (2.72) with
glibc (2.0.6), so the cause could be either init or glibc. (I
suspect glibc.) The kernel is compiled with "APM Power
Management BIOS Support" and "Power off on shutdown".
Has anybody else seen this problem?
--
Johan Myreen
jem [at] iki
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


linux at linux

Mar 17, 1998, 12:43 PM

Post #4 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, [ISO-8859-1] Johan Myréen wrote:
> I have the same problem. The machine (an ATX PPro, VS440FX)
> does not power off, although it did it before. It just prints
> "System halted." I have tried /sbin/halt -p and
> /sbin/poweroff.
>
> This started happening when I compiled a new init (2.72) with
> glibc (2.0.6), so the cause could be either init or glibc. (I
> suspect glibc.)
Can't be glibc...
I'm having the same problem on a ATX K6 running sysvinit 2.73 and glibc
2.0.7 as well as a Medion Notebook running sysvinit 2.73 and libc 5.4.44.
LLaP
bero
-- bero [at] bero-online - ICQ/UIN 6545964 - http://www.star-trek.ml.org/ --
"Nobody will ever need more than 640k RAM!"
-- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."
-- Bill Gates, 1996
"Nobody will ever need Windows 95."
-- logical conclusion
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


mjbedy at mtu

Mar 17, 1998, 1:57 PM

Post #5 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

I had the same problem with libc5.
- Mike
On Tue, 17 Mar 1998, [ISO-8859-1] Johan Myréen wrote:
->On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
->> On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
->
->> > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
->> > new features of this kernel... But, there is a but.
->> > With the previous kernel version my system would POWER OFF on HALT, but it
->> > no longer does that. I compiled the support for it, but it doesn't seem to
->> > work... Any Ideas???
->
->> Are you sure that you are running poweroff and not halt?
->
->I have the same problem. The machine (an ATX PPro, VS440FX)
->does not power off, although it did it before. It just prints
->"System halted." I have tried /sbin/halt -p and
->/sbin/poweroff.
->
->This started happening when I compiled a new init (2.72) with
->glibc (2.0.6), so the cause could be either init or glibc. (I
->suspect glibc.) The kernel is compiled with "APM Power
->Management BIOS Support" and "Power off on shutdown".
->
->Has anybody else seen this problem?
->
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


pavel at elf

Mar 17, 1998, 2:12 PM

Post #6 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

> On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
> > On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
>
> > > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> > > new features of this kernel... But, there is a but.
> > > With the previous kernel version my system would POWER OFF on HALT, but it
> > > no longer does that. I compiled the support for it, but it doesn't seem to
> > > work... Any Ideas???
>
> > Are you sure that you are running poweroff and not halt?
>
> I have the same problem. The machine (an ATX PPro, VS440FX)
> does not power off, although it did it before. It just prints
> "System halted." I have tried /sbin/halt -p and
> /sbin/poweroff.
Read what Andrea wrote. Quote from kernel:
case LINUX_REBOOT_CMD_HALT:
notifier_call_chain(&reboot_notifier_list, SYS_HALT,
NULL);
printk(KERN_EMERG "System halted.\n");
machine_halt();
do_exit(0);
break;
case LINUX_REBOOT_CMD_POWER_OFF:
notifier_call_chain(&reboot_notifier_list,
SYS_POWER_OFF, NULL);
printk(KERN_EMERG "Power down.\n");
machine_power_off();
do_exit(0);
break;
So if you see 'system halted' message, you did not ask system to
powerdown. Fix your userland.
(Or, replace machine_halt() with machine_power_off() :-)
Pavel
--
I'm really pavel [at] atrey Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


rmps at joel

Mar 17, 1998, 3:11 PM

Post #7 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
> On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
>
> > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> > new features of this kernel... But, there is a but.
> > With the previous kernel version my system would POWER OFF on HALT, but it
> > no longer does that. I compiled the support for it, but it doesn't seem to
> > work... Any Ideas???
>
> Are you sure that you are running poweroff and not halt?
>
Halt should work!... It did before... Any way, I'm using Slackware 3.4 and
it doesn't have poweroff, just halt...
Just for the record, I'm using a K6 on a ASUS TX97-X board, with an ATX
case...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


vahakang at cs

Mar 17, 1998, 4:32 PM

Post #8 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Johan Myréen wrote:
> I have the same problem. The machine (an ATX PPro, VS440FX)
> does not power off, although it did it before. It just prints
> "System halted." I have tried /sbin/halt -p and
> /sbin/poweroff.
>
> This started happening when I compiled a new init (2.72) with
> glibc (2.0.6), so the cause could be either init or glibc. (I
> suspect glibc.) The kernel is compiled with "APM Power
> Management BIOS Support" and "Power off on shutdown".
>
> Has anybody else seen this problem?
Yes, I used to have problems too, but saw a "fix" for it on linux-kernel
some time ago. In the file kernel/sys.c there is the function
sys_reboot(), which needs to be "prepared" thusly:
--- /usr/src/linux/kernel/sys.c Sun Mar 15 14:10:17 1998
+++ /usr/src/linux-2.1.88/kernel/sys.c Mon Feb 23 01:31:07 1998
@@ -199,6 +199,7 @@
case LINUX_REBOOT_CMD_HALT:
notifier_call_chain(&reboot_notifier_list, SYS_HALT,
NULL);
printk(KERN_EMERG "System halted.\n");
+ machine_power_off();
machine_halt();
do_exit(0);
break;
(use --ignore-whitespace as i'm using cut'n'paste... if you _really_ want
this patch, i won't recommend on using it)
As you can see this is crude and certainly the wrong way of doing this
since it eliminates the possibility to halt the machine. I can live with
that, though :) I'm using AL440LX, glibc and sysvinit 2.73.
I took a fast look on halt.c (in sysvinit 2.74 package) but couldn't see
why it would fail... It even has a include file of it's own which has
#define BMAGIC_POWEROFF 0x4321FEDC
which matches the definition in include/linux/reboot.h. Where's the
problem?
>
> --
> Johan Myreen
> jem [at] iki
>
Taneli <vahakang [at] cs>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


arcangeli at mbox

Mar 17, 1998, 6:14 PM

Post #9 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
>Halt should work!... It did before... Any way, I'm using Slackware 3.4 and
>it doesn't have poweroff, just halt...
Now I think you need poweroff:
andrea [at] drago:~/devel/dcex$ dpkg -S poweroff
sysvinit: /sbin/poweroff
sysvinit: /usr/man/man8/poweroff.8.gz
Take a new sysvinit source for example from the debian site:
ftp://ftp.debian.org/debian/hamm/hamm/source/base/sysvinit*.orig.tar.gz
To force a poweroff run:
poweroff -d -f -i
Andrea[s] Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


robbe at orcus

Mar 18, 1998, 2:49 AM

Post #10 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

Hi,
>>>>> On Tue, 17 Mar 1998 20:43:14 +0100 (CET)
>>>>> Bernhard Rosenkraenzer <linux [at] linux> said:
>> This started happening when I compiled a new init (2.72) with
>> glibc (2.0.6), so the cause could be either init or glibc. (I
>> suspect glibc.)
Bernhard> Can't be glibc... I'm having the same problem on a ATX K6
Bernhard> running sysvinit 2.73 and glibc
Bernhard> 2.0.7 as well as a Medion Notebook running sysvinit 2.73
Bernhard> and libc 5.4.44.
You're all sure, that you use UP kernels?
Robbe
--
Robert Bihlmeyer reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe [at] orcus> <http://stud2.tuwien.ac.at/~e9426626/sig.html>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


mreckt at wurzelausix

Mar 18, 1998, 2:51 AM

Post #11 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

Johan Myréen <jem [at] vistacom> writes:
> On Tue, 17 Mar 1998, Andrea Arcangeli wrote:
> > On Tue, 17 Mar 1998, Ricardo Manuel Pacheco Salgado wrote:
>
> > > I've just upgraded to 2.1.89 from 2.0.34, and I'm pretty amazed with the
> > > new features of this kernel... But, there is a but.
> > > With the previous kernel version my system would POWER OFF on HALT, but it
> > > no longer does that. I compiled the support for it, but it doesn't seem to
> > > work... Any Ideas???
>
> I have the same problem. The machine (an ATX PPro, VS440FX)
> does not power off, although it did it before. It just prints
> "System halted." I have tried /sbin/halt -p and
> /sbin/poweroff.
>
I had the same problem (you guessed :-) with a 2.1.71 kernel. Solution
(in my case): There´s a #define SMP (or is ist __SMP__?) in the
Makefile, but apm doesn´t work with SMP. Simply comment it out.
> This started happening when I compiled a new init (2.72) with
> glibc (2.0.6), so the cause could be either init or glibc. (I
> suspect glibc.) The kernel is compiled with "APM Power
> Management BIOS Support" and "Power off on shutdown".
>
No new kernel? Have a look at your boot messages. Maybe it shows
somewhere "No APM support for SMP, APM support disabled".
Martin.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


jb at k2

Mar 18, 1998, 3:11 AM

Post #12 of 13 (49 views)
Permalink
Re: Power Off on Halt (fwd) [In reply to]

On Tue, 17 Mar 1998, Johan Myréen wrote:
> This started happening when I compiled a new init (2.72) with
> glibc (2.0.6), so the cause could be either init or glibc. (I
> suspect glibc.) The kernel is compiled with "APM Power
> Management BIOS Support" and "Power off on shutdown".
>
> Has anybody else seen this problem?
I upgraded 2.0.32 -> 2.1.84 about a while ago and to 2.1.89 recently, and
experience the same problem. Software config is same as above and neither
halt nor poweroff does a poweroff (only message "System halted.").
Weird.
Hardware: P166MMX on Jet v.5TXA ATX m/b with i430TX chipset, 64 MB SDRAM.
Jakob
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger


manolow at step

Mar 18, 1998, 5:05 AM

Post #13 of 13 (49 views)
Permalink
Re: bug with tcp 2.1.90-pre3 + minitcp-patch (sendmail) [In reply to]

On 18-Mar-98 David S. Miller wrote:
> Date: Mon, 16 Mar 1998 23:33:54 -0000 (WET)
> From: "Manuel J. Galan" <manolow [at] step>
>
> Now sendmail gets stalled...
>
> tcpdump included...
>
> Can you reproduce this in the real 2.1.90? If so, send a new
> tcpdump. Thanks.
>
> Later,
> David S. Miller
> davem [at] dm
Well 2.1.90 behaves well...
--
Manuel J. Galan
manolow [at] step
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.