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.
I run: "shutdown -h now"; I get the message "power down" (or power off) but my computer doesn't turn off - I have to shut down it manually. Can someone tell me, how to get my slackware9-box to turn off?
Originally posted by dukeem I run: "shutdown -h now"; I get the message "power down" (or power off) but my computer doesn't turn off - I have to shut down it manually. Can someone tell me, how to get my slackware9-box to turn off?
dukeem
You need to enable the APM module. Do a 'modprobe apm' and then it should work. To enable the apm permanently, look for the line in /etc/rc.d/rc.modules which refers to apm (its something like #/sbin/modprobe apm and remove the #. 'lsmod' should show the apm module running if all is well. Good luck and happy slacking.
on my system i'd got the same error. it seems that apm doesn't function, so i decided to compile a new kernel using acpi which works pretty good for me.
Originally posted by reclusivemonkey You need to enable the APM module. Do a 'modprobe apm' and then it should work. To enable the apm permanently, look for the line in /etc/rc.d/rc.modules which refers to apm (its something like #/sbin/modprobe apm and remove the #. 'lsmod' should show the apm module running if all is well. Good luck and happy slacking.
root@linux:~# modprobe apm
/lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed
vi /etc/rc.d/rc.modules
uncomment the line for the APM (save and close rc.modules)
insmod apm
lsmod (it should be listed apm)
shutdown -h now
It will power off on its' own now.
vi /etc/rc.d/rc.modules
uncomment the line for the APM (save and close rc.modules)
insmod apm
lsmod (it should be listed apm)
shutdown -h now
It will power off on its' own now.
Originally posted by C++freak I am curious, what does apmd do, and is it in the init scripts by default, and do I need it to have my machine power down?
Thanks
As far as I recall, APM stands for Advanced Power Management??? apmd is the daemon, i.e. the program that monitors the apm from your computer's BIOS. All that means is that if you want your PC to power itself off when you shutdown, it needs to be running! Its more vital on laptops where it also helps with battery management.
I verified the line (#/sbin/modprobe apm) for APM in rc.modules (/etc/rc.d/rc.modules) and it really was commented. I uncommented it and tried to use the following command:
“insmod apm”
And the result I got is:
"insmod: can't read 'apm': No such file or directory"
How can I deal with? Because I guess I need to do it before use the command "modprobe apm". Could you help me please?
In fact, I would like to use the command “shutdown –h now” to turn off the computer and power it down without need to handle it.
However it doesn’t work in Slackware 13 with the single board computer I’ve been using.
So, I tried to use the command “modprobe apm” but the result is:
"FATAL: Error inserting apm (/lib/modules/2.6.29.6-pm/kernel/arch/x86/kernel/apm.ko): No such device”
After that I verified the line for APM was commented in rc.modules. I uncommented it and tried to use “insmod apm” but it also doesn’t work.
I’m learning about Linux and I like it very much but I still don’t have the knowledge to solve this problem.
I don't think APM is supported anymore, try instead to put 'pci=nomsi' in your /etc/lilo.conf append line, then run 'lilo' as root then reboot, then try shutting down.
Code:
append=" vt.default_utf8=0 pci=nomsi"
Do you have the nvidia driver installed ? Just wondering.
On Intel standard architecture machines the power off function is handled by acpi. (Advanced Configuration and Power Interface). This is the replacement for apm. (Advanced Power Management).
So your kernel needs to load the acpi module or have it compiled into it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.