Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] shutdown (ish)
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Sun Apr 15, 2007 4:45 pm    Post subject: [solved] shutdown (ish) Reply with quote

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
View user's profile Send private message
PanzerKanzler
Apprentice
Apprentice


Joined: 04 Dec 2005
Posts: 222
Location: Downgraded to Pimlico, London

PostPosted: Sun Apr 15, 2007 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Sun Apr 15, 2007 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
PanzerKanzler
Apprentice
Apprentice


Joined: 04 Dec 2005
Posts: 222
Location: Downgraded to Pimlico, London

PostPosted: Sun Apr 15, 2007 5:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Sun Apr 15, 2007 5:51 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5150
Location: Hamilton, Ontario

PostPosted: Sun Apr 15, 2007 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Mon Apr 16, 2007 6:45 am    Post subject: Reply with quote

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
View user's profile Send private message
PanzerKanzler
Apprentice
Apprentice


Joined: 04 Dec 2005
Posts: 222
Location: Downgraded to Pimlico, London

PostPosted: Mon Apr 16, 2007 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Mon Apr 16, 2007 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
PanzerKanzler
Apprentice
Apprentice


Joined: 04 Dec 2005
Posts: 222
Location: Downgraded to Pimlico, London

PostPosted: Mon Apr 16, 2007 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
bexamous2
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2005
Posts: 80

PostPosted: Mon Apr 16, 2007 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Tue Apr 17, 2007 7:41 am    Post subject: Reply with quote

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 :wink: )

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
View user's profile Send private message
alex_uk_86
n00b
n00b


Joined: 15 Apr 2007
Posts: 8
Location: UK

PostPosted: Tue Apr 17, 2007 3:44 pm    Post subject: Reply with quote

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 :lol:

HURRAY FOR MY BRAIN!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum