| View previous topic :: View next topic |
| Author |
Message |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Sun Apr 15, 2007 4:45 pm Post subject: [solved] shutdown (ish) |
|
|
I installed gentoo yesterday and all went pretty well, except for when i came to shutting it down or rebooting.
after typing reboot or shutdown it goes through an shuts down all the processes fine, but then just say "INIT: no more processes in this runlevel" or something to that effect, and sits there without actually rebooting or turning off.
I've double checked that i compiled the kernel with ACPI and i have
i've tried typing halt -fp and it does power off
I've installed gentoo in the past and never had this problem.
I've got a fujitsu-siemens amilo D 7830 laptop,
I suspect it is some kind of problem with init, but i don't know what i've done to break it
any advice?
Alex
Last edited by alex_uk_86 on Tue Apr 17, 2007 3:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
PanzerKanzler Apprentice


Joined: 04 Dec 2005 Posts: 222 Location: Downgraded to Pimlico, London
|
Posted: Sun Apr 15, 2007 4:54 pm Post subject: |
|
|
I have had similar problems on a few machines, but I don't know the cause. Rebooting can often be done by ctrl-alt-del when the shutdown command has different ideas about what is to be done. _________________ If you've got nothing nice to say, you're probably not alone... |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Sun Apr 15, 2007 5:34 pm Post subject: |
|
|
| ctl-alt-del don't work. If i pressed it when its shutting down it has no effect, and if i press it to cause a restart it still has the same problem. |
|
| Back to top |
|
 |
PanzerKanzler Apprentice


Joined: 04 Dec 2005 Posts: 222 Location: Downgraded to Pimlico, London
|
Posted: Sun Apr 15, 2007 5:39 pm Post subject: |
|
|
Hmm.. Then I would take a look in /var/log/messages to see if APM/ACPI is doing something strange. What happens if you disable APM/ACPI? _________________ If you've got nothing nice to say, you're probably not alone... |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Sun Apr 15, 2007 5:51 pm Post subject: |
|
|
no messages about acpi or apm(which is off anyway btw)
i've recompiled the kernel a couple time with different selections on acpi, but nothings had any effect. I don't think thats the problem anyway because halt -hp DOES work. This leads me to suspect there is a problem in the execution of the script between finishing with shutting down processes and acutally powering off the computer.
My main problem is i don't have sufficient understanding of these scripts.
Thanks for the suggestions though  |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5150 Location: Hamilton, Ontario
|
Posted: Sun Apr 15, 2007 7:03 pm Post subject: |
|
|
i think the init stuff is a part of baselayout... i would try re-emerging it and doing an etc-update.
cheers _________________ bunder @ freenode | bunhax - tame your SMP!
gentoo shells | the remains of UFGO |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Mon Apr 16, 2007 6:45 am Post subject: |
|
|
Right. I've just tried re-emerging my baselayout, and env-updated, but thats not worked, it still come up with exactly the thing. It just gets to the point with "INIT: no processes left in the runlevel" and sits there.
Is there something it is supposed to do between this point and actually turning the computer off?
Thanks for the suggestion  |
|
| Back to top |
|
 |
PanzerKanzler Apprentice


Joined: 04 Dec 2005 Posts: 222 Location: Downgraded to Pimlico, London
|
Posted: Mon Apr 16, 2007 9:52 am Post subject: |
|
|
Do you get this problem when you try to shut down from the livecd? If no, then it definitely is a configuration thing, and you can then look at what settings the livecd has (for instance lsmod etc). Unfortunately I feel I am not able to help you very much  _________________ If you've got nothing nice to say, you're probably not alone... |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Mon Apr 16, 2007 10:08 am Post subject: |
|
|
hummm, it does reboot and shutdown correctly when booted from the CD.
The problem with looking at the CD's settings is that i need to know where to start looking. This is very annoying. |
|
| Back to top |
|
 |
PanzerKanzler Apprentice


Joined: 04 Dec 2005 Posts: 222 Location: Downgraded to Pimlico, London
|
Posted: Mon Apr 16, 2007 12:23 pm Post subject: |
|
|
Unfortunately I have no such CD here so I can't verify this, but I think the config used for the livecd resides in /proc/config.gz _________________ If you've got nothing nice to say, you're probably not alone... |
|
| Back to top |
|
 |
bexamous2 Tux's lil' helper

Joined: 18 Nov 2005 Posts: 80
|
Posted: Mon Apr 16, 2007 7:14 pm Post subject: |
|
|
Anyone have any idea why shutdown fails so often? I've been getting alot of people asking me about this and its also a problem I've seen before. 'init 0' or 'init 6' work fine, doing poweroff or reboot works, but the 'shutdown now' or 'shutdown -h now' commands don't work.
This isn't just a Gentoo thing, although I had a Gentoo system with this problem.
I don't understand what the shutdown command is doing differently that causes it to not work with so many setups. |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Tue Apr 17, 2007 7:41 am Post subject: |
|
|
for me the power off and reboot commands arn't working either. The only thing that does actually work for powering off the machine is halt -fp, which skips changing the run level to 0/6 and just cuts the power (so it was good as a test to see if it could cut the power, but not for every day thankyou very much )
and panzerKanxler, i couldn't see anything particularly special in the /proc/config.gz, but i'll look again when i've got time. |
|
| Back to top |
|
 |
alex_uk_86 n00b

Joined: 15 Apr 2007 Posts: 8 Location: UK
|
Posted: Tue Apr 17, 2007 3:44 pm Post subject: |
|
|
Hi guys.
I seem to have solved it.
I got very frustrated with it this morning so i decided to start over with it. That wasn't the ideal solution and as it happens, didn't work!
BUT ... when i was running through the handbook installing, i emerged the baselayout as it says to avoid the problem with not recognising dhcp. When i was doing this i noticed that it updated sysVinit, while it was doing this i noticed halt.sh and its friends run up the screen and thought "ah!".
Anyway, when i was finished installed, i booted my fresh gentoo install and tried "reboot", and it did the same problem it has before. But i re-emerged sysvinit, env-updated and tried "reboot" and it worked
HURRAY FOR MY BRAIN! |
|
| Back to top |
|
 |
|