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.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
apm and console suspend
A nice feature of my laptop is that in the BIOS I have a power down feature called suspend. After 5 minutes of inactivity in the console, my pc powers down and the cooling fans turn off till a key is pressed to wake it up. This worked fine in Slack 10, kernel 2.4.31, with the following line uncommented in /etc/rc.d/rc.modules:
/sbin/modprobe apm
I recently wiped my drive, did a fresh install of Slack 10.1 and upgraded the kernel to 2.4.31. APM is enabled in rc.modules but it doesn't go into suspend mode anymore. BIOS settings did not change.
Any idea what the difference could be?
These are installed:
acpid-1.0.4-i486-2
In the running processes:
apmd is running
acpid is NOT running
My laptop is 6+ years old and needs apm....not sure if acpi should be running at the same time as apm..
Last edited by linuxhippy; 06-14-2005 at 05:34 AM.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
I put apm -s in my user .bash_logout and got a permissions error about apm when I logged out. As root I tried to chown and chgrp for /proc/apm and I tried chmod 0666 for /proc/apm and chmod a+x /proc/apm and none of that worked.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Quote:
Originally posted by uselpa Just add it to ~/.bash_logout. This will not background it, but execute it immediately when you log out.
To delay, add the 'at' command.
Would you please go into detail about delaying apm -s...I want to delay it 5 minutes.
Originally posted by linuxhippy
Would you please go into detail about delaying apm -s...I want to delay it 5 minutes.
When I suggested that, I was thinking about delaying for a few seconds, just in order to allow your session to close properly. You could have added a simple
Code:
sleep 5 && sudo apm -s
or an at command.
Of course, you could add
Code:
echo 'sudo apm -s' | at now + 5 minutes
to .bash_logout. However, this is unconditional and even if you login again, you'll get suspended. Probably not what you want - if you login before 5 minutes, you'd have to cancel the at command via an "atrm".
I guess that in that case you'll have to configure your BIOS to send the apmd a signal after 5 min. Look into your BIOS options if you have a way of configuring this, and try if it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.