LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2006, 09:54 AM   #1
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Newcastle Upon Tyne
Distribution: Arch
Posts: 326

Rep: Reputation: 34
Unhappy Powering off when powering off, how hard can it be?


Hi,

i am trying to get my Slack Box (8.1) to actually turn off the power when the shutdown command is commanded. At the moment, it says Power Off and just hangs there. That is no problem usually, but now i want to power it off remotly (from school) and I know it is just going to sit there wasting energy and buring the words "power off" into my aging CRT screen

When i uncoment "modprobe apm" from the /etc/rc.d/rc.moduals file i see

Code:
modprobe: Can't locate module apm
in the start up

i have tried
Code:
cd /usr/src/linux
make clean
make menuconfig
without success

whats is wrong?
 
Old 01-15-2006, 10:36 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Do you run a recompiled kernel? Perhaps you accidentally disabled APM support?

Eric
 
Old 01-15-2006, 10:49 AM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Or APM is not set as a module in the kernel....
 
Old 01-15-2006, 10:51 AM   #4
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Newcastle Upon Tyne
Distribution: Arch
Posts: 326

Original Poster
Rep: Reputation: 34
well how do i add it?
 
Old 01-15-2006, 01:16 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Recompile your kernel.

The way to TRY to shutdown from a console, type:
Code:
shutdown -h now
See if that helps.

If you need to recompile, check out the stickys at the top of this forum
 
Old 01-15-2006, 01:48 PM   #6
Oinopion
Member
 
Registered: May 2005
Location: Kraków, PL
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
If you dont own laptop, than apm is not need. Try running acpid, and if this won't help you, it'll be best time to compile your own kernel! It easy.

Since compiling may be a trouble to newbie I've got other idea: try to upgrade your kernel to newest one, or at least one from 10.x branch. I suspect that you have an old distro:
Quote:
Slack Box (8.1)
 
Old 01-16-2006, 10:44 PM   #7
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Ian_H if you could use kernel from SW9 or 10 install--along with kernel modules--, the apm module is included then you could do what you did in /etc/rc.d/rc.modules and shutdown would work. If shutdown works with fedora then that is all you would need. Don't know enough about SW8 to help sorry.

Last edited by lestoil; 01-19-2006 at 05:44 PM.
 
Old 01-16-2006, 11:45 PM   #8
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
1. first you have to enable this in bios.
if it is working in other OS, then it is enabled
2. since it is there in /etc/rc.d/rc.moduals file, i hope the modules may be there
Quote:
i uncoment "modprobe apm" from the /etc/rc.d/rc.moduals file i see
3. on the first try, you may not get the result, the apm enabled kernel must be loaded, tht means, enable it in kernel and on that shutdown it wont work. but on rebooting it is booting with that module and then u shutdown, it will shutdown automatically
3. if u go for kernels, u need to install corresponding modules in that cds
Quote:
Ian_H if you could use kernel from SW9 or 10 install
4. u can even try slackware 10.1 or 10.2 your machine, if u have fedora on it then slackware will be doube faster.
regards
 
Old 01-18-2006, 12:10 PM   #9
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Newcastle Upon Tyne
Distribution: Arch
Posts: 326

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by rkrishna
4. u can even try slackware 10.1 or 10.2 your machine, if u have fedora on it then slackware will be doube faster.
regards
You mean i could use FC4 2.6 kernals on a SW8.1 maching expecting to see 2.4 kernals

BTW, when i recompiled the kearnel, the whole PC died because the moduals did not compile proberly
 
Old 01-18-2006, 05:08 PM   #10
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
install the 2.6.13 kernel off of the slackware 10.2 cd. you won't have to compile anything and it only takes about 5 minutes.
 
Old 01-18-2006, 11:03 PM   #11
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
You mean i could use FC4 2.6 kernals on a SW8.
no nono.. i mean, u can try installing slack10.2, this is tripple stabler and faster than fc3.
Quote:
the whole PC died because the moduals did not compile proberly
when u do make u can identify if there are errors
Quote:
install the 2.6.13 kernel off of the slackware 10.2 cd.
if u do this u also needed to install modules packages for 2.6.13 kernel. it is there in 2nd cd of slack.

but most of thinks are made modules u can try compiling a new kernel, first a little tough but u wil like it later hi. if needed i can give u a small kernel2.6 compile guide

Last edited by rkrishna; 01-18-2006 at 11:13 PM.
 
Old 01-18-2006, 11:15 PM   #12
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
kernel compilation dirty guide
(once chinaman fo LQ helped me)
download the kernel source to ur home/build/ dir http://kernel.org/pub/linux/kernel/v...2.6.15.tar.bz2
say /home/xxxx/build (u have a dir called build in home. mkdir build wil do)
now u r in /home/xxxx/build$,
$tar -xvjf linux-2.6.15.tar.bz2
$cd linux-2.6.15/ directory, then issue:
$ make menuconfig
{xconfig or gconfig, i prefer gconfig -both this are for xwindow}
(make your changes then save the file)
--->how simple!! it will take some time if doing first time, if u read the helps a day week .... for others
$ make
then su to root and
# cp System.map /boot/System.map-2.6.15 ; ln -sf /boot/System.map-2.6.15 /boot/System.map
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.15
# lilo <----before doing this edit lilo
# reboot <--if u want to try this kernel

editin lilo
---------
image = /boot/vmlinuz-2.6.15
root = /dev/hda1 <-- put your / (root) partition here
label = 2.6.15 <-- or lin2.6
read-only
-------------
in the top add a line default=lin2.6(xxx) if needed(from memory now using winbog$ machine from out)
 
Old 01-19-2006, 12:12 PM   #13
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Could it be as simple as installing the program apmd??
 
Old 01-19-2006, 02:30 PM   #14
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Newcastle Upon Tyne
Distribution: Arch
Posts: 326

Original Poster
Rep: Reputation: 34
does slackware 10.2 have apm working as standard, if so, ill just download it and use that instead (obviously backup my web site first ;-) )
 
Old 01-19-2006, 03:19 PM   #15
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
The anwswer is yes, it does.
 
  


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
Powering up Interface TMH Linux - Networking 3 02-26-2005 06:07 PM
Powering down SATA hard drives Dav Linux - Hardware 1 02-12-2005 09:17 AM
Powering off... daihard Linux - Software 1 12-22-2004 04:20 PM
Laptop powering down during install OldRod Fedora - Installation 1 10-06-2004 03:45 AM
Powering down a harddrive when it's idle. jsbush Linux - Hardware 6 11-03-2003 11:38 AM

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

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