LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2004, 04:45 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Soft shutdowns


K, i'm a total linux newbie and am getting used to linux on a dual boot system. I'm missing a few little things i had in windows. Was wondering if someone could help. I'm sure linux supports it, just cant find where.


Soft shutdowns. This is a hassle as i normally run out of the room to get to work and hit the power button on the computer which then tells the system to shutdown and turn off. Linux doesnt seem to wanna do this. I hit the power button and it turns the computer off (eeeeek, i know how linux is picky about shutting down fully). Is there a soft shutdown option which i can configure?
 
Old 08-17-2004, 05:00 AM   #2
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
As root try

shutdown -h now

halt should also work. reboot should shutdown and restart as does controle,alt,delete on many distros.
Shutting down just by pulling the plug can do bad things.
Not so bad if you use a journalling file system such as reiserfs or ext3.
 
Old 08-17-2004, 05:03 AM   #3
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
True, but i need to type this everytime i want to shutdown. I wanted to know if theres a program or an option i need to turn on so i can just hit my "power button" on the front of my PC to tell it to shutdown , like in windows. Or am i asking too much of linux?
 
Old 08-17-2004, 06:44 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
You can change the function of ctrl-alt-del to shutdown the compter. Edit the /etc/inittab file. I believe you can reprogram the power switch but I can't remember how.
 
Old 08-17-2004, 07:13 AM   #5
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Thats exactly what i want, does anyone know how to reprogram the power switch to make linux commence shutdown procedures after it is pressed?
 
  


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
Linux shutdowns sernan Linux - Newbie 4 09-05-2005 09:32 AM
Scheduling shutdowns avenolpey Debian 1 06-01-2005 10:05 PM
system shutdowns KDElinux Linux - Software 2 12-30-2004 04:38 PM
user that shutdowns the computer matevzp Linux - General 1 12-07-2004 04:39 AM
Bad Shutdowns SierraClassic35 Linux - General 7 09-17-2001 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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