LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   turn off after halt comand (https://www.linuxquestions.org/questions/linux-newbie-8/turn-off-after-halt-comand-469345/)

spank 07-31-2006 06:27 AM

turn off after halt comand
 
How can I make my computer turn off after i give the halt command? I think it is something related with enabling the ACPI function but i don't know how.

carambar 07-31-2006 07:14 AM

Yes, I believe you're right... and I think that it's something you need to have enabled in the BIOS, hopefully someone will be along who can confirm this shortly :)

spank 07-31-2006 07:22 AM

well it is enabled. when i had redhat on the same system with the same config it worked

raskin 07-31-2006 07:31 AM

did you check commands like shutdown (I don't remember arguments) and 'init 0' ?

spank 07-31-2006 07:32 AM

yes i did and it still waits for me to press the power button on the case

raskin 07-31-2006 08:22 AM

Did you try to
modprobe acpi
?

spank 07-31-2006 11:37 AM

Code:

root@marlboro[~/apache] # modprobe acpi
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.15-23-server/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device

nope... doesn't work

pwc101 07-31-2006 11:42 AM

I find that on my computer it's the apm module that needs to be enabled, as opposed to the acpi one. in slackware you need to uncomment the line in /etc/rc.d/rc.modules (if I remember rightly) which says /sbin/modprobe apm. reboot your machine, and next time you shutdown, it should completely turn off. it could be slightly different in red hat, although I'm sure the principle is roughly the same...

EDIT: maybe modprobe apm?

raskin 07-31-2006 11:52 AM

Well, I don't remember any wrong modprobe command which brings more havoc than reboot. And most of them just fail. Try.

spank 07-31-2006 12:20 PM

if i do a lsmod i get:
Code:

Module                  Size  Used by
apm                    23408  0
...

if i modprobe apm i don't get no message and if i halt it doesn't shutdown it still waits for me to touch that button :(

pwc101 07-31-2006 12:22 PM

might be worth checking in your BIOS settings to see if there's an apm option, to make sure that's enabled as i had to change that too.

of course, it could just be that apm isn't the solution...

spank 07-31-2006 12:25 PM

yes it is enabled. The last distro that i had on this pc was fedora core 3 and it worked just fine with halt, but then i didn't pay any atention on how it halts.

pwc101 07-31-2006 12:42 PM

ah, I've got no more ideas then. sorry :)

Lotharster 08-01-2006 04:49 AM

I recently had the same problem with ubuntu dapper (on a 5 years old computer). I added the line
Code:

apm power_off=1
to /etc/modules. Then it worked for me.

spank 08-01-2006 01:08 PM

now i've notice during boot time the following message:
Code:

ACPI: Unable to locate RDSP
It is related to my problem ?


All times are GMT -5. The time now is 06:20 AM.