SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Using zenwalk got me interested in slackware, so I am trying to learn slackware. I installed slack12 on a laptop. I can't find a way to enable a battery monitor in xfce or kde. After doing some googling it seems you need a kernel with acpi support. I am using the 184.108.40.206-huge-smp kernel (uname -r shows 220.127.116.11-smp). I tried gkrellm, but it does not start a battery monitor. Do I need to install or compile a new kernel for battery monitor support? Or can I just modprobe something to get it to work?
Also, what is the best way to update slackware? Where are the mirrors for updates?
Any advice appreciated, thanks!
I second the question! In KDE, there is this message:
Your computer seems to have a partial ACPI installation. ACPI was probably enabled, but some of the sub-options were not - you need to enable at least 'AC Adaptor' and 'Control Method Battery' and then rebuild your kernel.
Do we really have to recompile the kernel to get ACPI going?
Thanks Xavier. Is that the only way to get laptop battery support? Don't any of the slack12 kernels have this?
Also, if I do compile a new kernel, what do I select to get acpi support? Can you make suggestions for a kernel for a laptop?
Also, an unrelated question: how do you go about updating slackware and choosing a mirror?
The ACPI stuff comes compiled as modules on default huge Slackware kernel, you've to load the modules with: /sbin/modprobe ac && /sbin/modprobe battery
To make them load on boot, add those lines to /etc/rc.d/rc.local
Edit: 2Gnu won heh. By the way, if you can make some spare time, I'd recommend you to try compiling your own kernel, it's a good learning experience (you'll probably curse a lot during the process heh).
No, you don't have to recompile to get the battery monitor, but you do need to create an initrd with these ACPI modules:
ac, acpi, battery, button, dock, fan, processor, thermal, video
and if you're booting the generic kernel ext3, as well assuming that your file system. It's all detailed in the READMEs and isn't that hard to do. Use the LILO utility found in KDE if you prefer to stay away from the command line when editing lilo.conf.
Thanks for the suggestions. I installed the battery monitor for xfce (version 0.5, since it was newest) but it doesn't seem to be working. It just shows 50% when it should be full.
Dennisk, I can modprobe battery and modprobe ac, but when I try to modprobe acpi I get:
bash-3.1# modprobe acpi
FATAL: Error inserting acpi_cpufreq (/lib/modules/18.104.22.168-smp/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device
I am on 22.214.171.124-smp (huge smp kernel). Does this my kerel doesn't have acpi? If I look in /lib/modules/126.96.36.199-smp/kernel/cpu/cpufreq/ I do have acpi-cpufreq.ko listed there. Can I enable it?
Got it working now! I rebooted, did "modprobe battery" checked all the check boxes in properties dialog of xfce battery monitor and now it works! Thanks guys.
I still don't know why "modprobe acpi" returns with errors, but at least the battery monitor works.
I modprobed battery, ac, thermal etc in /etc/rc.d/rc.modules and the kde battery monitor is working.
However I dont think i needed to modprobe acpi.
I quote from the comments in rc.modules:
#If a kernel supports ACPI it will always be built in, not a module.
You also might want to look at starting /proc/sys/vm/laptop-mode in /etc/rc.d/rc.local. Theres a post about that somewhere here.
As for updating, look at the slapt-get project. Or just do it manually using pkgtools.
If your learning slackware, I recommend reading the slackbook-2.0. I cant remember where I downloaded it from but you should be able to google it. It has some out-of-date stuff but is good for the basics.