Powering off when powering off, how hard can it be?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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:
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:
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
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
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.