LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-12-2005, 09:11 AM   #1
f430
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
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
 
Old 12-12-2005, 09:30 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
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.

..amit..
 
Old 12-17-2005, 01:12 AM   #3
f430
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 12-17-2005, 01:25 AM   #4
llmmix
Member
 
Registered: Jun 2005
Posts: 73

Rep: Reputation: 15
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 > │
└─────────────────────────────────────────────────────────────────────────────────────────────────── ─────────────────────────────────────────────────────┘
 
Old 12-17-2005, 01:26 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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).
 
Old 12-17-2005, 02:54 AM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 49
APM usually does the trick

or ACPI; YMMV
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 11:33 AM
RH "null" beta system freezes right after printing "INIT" markus1982 Linux - Hardware 0 09-09-2002 03:31 PM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration