LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to shutdown my computer (https://www.linuxquestions.org/questions/slackware-14/how-to-shutdown-my-computer-57051/)

saiz66 04-27-2003 05:47 PM

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!

green_dragon37 04-27-2003 05:49 PM

try
shutdown -h now
shuts mine down every time

HTH
Ian

saiz66 04-27-2003 06:00 PM

thnx bud... i'll try that =)

nakkaya 04-27-2003 09:08 PM

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

1_8_7 04-27-2003 09:18 PM

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.

Aussie 04-27-2003 11:58 PM

Check to see if the APM module is loaded.

saiz66 04-28-2003 12:05 AM

how would i check that?

Aussie 04-28-2003 12:17 AM

With 'lsmod', if it's not there load it with 'modprobe apm', then try the 'halt' command (all as root).

kater 04-28-2003 04:09 AM

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*

LoungeLizard 04-28-2003 08:53 AM

I dont know if I would give all users permission to shutdown you system.

saiz66 04-28-2003 10:07 AM

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... =)

hecresper 04-28-2003 12:35 PM

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.

Sifvion 04-30-2003 04:03 AM

How about compile your kernel to support ACPI?

mjolnir 04-30-2003 09:19 AM

Halt works great for me.
xp/mdk9.1


All times are GMT -5. The time now is 12:32 PM.