LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-07-2007, 07:02 AM   #1
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Rep: Reputation: 30
Shutdown doesn't turn pc off - Debian Testing


Hi.
I have installed Debian ETCH here. When I run shutdown -h now my computer doesn't turn off automatically. Every time I get in the screen "power off called", but nothing happens.
I had the same problems a few years ago with debian, but I don't remember how I solved it.

Can anyone help me out?

Thanks.
 
Old 04-07-2007, 07:20 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Why would you issue the shutdown command from the commandline? If you have to use the cli, use the halt command. Make sure you issue the command as root!!
 
Old 04-07-2007, 02:06 PM   #3
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
Quote:
Why would you issue the shutdown command from the commandline?
Is there any problem doing that? Works the same way. But I have also tried to shutdown using: DESKTOP -> SHUTDOWN, but it didn't work.
Shutdown problems like this have history in linux already. I have seen many posts about this subject in the past.


Quote:
If you have to use the cli, use the halt command. Make sure you issue the command as root!!
I'll try halt then. thanks
 
Old 04-08-2007, 01:28 AM   #4
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
halt doesn't shutdown the computer completely either.
I have just tested it.
 
Old 04-08-2007, 01:34 AM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
First, make sure that you actually have Power Management enabled on your bios. Then, try to load the apm module:

modprobe apm
shutdown -h now

I hope this works.

Regards!
 
Old 04-08-2007, 01:53 AM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
This isn't perchance an HP laptop is it?
 
Old 04-08-2007, 06:04 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
When my Mandriva didn't install kdm, I had to use command: #/sbin/shutdown -h now , for shutdown, and #/sbin/shutdown -r now , to re-start, doing it any other way would result in an improper shutdown and a file system check followed by a re-boot upon next boot.
You may not have acpi enabled.
 
Old 04-08-2007, 02:31 PM   #8
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
How can I know if I have acpi enabled or not?
 
Old 04-08-2007, 04:37 PM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Just woke up.

Good question
I mentioned this because my Mandrake would not enable acpi on a fresh install and it would go through it's kill processes, but would not shut the hardware end down. So through the Mandrake Control Center in the "boot" section was a radio button for "enable acpi" was not set, by setting it to enable acpi would get it to shutdown the hardware power supply also.
I did a base minimal installation of Etch, and may not have access to such a feature because I possibly did not install correct software to give access to this sort of configuration. So far, because I installed KDE and not Gnome, I go to main menu/system/ksysguard performance monitor, and acpi is listed as one of the processes running, there's also a "kill" switch which would allow me to kill it in the "process table" section. Maybe it's through here in Etch that you take care of acpi, I doubt it though. Also, it shows up as one of the items installed in Synaptic.
 
Old 04-08-2007, 05:25 PM   #10
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
Quote:
Mega Man X
try to load the apm module:

modprobe apm
shutdown -h now

modprobe apm
FATAL: Error inserting apm (/lib/modules/2.6.18-4-686/kernel/arch/i386/kernel/apm.ko): No such device
Sorry, sorry sorry... I don't know why, but I didn't see your post so far. I have answered posts below yours, but I didn't see yours..

I did what you've said, and I got:
Quote:
modprobe apm
FATAL: Error inserting apm (/lib/modules/2.6.18-4-686/kernel/arch/i386/kernel/apm.ko): No such device
Quote:
rickh
This isn't perchance an HP laptop is it?
Sorry, sorry sorry. I didn't see your post too.
No. I'm not using a notebook. P4 EM64T, asus p5gd2-x and geforce 6800GS, with Debian ETCH x386 installed (I didn't install debian amd64).



Quote:
Junior Hacker
I go to main menu/system/ksysguard performance monitor, and acpi is listed as one of the processes running
It's not listed as my process, but when I set the option to show me ALL PROCESSES, I can see acpid (sleeping). So, this means it's loaded, and it also means that my problem with shutdown isn't because acpid isn't loaded. It's loaded. The problem must be because of something else.
 
Old 04-08-2007, 05:36 PM   #11
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
I have just found a post here about the same problem. They say they solved this problem by adding "apm power_off=1" in /etc/modules. That doesn't work for me, because Debian doesn't have this file /etc/modules.

http://www.linuxquestions.org/questi...light=shutdown
 
Old 04-08-2007, 06:31 PM   #12
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Some computers cannot use acpi, not sure what determines this. Also, in Synaptic is a package called "apmd", the advanced power management daemon. Maybe you need to install it. I would, just for the sake of trying, kill acpid in system services and shutdown the computer to see if it makes a difference. Then maybe install apm and see what happens with and without killing and/or removing acpid.
 
Old 04-08-2007, 07:10 PM   #13
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
Hi.
I have checked my Bios, and there I have acpi 2.0 enabled.
I have installed apmd as you requested. I have just noticed that apm was installed here too. So, now I have apm and apmd installed.

When I typed shutdown - h now, I got again, the same message something like: acpi power off called, in the end of all those lines.

I have also typed apm and apmd in my promp and I got:
Quote:
~$ apm
No APM support in kernel
apmd
No APM support in kernel
uname -a
Linux meu-cpu-debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
 
Old 04-08-2007, 07:20 PM   #14
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Looking thru the output of ...

$ dmesg | grep ACPI

...may give some clue of what's happening.
 
Old 07-25-2007, 01:59 AM   #15
ElChef
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
That worked for me:
Remove the acpid package:
Code:
# apt-get remove acpid
And install the apmd package:
Code:
# apt-get install apmd
Restart the computer!

And now you can halt it!

Code:
# halt
(yes i do!)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
turn off linux /shutdown computer xprometeus Linux - General 9 09-25-2010 02:18 PM
Compaq doesn't turn off after shutdown jhwhite Linux - Laptop and Netbook 17 11-03-2005 08:26 PM
How to turn off verbose on shutdown Khepri Linux - Newbie 4 08-11-2005 06:08 AM
Setup as getting debian testing files from ftp - will it stay with testing BrianHenderson Debian 2 09-02-2004 06:06 PM
Mandrake 9.2 does not turn off power at shutdown dancro Mandriva 12 03-19-2004 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration