LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-04-2007, 02:18 PM   #1
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Rep: Reputation: 30
Safely powring down the system


Hey all!,
quick question here and i can only pray that someone has the answer, i recently upgraded to slackware 11 (beauty in it's truedt form) anyway my question is as follows:
how can i ghet the system to recognize that when the power button is pressed rather then just killing the power it will shutdown safely?

I only ask as i have a 4 year old son who im desperatly tryin to make familiar with linux as all he ever sees over here is mic......ft (yuck i cant even bring myself to spell it let alone say it!)

Anyway, any help would be greatly appreciated as when he turns it off it gives me some hassles in getting it back up and running! lost of fdisk -f and the likes!

Still im learning more as i go along and so is he!

Thanks

The Yikes
 
Old 02-04-2007, 02:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Do you have acpid running, is the button module loaded?
If yes, all you (should) need to do is edit/create /etc/acpi/events/shutdown
and tell it to shutdown cleanly .... untested (no 4 year olds around
and I have no need for this), but should do it.
Code:
event=button[ /]power
action=/sbin/halt

Cheers,
Tink
 
Old 02-05-2007, 08:16 AM   #3
the-yikes
Member
 
Registered: Jan 2007
Posts: 151

Original Poster
Rep: Reputation: 30
Think big....think tink!

Tinkster (tink)

Thanks a milion for the freakishly fast response, havnt had a chance to test your method yet, am down in my parents house at the moment, but i'll give it a whirl when i get back to the lair! hahaha
you know it never ceases to amaze me how much information people have at their disposal,, the linux community has got to be the friendliest place on earth (or the web) whichever.

Thank you so much

The Yikes
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to safely remove linux partition from a dual boot system? parv Linux - Newbie 7 05-01-2012 10:59 AM
Repartitioning safely arubin Slackware 19 11-18-2006 09:21 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-10-2005 12:38 AM
How to safely re-partition squinn Linux - Newbie 3 08-23-2005 03:38 PM
How can I safely repartition.... BajaNick Linux - Software 5 12-30-2003 06:01 PM


All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
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