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 i have tried Code:
cd /usr/src/linux whats is wrong? |
Do you run a recompiled kernel? Perhaps you accidentally disabled APM support?
Eric |
Or APM is not set as a module in the kernel....
|
well how do i add it?
|
Recompile your kernel.
The way to TRY to shutdown from a console, type: Code:
shutdown -h now If you need to recompile, check out the stickys at the top of this forum |
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:
|
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.
|
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:
3. if u go for kernels, u need to install corresponding modules in that cds Quote:
regards |
Quote:
BTW, when i recompiled the kearnel, the whole PC died because the moduals did not compile proberly :( |
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.
|
Quote:
Quote:
Quote:
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 |
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) |
Could it be as simple as installing the program apmd??
|
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 ;-) )
|
The anwswer is yes, it does.
|
All times are GMT -5. The time now is 12:38 PM. |