LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-15-2004, 07:53 PM   #1
rohan208
Member
 
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?
Anyideas?
 
Old 05-15-2004, 09:44 PM   #2
AltF4
Member
 
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, 10:38 PM   #3
darin3200
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, 10:44 PM   #4
brassfish
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, 12:03 PM   #5
rohan208
Member
 
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?
Thx
Rohan
 
Old 05-16-2004, 02:39 PM   #6
bulliver
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: 77
http://www.cpqlinux.com/acpi-howto.html
 
  


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


All times are GMT -5. The time now is 12:21 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