LinuxQuestions.org
Visit Jeremy's Blog.
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 04-27-2003, 05:47 PM   #1
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Rep: Reputation: 30
how to shutdown my computer


how would i shutdown my computer in the unix prompt? i tried shutdown now and /sbin/poweroff but it apperantly does not turn off my cpu by itself and i have to click my power button on my computer manually... in windows it did it by itself.. i am just wondering if there is a way to turn it off without me manually doing it.. any suggestions?.. thnx!
 
Old 04-27-2003, 05:49 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
try
shutdown -h now
shuts mine down every time

HTH
Ian
 
Old 04-27-2003, 06:00 PM   #3
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Original Poster
Rep: Reputation: 30
thnx bud... i'll try that =)
 
Old 04-27-2003, 09:08 PM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
if that doesnt work firs use chmod 7755 /sbin/shutdown then shutdown -h now but with chmod 7755 /sbin/shutdown you give permission to all users
 
Old 04-27-2003, 09:18 PM   #5
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Rep: Reputation: 15
shutdown -h now puts my system in run level 1 which is maintenance mode and does not shutdown my computer. I always use the simple command halt and that shuts everything down.
 
Old 04-27-2003, 11:58 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Check to see if the APM module is loaded.
 
Old 04-28-2003, 12:05 AM   #7
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Original Poster
Rep: Reputation: 30
how would i check that?
 
Old 04-28-2003, 12:17 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
With 'lsmod', if it's not there load it with 'modprobe apm', then try the 'halt' command (all as root).
 
Old 04-28-2003, 04:09 AM   #9
kater
Member
 
Registered: Feb 2003
Location: Switzerland, Berne
Distribution: Slackware 9.0
Posts: 186

Rep: Reputation: 30
Quote:
Originally posted by nakkaya
if that doesnt work firs use chmod 7755 /sbin/shutdown then shutdown -h now but with chmod 7755 /sbin/shutdown you give permission to all users
You want to give all users permission to shutdown your computer?

*sigh*
 
Old 04-28-2003, 08:53 AM   #10
LoungeLizard
Member
 
Registered: Apr 2003
Location: Tampa, Florida
Distribution: Mint 17.2 ,OpenSuse, Kali and Pepermint OS 6
Posts: 276

Rep: Reputation: 30
I dont know if I would give all users permission to shutdown you system.
 
Old 04-28-2003, 10:07 AM   #11
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Original Poster
Rep: Reputation: 30
the chmod thing didnt work... it said some stuff and then said Power Down. and it was on that screen for a while but did not shut down itself so i'll try the modprobe apm... =)
 
Old 04-28-2003, 12:35 PM   #12
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
Edit /etc/rc.d/rc.modules and uncomment(remove hash mark/pound sign) from the line:

/sbin/modprobe apm

Save the file then run that exact command as root:

# /sbin/modprobe apm

Now you should be able to issue a 'shutdown -h now' command and computer will power-off by itself.
 
Old 04-30-2003, 04:03 AM   #13
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
How about compile your kernel to support ACPI?
 
Old 04-30-2003, 09:19 AM   #14
mjolnir
Member
 
Registered: Apr 2003
Posts: 821

Rep: Reputation: 101Reputation: 101
Halt works great for me.
xp/mdk9.1
 
  


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
Do you shutdown that computer ? pleasehelpme General 32 05-16-2005 10:59 AM
How can I shutdown the computer without being root? Shagrath239 Slackware 13 02-19-2005 05:53 PM
Why won't the computer shutdown? daniel_brown_15 Linux - Hardware 1 08-09-2004 12:53 PM
how do i shutdown my computer? santasballz Linux - Newbie 5 02-28-2004 12:44 PM
shutdown computer? Longinus Linux - Newbie 7 02-11-2004 06:22 PM

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

All times are GMT -5. The time now is 07:59 AM.

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