Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-15-2004, 08:53 PM   #1
Registered: May 2004
Posts: 75

Rep: Reputation: 15
Question 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?
Old 05-15-2004, 10:44 PM   #2
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
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)
Old 05-15-2004, 11:38 PM   #3
LQ Guru
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
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'
Old 05-15-2004, 11:44 PM   #4
LQ Newbie
Registered: Jan 2004
Distribution: gentoo
Posts: 17

Rep: Reputation: 0
You have to enable acpi in you're kernel, or initiate the appropriate modules.
Old 05-16-2004, 01:03 PM   #5
Registered: May 2004
Posts: 75

Original Poster
Rep: Reputation: 15
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?
Old 05-16-2004, 03:39 PM   #6
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78


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
Howto force fsck after dirty shutdown? anti_trend Linux - General 1 10-15-2004 07:34 PM
script to shutdown system - howto matthewchin Linux - General 5 07-12-2004 12:11 AM
howto debug X crash from kdm shutdown? johnpipe Linux - General 0 06-11-2004 01:27 AM
howto detect shutdown in progress? gw1500se Mandriva 0 04-25-2004 02:00 PM
Gnome 1.4: howto set ATX-shutdown/restart support in the "logout"-dialog? Debianewb Linux - Software 1 11-08-2002 08:36 AM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration