DEBIAN 5.1 : wont shutdown

Soldato
Joined
18 Oct 2002
Posts
10,475
Location
Behind you... Naked!
Ok, recently moved to DEBIAN, loving it even though Im having lots of hiccups with it.

Right now, my next hurdle is simply getting it to shutdown... Its just not even trying to.

Quite honestly , I would not know where to start???

I try the CMD Line arg too :-

shutdown -h now

I suppose I could try sending the output to a file?

shutdown -h now > problem.txt

But the screen only prints one line itself anyway?

Any clues in the mean time?
 
What exactly happens when you do shutdown -h now?

Can you copy'n'paste the command output?

Using > will only redirect console output, so not much use if you're seeing that anyway. Checked in /var/log/syslog*?

This is a long shot (having never used Debian on a workstation, but I wouldn't think this was necessary), but tried sudo shutdown -h now?
 
i just do
shutdown -t now
to shutdown now xD

what does -h do? never used it

Hmmm - you've made me doubt myself now! The -h switch tells it to halt, i.e. kill anything that's running... but then 'now' does need to be qualified by -t... or does it...

/me scratches non-existent beard


Edit:

Just checked:

http://www.debian-administration.org/articles/89

shutdown -h now should work - try poweroff aswell (though I thought that was an Ubuntu thing - obviously not! Every day's a school day :))

 
Last edited:
Online MAN Page for you guys learning i'm on Windows At the moment and VMWare isnt running

but to your question, i'm not sure, but try it anyway?
i don't understand is why anyone would want to halt after shutdown... it halts after shutdown anyway because there is nothing more to shutdown cos its not turned on xD

if you wanna just log out - CTRL+Shift+[Backspace]
win - i know its not what you're after but, i'm still puzzled myself
 
Shutdown is a command that does all shutdown/restart/logoff procedures.

-h means shutdown and halt.

The program must be run as root, and should really not be run with the desktop environment open.
 
the shutdown command is a very versatile one.

the -t is a timer

-h means to HALT as in powerdown... It can shut down all the processes and then do nothing actiually, the halt means to also turn off

-r means to reboot

-n means now or really quickly shutdown ASAP!


--

Ok, back to the question...

I have done it as user and root

sudo shutdown -h now

they do the same thing.

Ok, this is what happens....

I open a Terminal while on the desktop right, and I type in

shutdown -h now

the desktop goes away instantly, and I get dropped to the CLI where is displays the startup messages, these messages I wont put here but I can do if needed, but the last line is:-

Starting periodic command scheduler: crond.
Checking Battery state...
/dev/hda
Setting Advanced Power Management level to 0xfe (254)
.

There are then 2 balnk lines and then

Debian GNU/Linux 5.0 debian tty1

debian login: acpid: exiting

And thats it... Its hung there and thats all it has ever done.

It does this if I manually type shutdown, or select shutdown from the desktop, or if I press the power button and select shutdown from the dialog box that comes up!!!

It also wont hibernate or suspend either if thats any help

However, it will reboot with the shutdown command...

shutdown -r now

It gets to this line

debian login: acpid: exiting

It also displays somehting with some numbers starting with 106.somethign but its too quick to let me see

So, any clues?

I notice, but have always ignored as of late, that Distros often offer you the NOACPI arguement during install... Debian never offered me this so should I have done this during the install?

Why? No other distro needed it since my old P1 days when I first got hold of Mandrake 5

--

When it starts up, it never moans that the Laptop has not shutdown properly, it starts up just fine... Its just bloody irritating.
 
Hummmm moring, just a quick thought (i have an exam today so i cant really help till later on) but i susspect you need to do "apt-get acpid" and see if debian either a. has acpid installed propperly or b. if it'll help (as it sort of sounds like that didnt come down automatically as a main part of the system).

Other than that, it sort of looks like debian is putting it into the wrong power state (ie some sort of mesh between main power and battery power given the slightly weird output before your command line login)
 
Ah :)

Either you have APIC disabled within your BIOS, or as pingwing says your missing the relevant apicd packages. I've got a feeling there's more than just apicd though.

apt-cache search apic

Should give you a better idea of what you may be missing.
 
I bloody love this apt stuff... Much better than rpm

Anyway, an apt-get install acpid returns that I already have the latest version in.

and a search shows
libmodplug0c2
acpidump
gbemol
japitools
libmodplug-dev
vala-utils

And thats all.

Side note, but does that command list things installed? or available to instal?

I just done an anp-get install acpidump and thats both in that search list and it has gone in as if it was not.

it is though still in the list after being installed?
 
pfft. Real men use
Code:
init 0

LOL

I have already tried that...

Does the same... Leaves the laptop just hanging there with the

debian login: acpid: exiting

Message just like any other shutdown does.

Kind of showing that REAL MEN do the very same thing as everyone else!!
 
Nope.
Everything I know to try to get it to shutdown, simply fails.

The most success I have had,is to log out fully from the desktop.
That tells me more, but again, stops at the same place.

Had I been using my Desktop, then thats fine, but its the laptop and so I need the power management stuff to work obviously.

Its an Acer aspire 1682 For what its worth.
 
Back
Top Bottom