LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Graceful shutdown.. howto? (http://www.linuxquestions.org/questions/linux-general-1/graceful-shutdown-howto-181896/)

rohan208 05-15-2004 07:53 PM

Graceful shutdown.. howto?
 
I want my box to be able to shut down gracefully when I hit the power button and not totally die. Something like windws.
What i mean is that when i hit hte power button on my computer, it should intitiate the shutdwn procedure in linux.. i think it would be like running system('shutdown') when a power button is pressed. But how do i intercept the power button press?
Anyideas?

AltF4 05-15-2004 09:44 PM

don't know what distro you are using and how old it is

suse 9.1 does this out of the box - you can configure the buttons in yast

other distros may need some tweaks to acpi config files (man acpid)

darin3200 05-15-2004 10:38 PM

I'm not sure how to do it so the shutdown procedure is run when the power button is pressed. You can shut down with 'shutdown -h now'

brassfish 05-15-2004 10:44 PM

You have to enable acpi in you're kernel, or initiate the appropriate modules.

rohan208 05-16-2004 12:03 PM

I am using RH9.. i tried man acpid but there was no man page available for it.. any other ideas?
What steps do i need to take to eneable acpi in my kernal? is there a link taht talks about it? What other modules i may need ot initiate?
Thx
Rohan

bulliver 05-16-2004 02:39 PM

http://www.cpqlinux.com/acpi-howto.html


All times are GMT -5. The time now is 11:39 PM.