Howto shutdown Slackware correctly
Hi guys, ive been searching around and i havent been able to get a valid final answer on how to properly shutdown my slackware machine.
shutdown -h now | /sbin/poweroff | halt | What? Any ideas? Thanks. |
A little more information would be helpful. So shutdown -h now doesn't work? What happens when you issue that command? I have an aging Plll running Slackware 12.1 and to get it to fully shutdown I need to modify lilo.conf and add acpi=force.
Code:
# Start LILO global section |
It depends if you are logged in a Command line terminal or in Windows Manager. In UNIX, the best way to shutdown is
Quote:
|
Code:
su -c poweroff Quote:
|
When i use shutdown -h now it comes to an finishing line that says System halted.
Is that allright? Can i power off my machine then? hitest, what do you mean with "fully shutdown"? You mean it have to go power off by its own? *sorry for my bad english |
Quote:
# nano etc/lilo.conf When you make your changes make sure to run lilo to update lilo.conf. |
Well i did this:
* Added the line append=" vt.default_utf8=0 acpi=force"to my lilo.conf * Runned my lilo before shuting down, doing /sbin/lilo * Shutdown -h now * It stayed like before, on System halted. Should i add the whole line ou only acpi=force ? Thanks for the help so far guys. |
Can you provide a bit more info on your computer, how old is it ? is it a laptop or desktop ? what brand if any ?
|
Its a Desktop Pentium II
Dell Optiplex GX1 512 RAM Dual boot with windows |
Dont know how old that is but maybe its using apm rather than acpi? Is there an apm kernel append line?
|
Quote:
Edit: added later. Try a re-boot to see if that allows the changes to lilo to take effect. |
Quote:
Code:
/* |
Quote:
Code:
acpi=off |
I thought Slackware was set up so that pressing (not holding) the power button will shut everything down. Additionally can't you always 'sudo init 0' ??
|
You the acpi config file has the power button to init 0 but it has never worked for me, although I'm glad cos a few times I've to hard reset by holding power button.
|
didn't see this suggested or maybe it was and I glanced over it but you can initiate the following.
Code:
shutdown -hP now |
Quote:
|
Quote:
If you believe the power supply and BIOS support power management, and the box was built before the year 2000, then as previously suggested consider disabling acpi (acpi=off) and use APM. If I recall correctly, however, the stock Slackware huge kernel does not have APM built in. You'll have to recompile the kernel to obtain APM features. If you are interested in using APM then perhaps the following might help: Configuring the APM Daemon |
Am I missing why I can't just use
Code:
su |
Quote:
|
My Dell XPS P3-800 works just fine under slackware. When I switch off, I just logout, press the power button on the front panel and it runs shutdown for me. When I tried OpenBSD on this same hardware, I was getting the same problem as you describe with slackware. I get the feeling these early APM systems were a bit hit and miss.
|
Try to find out if your BIOS supports acpi or apm:
dmesg |grep acpi dmesg |grep apm I too, would most likely try using apm on an older machine. In that case you'd need to make sure the apm kernel module is loaded before shutting doen with 'poweroff'. I use a home-made shutdown GUI that mdoprobes the apm module before shutting down, if ti isn't already loaded. You may alos need to adjust your BIOS settings. Some BIOS'es can use either apm or acpi, so you may be able to choose which way to go. |
I've been struggling with this matter on one machine (P4, 2005) for quite some time now and haven't solved it so far.
As far as I know, you cannot get APM to work on a SMP-kernel (correct me if I'm wrong). Building my own kernel didn't work either, so I'm curious, has anyone gotten this to be solved by using the non-smp-kernel? Edit: Just tried that, no such luck... |
All times are GMT -5. The time now is 06:14 PM. |