LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 01: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, 01:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 07: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



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 09:59 AM
Repartitioning safely arubin Slackware 19 11-18-2006 08:21 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM
How to safely re-partition squinn Linux - Newbie 3 08-23-2005 02:38 PM
How can I safely repartition.... BajaNick Linux - Software 5 12-30-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:07 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
Open Source Consulting | Domain Registration