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 was trying to use laptop_mode and during shutdown I noticed that my system was complaining about /proc/acpi/button/lid not existing. Sure enough it wasn't there. There is no button directory at all.
Is this normal? If not, which package do I need to reinstall to get it?
You should recompile the kernel to enable CONFIG_ACPI_BUTTON option.
Power management options->ACPI Support->Button
The Slackware kernels have all the ACPI support compiled as modules. You may want to edit /etc/rc.d/rc.modules-2.6.24.5-smp (or the rc.modules version that you use other than the default) and uncomment the various ACPI modules - they can be found nearly at the bottom of that file.
The Slackware kernels have all the ACPI support compiled as modules. You may want to edit /etc/rc.d/rc.modules-2.6.24.5-smp (or the rc.modules version that you use other than the default) and uncomment the various ACPI modules - they can be found nearly at the bottom of that file.
Eric
Thanks for your reply. I really did not want to recompile the kernel
Anyways, I looked at the rc.module* file and the only thing I saw was CPU frequency scaling modules...
The rc.modules-2.6.24.5* files in Slackware 12.1 do have commented-out lines for the ACPI modules (button, processor, thermal, fan, dock, bay etc...) - maybe you are running an older version of Slackware.
You can add modprobe commands for them yourself of course - look in /lib/modules/$(uname -r)/kernel/drivers/acpi/ for the available modules.
The rc.modules-2.6.24.5* files in Slackware 12.1 do have commented-out lines for the ACPI modules (button, processor, thermal, fan, dock, bay etc...) - maybe you are running an older version of Slackware.
You can add modprobe commands for them yourself of course - look in /lib/modules/$(uname -r)/kernel/drivers/acpi/ for the available modules.
Eric
Eric,
Thanks, I ran the modprobe commands for button and it created the folders/files under /proc/acpi.
However, my /etc/rc.d/rc.modules doesn't have those lines. I'm on Slackware 12.0... that isn't that old.
The kernel version is 2.6.21.
Can you paste those lines in rc.modules or point me to a location that has them? Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.