LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-11-2004, 07:35 AM   #1
PeterMB
LQ Newbie
 
Registered: Jan 2004
Posts: 7

Rep: Reputation: 0
Power-off


Just installed Slack on my desktop machine as a dual boot.

Win98 turns the power off automatically when it is shut down, Linux doesn't though, resulting in a % checking of the hard disk at next startup.

I'm issuing a 'shutdown now' instruction - should I be doing something else?? Or is there a setting to change somewhere??

Many thanks
Peter
 
Old 01-11-2004, 10:04 AM   #2
Minderbinder
Member
 
Registered: Aug 2003
Location: Boston, MA
Distribution: Slackware-current
Posts: 142

Rep: Reputation: 15
Uncomment the line
#/sbin/modprobe apm
from /etc/rc.d/rc.modules.

After you reboot you will be able to shut your computer down by selecting shut down.
 
Old 01-11-2004, 10:15 AM   #3
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I haven't seen shutdown invoked as you do before - I always thought that a flag like -h had to be there as well; shutdown -h now for halting. To reboot, change the -h to -r.

But still; you should check that the apm module is loaded. Look in /etc/rc.d/rc.modules and search for apm. If the line is commented, uncomment it - now apm will be started when you boot up your computer. Also, if the line was commented, then apm is not loaded currently. Do a modprobe apm and it will be started. Now you can halt your computer to see that it works properly.

I find it a bit strange that a file systems check is necessary after the system is shut down, even though your computer doesn't switch off. Do you wait to press the power button until it says "Power down."?

Another thing about the file checking. I guess you aren't using a journaling file system? And in that case I assume you're using ext2? To get rid of those tiresome FS checks, you can convert your file system from ext2 to ext3, using tune2fs. Make sure the partition you want to convert is unmounted (if necessary using a boot/rescue disk or a live CD like Knoppix), for instance /dev/hda3, and issue tune2fs -j /dev/hda3. The conversion from an ext2 to an ext3 system should not do any harm to your data.
 
Old 01-11-2004, 10:42 AM   #4
PeterMB
LQ Newbie
 
Registered: Jan 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Sorted, thanks.

I found the "poweroff" command, with the #/sbin/modprobe apm line uncommented this turned the power off as well (I'm shutting down from a command line).

Bebo, I think you're right about needing a flag like '-h' - I was never getting to the "Power down" message... no wonder it was checking the hd :-)
 
  


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
power off Ornery_Boy Linux - Hardware 4 06-01-2005 08:33 AM
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 10:14 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 03:04 PM
Needs to push power button to power off? danpin Linux - Newbie 5 10-21-2003 08:08 PM

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

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