Gentoo Archives: gentoo-user

From: Richard Marz <Richard.marz@×××××××.net>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Shutdown -h now is not powering down system.
Date: Mon, 04 Jun 2007 01:21:29
Message-Id: 1180919725.17538.5.camel@localhost
In Reply to: RE: [gentoo-user] Shutdown -h now is not powering down system. by burlingk@cv63.navy.mil
1 halt -dp worked for me...never tried it before. Now, I did do a couple
2 of things. I upgraded my kernel to 2.6.20r8 and set the acpi=force
3 kernel parameter. I don't know whether the acpi=force paramenter fixed
4 the problem. I did see the gentoo shutdown.sh script (which you can view
5 at the bottom of this message) and it seems to call the halt command
6 with the options -dp. This means that before the same halt -dp was being
7 used and the system did not shutdown properly. Now I manually enter the
8 halt -dp command and it works flawlessly. So, maybe it was the kernel
9 upgrade or the acpi=force kernel parameter that is causing it to work.
10
11 # Copyright 1999-2006 Gentoo Foundation
12 # Distributed under the terms of the GNU General Public License v2
13
14 opts="-d"
15 [ "${INIT_HALT}" != "HALT" ] && opts="${opts}p" # here it is
16 [ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
17 [ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h"
18
19 /sbin/halt "${opts}"
20
21 # hmm, if the above failed, that's kind of odd ...
22 # so let's force a halt
23 /sbin/halt -f
24
25
26 On Fri, 2007-06-01 at 12:47 +0900, burlingk@×××××××××.mil wrote:
27 >
28 > > -----Original Message-----
29 > > From: Richard Marz [mailto:Richard.marz@×××××××.net]
30 > > Sent: Friday, June 01, 2007 11:40 AM
31 > > To: gentoo-user@l.g.o
32 > > Subject: Re: [gentoo-user] Shutdown -h now is not powering
33 > > down system.
34 > >
35 > >
36 > > No. But, I will try it now. I'll let you know if it works in
37 > > a few minutes because I'm downloading the latests kernel
38 > > sources. On Thu, 2007-05-31 at 23:30 -0300, Davi wrote:
39 > > > shutdown -h now -P
40 > >
41 > > --
42 > > gentoo-user@g.o mailing list
43 > >
44 >
45 > If shutodwn -h now -P doesn't work, try
46 > shutdown -P -h now
47 >
48 > I know that is just a matter of symantics, but a lot
49 > of programs want the "options" all in one spot. ^^;;
50 > Not sure about this one.
51 >
52
53 --
54 gentoo-user@g.o mailing list