no apm or acpiForum: Laptops Topic: no apm or acpi started by: arew264 Posted by arew264 on June 23 2005,21:10
Hey. I have a Dell CPi D400xt that I have DSL running on very well except that I would really like a bettery monitor. I have searched and searched for this, and tried all the solutions I could find, but none seem to work. BTW This machine can and will be used as a guinea pig and i have nothing to lose on it. I have checked the bios and have verified that ACPI is enabled. I did not see any notes about apm, so I'm guessing thats its not there.... i guess..... Here i will list what I have tried:Installed wmacpi successfully. When started from mydsl menu nothing happens, when started from xterm: No batteries or ACPI not supported. Installed wmapm successfully. when started from terminal: No APM support in kernel. Installed wmbattery from synaptic successfully. when started from terminal: Error: no APM support in kernel. I stopped short of installing wmpower because I figured that it would yield the same results. Is there something special that I have to do to get ACPI or APM to work? PS I have to use i8k on this laptop for the fans (the thermal sensor is dead and its $200 to replace it), but i8k has not been reinstalled since the last problem invloving a repartition arose. Posted by arew264 on June 24 2005,17:30
FYI:I8k is now installed (interface to Dell bios to get fans started, etc) ANy help would be greatly appreciated, and if you need to know something I have not posted, please tell me. Posted by arew264 on June 24 2005,23:49
After thinking outside the distro, I searched the internet and found that I needed to install a kernel acpi patch to get it to work with my system.... I hope.... I need the patch acpi-20040326-2.4.26.diff.gz, but the kernel version is so old that I can't find it. does anyone know where I could get it?
Posted by Supermuncher on June 25 2005,13:53
Have almost the same problem. As far as I can tell the probleme really is the Kernel. I decided to opt for another Distro as I had no luck in patching it or using any ACPI work arounds. I also tried to find the acpi 2.4.26 patch but as you said, it so old by now that it would be more luck than anything else. Couldn't even find it in Archives.Going for a Debian Sarge install with Kernel 2.6. However this takes up somewhere around 300-600Mb. With all the Software more like 1Gig (like Icewm, Xine, OpenOffice, Pdfreader, Firefox,Thunderbird etc.) Thats the price you have to pay for the newer super sized kernel. Can understand why their sticking with 2.4 Posted by arew264 on June 25 2005,14:49
Well, considering that my laptop is a Dell Latitude D300xt that runs at 300mhz and has a 6.4g hard drive, and also considering that I have tried to run Debian, Ubuntu, Knoppix, and Kandrake with no luck, I guess I'm just going to have to rely on the old battery light. If anyone has an idea, let ne know at arew264 at gmail.com. Thanks for posting.
Posted by tempestuous on June 26 2005,02:08
That ACPI patch is still here -< http://atik.ciril.fr/pub....6 > But getting the DSL customised 2.4.26 kernel source is the problem. It used to be here - < http://developer.linuxtag.net/knoppix/i386/ > but is now absent from the download list. You could ask at < http://www.knoppix.net/forum/ > Posted by arew264 on June 26 2005,02:21
I'm lost. Do i just install the patch? Whats the customized kernel source? How do I install the patch anyway?
Posted by arew264 on June 26 2005,02:26
I just found this:< http://developer.linuxtag.net/knoppix....386.deb > Is there a way to substitute an image for a source? I don't really understand this. Posted by tempestuous on June 30 2005,13:35
The Knoppix kernel source has changed location - < http://developer.linuxtag.net/knoppix/sources/ >See my post about recompiling a kernel - < http://damnsmalllinux.org/cgi-bin....;t=3851 > It's not for the faint-hearted. Posted by arew264 on June 30 2005,19:05
Thanks for the kernel source, but the instructions for patching that you link to do not include instructions for a .deb. I just used dpkg -i to install it, yet it appears to have no effect. What do I have to do to get this to work?
Posted by tempestuous on July 02 2005,05:32
"dpkg -i" is fine - this will just uncompress the kernel source into its correct location - /usr/src/linux-2.4.26.Before you do anything else, it's important to link this directory to /usr/src/linux, as such - ln -s /usr/src/linux-2.4.26 /usr/src/linux Then apply your ACPI patch. There should be a README file with this patch to explain how. Now the all-important configuration should be based on the existing one - don't change any settings unless the ACPI patch specifies it. Posted by ke4nt1 on July 02 2005,05:45
I hadn't seen this mentioned anywhere in this thread..For compatibility's sake, with ALL hardware out there... Your defaults for DSL at boottime may include.. noacpi or noapm Check your boottime options, and if you see these, remove them to re-enable these features.. If you discover lockups, or compatibility issues, simply disable them, by adding back in the noapm or noacpi boottime options.. 73 ke4nt Posted by tempestuous on July 02 2005,08:39
Yes, a sensible word of caution to not undertake a kernel rebuild unnecessarily.I would add another word of caution: even though I located that ACPI patch, I have no idea what it does. Are you reasonably sure that this patch will achieve what you want? Posted by arew264 on July 02 2005,14:12
Yes, I did a search for Latitude CPi and ACPI, and found a linux user who had to use the latest patched 2.4.26 kernel, with a link to the patch. I believe that this should work... I hope.... Thanks for your help, I'm going to try to get it to work.
Posted by arew264 on July 02 2005,14:26
Well, I am still kind of confused because when I went to the /usr/src directory, all that was there was kernel-source-2.4.26.tar.bzip2. I think that this was what the packages gave me. Should I just unzip it and follow the directions you linked to?
Posted by tempestuous on July 03 2005,02:26
Yes -tar -jxvf kernel-source-2.4.26.tar.bz2 ln -s /usr/src/linux-2.4.26 /usr/src/linux Put the ACPI patch in /usr/src and uncompress it - gunzip acpi-20040326-2.4.26.diff.gz Sometimes, patching works best from the kernel source directory, thus - cd /usr/src/linux patch -p1 < /usr/src/acpi-20040326-2.4.26.diff If this seems not to work, the other option is to be in the same directory as the patch itself - cd /usr/src patch -p0 <acpi-20040326-2.4.26.diff Now you're ready to recompile the kernel. http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html is the complete guide, my summarized notes are - cd /usr/src/linux make xconfig "LOAD CONFIGURATION FILE ..." find the existing config file make dep make clean make bzImage make modules (this can take hours) make modules_install make install make clean If you do not see a new kernel now in the /boot directory, you will need to manually copy it there - cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage Modify LILO to be able to boot to this new kernel. Keep your existing boot options as well, so you can still boot to the old kernel in case the new kernel fails. Craig S Posted by arew264 on July 04 2005,03:22
I'm sorry if I sound like a complete moron (I'm new to the whole kernel business and I'm afraid to mess up). I have two questions.First, when I try to apply the patch, I get a command not found error. What app do I need to install to get the patch command? Second, what exactly constitutes modifying LILO to boot the new kernel? Thanks a ton for your help so far, I never would have been able to even get this far without help. Posted by tempestuous on July 04 2005,05:34
Do you have the build packages installed - gcc1.dsl and gnu-utils.dsl - from the mydsl download section?I thought that "patch" would be included in these packages, but I don't know for sure. If not, you might be able to install the deb - < http://packages.debian.org/unstable/utils/patch > Personally, I would be more confident about using Knoppix 3.4 as a development environment. Lilo is your bootloader. Its configuration file is /etc/lilo.conf. Open this file in a text editor and you will see your boot setup at the bottom. Add a new entry - image=/boot/bzImage (the new kernel) label=MYNEWKERNEL initrd=/boot/minirt24.gz append="<WHATEVER>" read-only Save. Now run the command "lilo". Next time you reboot you will see a new bootup option "MYNEWKERNEL". Posted by arew264 on July 04 2005,19:22
Well, it went fine to xconfig, where at first the command gcc-2.95 was not found, so I searched the debian packages and installed it. Then it said that the command wish could not be found. I searched the internet and found that I needed to install tk and tcl. tk went in fine, but tcl had problems with already defined variables, etc. There is a rather long list of errors. Is there a package from Debian or MyDSL that I can use to get past this error?PS I am still on make xconfig. Posted by arew264 on July 04 2005,19:51
Just to let you know, I found debian packages for tk and tcl. Iwill post back if I need further help.
Posted by arew264 on July 04 2005,23:36
Well, surprise surprise, I am having a problem. Aparently, the whole install process didnt make a file named bzImage. I have also found another place where a debian package placed an unzipped kernel. I will try to use that one... this is kinda wierd but hey, if it works it'll all be worth it.THanks foruall your help. I will post back with the results. Posted by arew264 on July 04 2005,23:42
I was wrong, the files I found were only the documents associated with the kernel source. I guess maybe I had the wrong file? I dunno. I think that I'll try again in a bit.
Posted by tempestuous on July 05 2005,03:28
Some amendments to my instructions - the uncompressed kernel source directory is kernel-source-2.4.26, not linux-2.4.26.So the symlink should be done as - ln -s /usr/src/kernel-source-2.4.26 /usr/src/linux (this may overwrite an existing symlink, no matter) And at < ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/ > I found a README which lists the patch command as - patch -Np1 < acpi-xxx.diff Regarding the kernel configuration file, I just uncompressed the kernel source and it doesn't appear to be there. In Knoppix 3.4, it can be found here - /boot/config-2.4.26. In DSL, I'm not sure. You need to load this file in xconfig, then save. Posted by tempestuous on July 05 2005,12:36
Having located these various files and notes, what the heck, I just went ahead and recompiled the kernel & modules.The new kernel boots OK, but of course I don't know if the ACPI stuff does what it's supposed to do. Email me if you want me to send it to you. I have made a tarball with all necessary files, filesize just over 1MB. Posted by Max on July 05 2005,13:54
There is an a dsl window manager app called wmacpi_1.99r7.dslIf you download and run this app you should see an ACPI monitor box added to the other window apps in the lower right corner. It should show the status (% charge) of your battery. If the new kernel is working ok, this should be displaying data... Posted by arew264 on July 06 2005,01:46
Well, I am in the process of putting instructions together and recompiling the kernel again. When the menu for mods to put in the kernel comes up (where you said to load the configuration file) I believe that there is a separate dell acpi module. I'm going to recompile with this included and if it works, I'll post the instructions, requirements, etc.
Posted by tempestuous on July 06 2005,13:05
I looked at the xconfig options just prior to the recompile, and didn't see anything specific to Dell in the "General setup" > "ACPI support" section ... though I can say that that the newly compiled "standard" acpi modules (in /lib/modules/2.4.26/kernel/drivers/acpi) are different filesizes than the old modules - so it appears that the ACPI patch has modified these.So I just had another look at xconfig now, and there's another section - "Processor type and features" and I see a module option for "Dell laptop support". There's a help button which identifies this module as /lib/modules/2.4.26/kernel/drivers/char/i8k.o, and a link to www.debian.org/~dz/i8k/ It might be worth reading the information at this website - especially the part about being able to force load this module (modprobe i8k force=1), but the newly compiled i8k module doesn't appear any different to the existing i8k module in DSL. Posted by arew264 on July 06 2005,15:09
Well, yes, there is no Dell ACPI option, and the i8k module doesn't do ACPI, that is simply for monitoring the specialized bios functions (theres bios volume, brightness, etc). I use I8k to turn on the fan on ly laptop as the thermal sensor is dead and its more than the cost of the laptop to replace it. I loaded the new kernel, and it appeared to work find, but still no acpi. I just booted feather linux off of a cd and it found it fine and can run the wmacpi dockapp. It's kinda freaky because the only major difference would appear to be the 2.4.27 kernel. Considering that DSL just crashed for me (tried to load too many games LOL), I think I'll just stick with Feather.Sorry to be a betrayer but it works on my box. Posted by tempestuous on July 10 2005,01:41
Yep. Newer kernel figures.You're not a betrayer, DSL and Feather are closely related. For hard drive installation, where size is not such an issue, Feather is probably the better option anyway. |