LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Computer is not turning off after "init 0" or "shutdown -h now" (https://www.linuxquestions.org/questions/linux-general-1/computer-is-not-turning-off-after-init-0-or-shutdown-h-now-391894/)

f430 12-12-2005 09:11 AM

Computer is not turning off after "init 0" or "shutdown -h now"
 
Hi,
This is my 2nd posting.
I have RHEL 4 installed on my computer, and whenever I give the command shutdown -h now or init 0, I am getting the kernel messages that everything is turned off and halt and acpi poweroff function called, and the system is not getting powered off. need a solution to this.

f430

amitsharma_26 12-12-2005 09:30 AM

From tdlp.org
http://www.tldp.org/LDP/LG/issue76/issue76.html
----------------------------------------------------------------------------------------------------------

Q: Is there a way to have Linux automatically power off my machine ... I recently discovered that while my machine was off if I double clicked the mouse, (any where) the machine would automatically boot ... I'm using the Soyo Dragon+ motherboard.

(!) [K.-H.] Yes. You need apm support in your kernel. In 2.2.x times there were not too many options so it worked or not depending on your BIOS. Since 2.4.late (like 16) there are lots of apm options to make it work on various boards and BIOS versions.

(!) [Matthias] That's no Linux problem at all. Your Linux system shuts down the machine and powers it off, the same way as Windows does, right? And you can go away for 2 hours, and no fan spins and no harddrive nor video card is active. But you double click with your mouse and the computer boots. That's a BIOS feature. Power On on Mouse event, or something like that. You have to disable it in the BIOS -> Power Management menu.

The ATX boards have this option, they are not completely off if powered down, so they can use features like Power on on mouse click or power on on keyboard event or Wake-On-LAN. Maybe your PC has a power switch on the back, near the power cord. It completely powers off the PC (same as if you would pull the plug ...)

(!) [Heather] There was however a recent tidbit on debian-laptops, that some APM will not work - and therefore not properly turn off the machine even after shutdown - with APIC support turned on. This makes sense as that's some nice features from the SMP world for uniprocessors (if I understood the kernel source help notes; y'all are free to correct me). This seriously affects laptop users, who don't want a reboot sequence to pause and waste extra juice if they had to change kernel options.

Many laptops no longer properly support APM, since they don't bother to even try debugging that it works (since the Borg from Redmond have very nice ACPI support)... and I would not be terribly surprised if some desktop motherboards are the same. Reports are that ACPI for Linux is actually usable for menial day to day use like turning the whole box off properly, and suspend/resume to some mild degree of usability. But a lot of work still needs to be done for drivers to support different sleep levels.

(?) Specifically, I'm wondering if there is some package that I can install so that when I do `shutdown -h now` the machine could just turn it self off.

(!) [Matthias] Dive into the BIOS options ;-)

(!) [K.-H.] You could simply try:

"halt -p" or "poweroff" instead of the shutdown command. That will call shutdown anyway. Works on my laptop (kernel 2.2.18 and 2.4.4, 2.4.16 tested).
----------------------------------------------------------------------------------------------------------

I've nothing to do with any of these solutions. Infact i know how to use GOOGLE. :p

..amit..

f430 12-17-2005 01:12 AM

hi amit,
but with the same bios options rhel 3.0 is uning off my system, also windows is turning off my system .. why
thank you

llmmix 12-17-2005 01:25 AM

did you check the ACPI modules enabled?

here is mine.

Quote:

Linux Kernel v2.6.15-rc5-git6 Configuration
──────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────
┌────────────────────────────────────────────── ACPI (Advanced Configuration and Power Interface) Support ───────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes │
│ features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend:[*] built-in [ ] excluded <M> module < > module capable │
│ │
│ │
│ ┌─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────┐ │
│ │[*] ACPI Support │ │
│ │[*] Sleep States │ │
│ │ [ ] /proc/acpi/sleep (deprecated) │ │
│ │ <M> AC Adapter │ │
│ │ <M> Battery │ │
│ │ <M> Button │ │
│ │ <M> Video │ │
│ │ <M> Generic Hotkey (EXPERIMENTAL) │ │
│ │ <M> Fan │ │
│ │ <M> Processor │ │
│ │ <M> Thermal Zone │ │
│ │ <M> ASUS/Medion Laptop Extras │ │
│ │ <M> IBM ThinkPad Laptop Extras │ │
│ │ <M> Toshiba Laptop Extras │ │
│ │ (0) Disable ACPI for systems before Jan 1st this year │ │
│ │ [ ] Debug Statements │ │
│ │[*] Power Management Timer Support │ │
│ │ < > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL) │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ └─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > │
└─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────┘


Quote:

Linux Kernel v2.6.15-rc5-git6 Configuration
──────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────────
┌───────────────────────────────────────────────────────── Power management options (ACPI, APM) ─────────────────────────────────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes │
│ features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend:[*] built-in [ ] excluded <M> module < > module capable │
│ │
│ │
│ ┌─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────┐ │
│ │ --- Power Management support │ │
│ │[*] Legacy Power Management API │ │
│ │ [ ] Power Management Debug Support │ │
│ │ [ ] Software Suspend │ │
│ │ ACPI (Advanced Configuration and Power Interface) Support ---> │ │
│ │ APM (Advanced Power Management) BIOS Support ---> │ │
│ │ CPU Frequency scaling ---> │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ └─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > │
└─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────┘

Nylex 12-17-2005 01:26 AM

Windows and Linux aren't the same :/.

You might want to look into APM, as that first answer suggests. That works for me, at least (Slackware 10.1, 2.4.29).

Poetics 12-17-2005 02:54 AM

APM usually does the trick

or ACPI; YMMV


All times are GMT -5. The time now is 12:06 PM.