LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Shutdown problem (https://www.linuxquestions.org/questions/debian-26/shutdown-problem-106111/)

tsitras 10-19-2003 08:53 PM

Shutdown problem
 
Hello there. Everytime that i type
shutdown -h 0
the process to shutdown the machine looks fine. At the end it says power down and stays there. it switches off only if i press once the power switch. Could someone tell how to fix that?So everytime that i type shutdown -h 0, to switch off by itself????

andrew001 10-19-2003 09:19 PM

You may need to compile APM or ACPI as a module into your kernel. Those are different methods of power management.

adz 10-19-2003 09:43 PM

You'll probably already have them compiled. Just to a modprobe apm. If that comes back with no errors add the line "apm" to the /etc/modules file. Then add the line `append "apm=on"` to your /etc/lilo.conf file. You'll have to reboot to activate it. There is a way to activate it without rebooting but I can't remember it. It's something like modprobe apm power_off=1 instead of the above command.

praveenk 10-20-2003 08:03 AM

Most modern BIOS are ACPI enabled. So ensure that ACPI support is compiled as module or in-built with the kernel.

tsitras 10-20-2003 08:28 AM

i tried the modprobe apm and the command it does not exist. it gives error. Any help?

Swampy 10-21-2003 07:38 AM

Recompiling my kernel sorted this problem out for me. If you have the time you'll find it's worth it, as you can cut out the bits of the kernel you don't need and keep the bits that you do (like the apm features)

A good reference to start with for recompiling your kernel is here:
http://www.osnews.com/story.php?news_id=2949

If you set up your new kernel using "make xconfig" There is a simple pointy-clicky interface that gives you lots of help and advice.

Give yourself a couple of hours to do the job. You can always save your configuration if you need a break.

adz 10-21-2003 08:31 AM

I tried posting earlier but got an error that this site has been giving me lately and then I forgot... Oops. Anyway, is it possible that you're not running the modprobe command as root? You have to be root to insert/remove anything to/from the kernel. If you don't already know, to become root, type su and then it will ask you for the root password.


All times are GMT -5. The time now is 05:09 AM.