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 always have that problem with Slackware. The problem is for some reason or another ACPI support (ACPI controls that sort of thing) isn't compiled into the generic kernel (from the A) package.
To circumvent this problem, I'm afraid you're going to have to recompile the kernel. (or try to find one to install that's compiled with ACPI support). Anyway, compiling it is an interesting adventure and any Linux power-users going to want to learn how to do it, so you may as well learn now.
There are two options...you can go fancy and get a 2.6.X kernel (i think the latest as of my post date is 2.6.19.1 obtained from kernel.org).or you can go not so fancy and stick with the kernel source for the kernel you've already got.
If you did a full slackware install, the source will be in /usr/src/linux (which is actually a symbolic link to /usr/src/linux.2.4.X) [x being whatever version you have]
you go into that directory and type make mrproper
(which basically runs a script that ensures all necessary files are in their correct states)
then type: make menuconfig
this will make a menu based program that you go through selecting various things to enable in the kernel. It's somewhat daunting so you may want to frequently push the help button or read through documentation in the /usr/src/linux/Documentation directory.
Plan on messing up a few times and getting kernels that don't quite work with your PC (or forgot to enable certain file system support/framebuffering/ACPI =) /etc).
Part of the planning is ensuring that you can boot with, say, the slackware CD in case your kernel is unbootable. Be sure to save the original kernel by copying /vmlinuz to /vmlinuz.bak or some other such routine. Also save the original /boot/System.map
Once you're done configuring options in the menuconfig
if you've got a 2.4.X kernel then you have to type: make dep which makes dependencies
if you have a 2.6.X kernel you can skip it.
Then type: make bzImage which will compile the kernel.
you'll notice a million weird statements will all sorts of crazy -Flags set in the 2.4.X series but in the 2.6.X series the kernel compilation is quite simple. Either way it takes a LONG time depending on the machine.
When that's done type: make modules to make modules
and then install them with make modules_install (PS. I have no idea whether the _ is necessary but that's the way I initially learned and I haven't tested it out
Now you've got to copy the bzImage (stored in /usr/src/linux/arch/i386/boot/bzImage) don't ask me why... to the /boot/ as well as the System.map stored in /usr/src/linux ). Now update the /etc/lilo.conf to make sure that the image= line points to /boot/bzImage
FINALLY AND MOST IMPORTANT...EVERYTIME NO MATTER WHAT YOU DO YOU HAVE TO RUN /sbin/lilo
Even if you just compile one little teency weency thing or change. If you forget you're likely to encounter a machine that doesn't boot with a message "out of input" or something to that end. So don't forget to run it. If you do forget it, life goes on if you've got a handy boot disk so that you can get into your drive and type /sbin/lilo with the /etc/lilo.conf stored on your harddrive.
Hope this helps. I'm still figuring out a lot of things too so if you need help someone else may be of more service. But this power off thing I've finally worked out...
I'm going to try first the second suggestion and if it doesn't work I'll try the first one.
Although I should think in update from kernel 2.4 to 2.6, don't you think so?
Thank you so much for your attention and help dudes!!
Atreo - if you are using Slack 10 with the 2.4 kernels, you have load the apm kernel module.
I had the same problem you had, but I edited /etc/rc.d/rc.modules to load apm on bootup. With 2.4 kernel and apm module loaded, an "init 0" will shutdown the OS and power off the computer.
But now that I'm using Slack 11 with the stock 2.6.18 kernel (from /testing), it's compiled with acpi and acpid starts from bootup.
Hi all!!
I tried mr.v. suggestions and I think I don't have acmp installed.
I'm trying to install acpm package.
I'm using KPackage for installing ospmd-20021122.tar.gz .
The thing is that something is not working properly. I have these two problems when I press 'install':
Problem 1:
installpkg //root/descargas/ospmd-20021122.tar.gz ;echo RESULT=$?
Cannot install //root/descargas/ospmd-20021122.tar.gz: package does not end in .tgz
RESULT=0
Problem 2 (if I press install again):
Cannot install //root/descargas/ospmd-20021122.tar.gz: package does not end in .tgz
RESULT=3
How can I solve these problems for being able to install the package?
A quick idea, try
'modprobe apm'
and then
'halt'
the first will load the Advanced Power management module which is present in the default kernel. Your computer should shutdown succesfully.
if you want to install a slackwarepackage on slackware you do this with the command installpkg that is true. but not every archive is a slackwarepackage! archives with the ending .tar.gz or .tar.bz2 are never slackwarepackages!
slackwarepackages have allways the ending .tgz
so what you have there (i.e. lirc-0.8.1.tar.gz) is probably source.
you have to compile this in order to get your program.
so to start the whole thing again maybe tell us what you use.
do you use slackware 10.2? what kind of kernel do you use (you can find that out with the command uname -a you get some thing like "Linux darkstar 2.6.18 [...]")
i think to get your probs solved you do not have to install anything, you just have to configure your system ...
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
Hey,
I have the same problem . My comp doesn't halt.
Right now I have to do shutdown now -r and then poweroff manually when the comp has just restarted.
shutdown now -h , doesn't halt the system. It only shows "power down" and then hangs there.
I have 2.6.18 kernel , with acpi enabled. acpid is running.
My lilo is :
Quote:
image = /boot/vmlinuz-custom-2.6
root = /dev/hdb2
label = LinuxNew
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
append ="apm=off acpi=on acpi=power-off"
I had an earlier thread on this topic, but didn't quite manage it there. So trying again over here!
The append part above is from the earlier thread.
I tried mr.v. suggestions and I think I don't have acmp installed.
I'm trying to install acpm package.
Atreo...are you sure you searched for acpi and not acmp. ACPI stands for Advanced Configuration and Power Interface (but make sure you search for the lower case "acpi"). "acmp" stands for...???
Both Atreo and duryodhan, can you run the following commands exactly and post the output for each one here in the forum.
First obvious question is, will another 2.6.X linux distribution allow you to turn off your computer. Try, say, an Ubuntu or Knoppix live-cd's to see if the shutdown powers the computer off.
Second, I noticed in your OP that you put
Code:
"append ="apm=off acpi=on acpi=power-off"
All I know is that I do not append these lines and my computer turns off so they aren't strictly necessary. Try removing that line from your /etc/lilo.conf and then update it using /sbin/lilo
Also be sure to look at the /var/log/dmesg to make sure that append line hasn't caused any errors. But still, I don't think you'll need it. You may, however, have to recompile the kernel. Did you enable all the options like Button, Processor, Thermal Zone, etc when you built the kernel? And if so, did you compile them as modules or statically?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.