LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Powering off when powering off, how hard can it be? (https://www.linuxquestions.org/questions/slackware-14/powering-off-when-powering-off-how-hard-can-it-be-403608/)

Ian_Hawdon 01-15-2006 09:54 AM

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 :D

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?

Alien Bob 01-15-2006 10:36 AM

Do you run a recompiled kernel? Perhaps you accidentally disabled APM support?

Eric

cwwilson721 01-15-2006 10:49 AM

Or APM is not set as a module in the kernel....

Ian_Hawdon 01-15-2006 10:51 AM

well how do i add it?

cwwilson721 01-15-2006 01:16 PM

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

Oinopion 01-15-2006 01:48 PM

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)

lestoil 01-16-2006 10:44 PM

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.

rkrishna 01-16-2006 11:45 PM

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

Ian_Hawdon 01-18-2006 12:10 PM

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 :(

chrisortiz 01-18-2006 05:08 PM

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.

rkrishna 01-18-2006 11:03 PM

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

rkrishna 01-18-2006 11:15 PM

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)

lugoteehalt 01-19-2006 12:12 PM

Could it be as simple as installing the program apmd??

Ian_Hawdon 01-19-2006 02:30 PM

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 ;-) )

chrisortiz 01-19-2006 03:19 PM

The anwswer is yes, it does.


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