Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25
Date: Mon, 01 Dec 2014 18:40:37
Message-Id: 20141201184025.GA18146@solfire
In Reply to: Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 by Rich Freeman
1 Rich Freeman <rich0@g.o> [14-12-01 19:16]:
2 > On Mon, Dec 1, 2014 at 12:46 PM, <meino.cramer@×××.de> wrote:
3 > > What is the difference here?
4 > > Isn't it, that all shutdown applications only send some instructions
5 > > to the kernel and the kernel is the main actor in bringing the system
6 > > down?
7 > >
8 >
9 > About the only thing the kernel might have a role in is turning off
10 > the power. Almost all of the shutdown logic is in userspace and it
11 > isn't surprising that copying scripts between distros is going to
12 > cause issues since the whole service management component varies
13 > GREATLY across distros. Maybe if you're using systemd you could copy
14 > between distros since that is more standardized, but even then there
15 > can be differences.
16 >
17 > In a traditional sysvinit system usually shutting down is accomplished
18 > by changing runlevels, which immediately starts/stops anything in
19 > inittab (generally only gettys) and calls a script which does all the
20 > actual work.
21 >
22 > If the issue is that userspace shuts down fine but the system reboots
23 > instead of powering off that could be a couple of things which
24 > shouldn't be too hard to track down. An obvious question is whether
25 > the hardware even supports being powered off in the first place - this
26 > isn't an ATX motherboard. Powering off a system can sometimes be
27 > remarkably tricky depending on how standardized the platform is. I
28 > was reading an article on it a few years ago and I think linux
29 > actually implements several different mechanisms that get tried in
30 > series, with the final fallback being a halt without powering off.
31 >
32 > --
33 > Rich
34 >
35
36 Hi Rich,
37
38 AH! :) Thanks for the informations!
39
40 From what you say, it is a kernel problem, since the kernel
41 is the one who switches off the lights...
42
43 But even if I use the same kernel as used for the Debian system
44 it does not work...
45
46 May be shutdown says "power off the system" and the kernel understands
47 "reboot the system"?
48 I mean: In principle the kernel would be able to poweroff the system
49 but there are some communications difficulties with the guys from
50 userland? ;)
51
52 Best regards,
53 Meino

Replies

Subject Author
Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25 "Jc García" <jyo.garcia@×××××.com>