LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-07-2006, 06:18 PM   #1
captain chaos
Member
 
Registered: Feb 2006
Location: North England
Distribution: Slackware 10.2 (kernel 2.6.13)
Posts: 74

Rep: Reputation: 15
Stupid question about shutdown


As there appears to be no shutdown option in kde then how do you do it. I found that the command '/sbin/halt' will shut down but stops at the prompt 'Power down'. Is this the same as windows 'It is now safe to turn off your computer', don't want to corrupt any data by switching off when I shouldn't. Thanks
 
Old 02-07-2006, 06:20 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
That's right, it's like the "it's now safe to power down" screen. If you want it to power down also, try as root shutdown -h now
 
Old 02-07-2006, 06:23 PM   #3
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
The shutdown/reboot options are added to the kde logout screen when you run in init level 4.

There is also /sbin/shutdown.

Yup "Power Down" is indeed the equivalent of "It is now safe..." If you want your computer to automatically shut off at that point, edit /etc/rc.d/rc.modules and uncomment the line #/sbin/modprobe apm.
 
Old 02-07-2006, 06:24 PM   #4
captain chaos
Member
 
Registered: Feb 2006
Location: North England
Distribution: Slackware 10.2 (kernel 2.6.13)
Posts: 74

Original Poster
Rep: Reputation: 15
Though it maybe so. "shutdown -h now" doesn't always work for some reason
 
Old 02-07-2006, 08:10 PM   #5
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
odevans already said what i did...i need to read these better...

Last edited by detpenguin; 02-07-2006 at 08:15 PM.
 
Old 02-07-2006, 08:27 PM   #6
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by detpenguin
odevans already said what i did...i need to read these better...
And pljvaldez half beat me to it too. I gotta stop replying to threads while trying to eat

I'm wondering what you mean captain chaos, when you say shutdown -h now doesn't always work?
 
Old 02-07-2006, 09:03 PM   #7
rnicolson
Member
 
Registered: Jul 2004
Location: Winnipeg
Distribution: Slackware 11
Posts: 74

Rep: Reputation: 15
I added an option to my kmenu for "shutdown -h now" with run as root in the setup and type in my passwd to shutdown.
 
Old 02-07-2006, 10:28 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
As there appears to be no shutdown option in kde then how do you do it.
Possibly this will help: Shutdown As a Normal User With KDE.

Quote:
I found that the command '/sbin/halt' will shut down but stops at the prompt 'Power down'.
You either do not have power management (APM/ACPI) installed and enabled or your power supply/mobo does not support power management. I have an older box with a mobo supporting APM but the P/S does not and I see that same message on that box all the time when I shut down.

If using a stock kernel then edit rc.modules as instructed above to enable APM.

Quote:
Is this the same as windows 'It is now safe to turn off your computer', don't want to corrupt any data by switching off when I shouldn't.
Yes.
 
Old 02-10-2006, 03:20 PM   #9
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
Power button shutdown (only in acpi computers)

Quote:
Originally Posted by captain chaos
As there appears to be no shutdown option in kde then how do you do it. I found that the command '/sbin/halt' will shut down but stops at the prompt 'Power down'. Is this the same as windows 'It is now safe to turn off your computer', don't want to corrupt any data by switching off when I shouldn't. Thanks
If you have a new computer (maybe after 2000) it will have acpi capabilities. (I see that you have). I have been with P2 and acpi was present..

so, you can simply logout from the kde and then press the power button. Try it also in Windows (save your work first!)

Attention! If you *hold* the button 5 secs the computer will not shutdown properly, it will POWEROFF! >(no electricity)< Only a simple pressing is enough.

also you can modify as root in /etc/inittab to speficy what the ctrl+alt+del can do.

#What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now

so, instead of shutdown -t -r now you can write shutdown -h now

that was my practice, till i discovered acpi :-)
 
Old 02-10-2006, 03:44 PM   #10
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by captain chaos
Though it maybe so. "shutdown -h now" doesn't always work for some reason
I though it was just me or my Averatec laptop.

I do sudo shutdown -h now and had the laptop hang for a bit before starting the shutdown, or not turning off at all.
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
probably a stupid question mrchaos Slackware 11 04-22-2005 05:59 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid Question agallant Linux - Software 6 02-17-2004 06:52 PM
Stupid question??? Avitas Linux - Software 3 04-28-2003 01:08 PM

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

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