Laptop computer, fan does not switch on properly
Topic: Laptop computer, fan does not switch on properly
started by: john.martzouco
Posted by john.martzouco on Nov. 27 2007,00:11When the fan runs on this machine, I know it! Sometimes, it will run before DSL starts up but then stops once the desktop gets fully displayed... then it never starts again.
The fan works properly when I run the machine under Windows XP, so I'm confident there are no hardware issues involved.
I've tried erasing the noacpi and noapm bootup codes from GRUB, with no change in performance. I'm running 4.0 or 4.1Rc1, I don't remember which it is... is there a version stamp somewhere?
When DSL boots up, I see it mention that the motherboard is ACPI and then see battery, fan, thermal and a couple of other words display in yellow text.
I've gone looking into /proc/acpi/fan/ as Curaga suggested in another thread, but I do not find a subfolder named FAN0 so I cannot create 'state' file to manually turn on the fan. I've seen two folders there named CL01 and CL02 (iirc).
What can I do next?
Posted by roberts on Nov. 27 2007,00:33Take a look in:
ls -l /opt/acpi/actions/
These are scripts to be used with acpi.
Juanito is one of our resident experts in apci.
Hopefully he will see your post.
Also try the Search feature of the forums.
As for release info. It is displayed during boot up.
It is displayed on the first tab of System Stats.
And finally is a simple text file in /usr/share/doc/dsl/release.txt
Posted by Juanito on Nov. 27 2007,03:40There was post about a similar problem a while ago in these forums. Maybe the acpid daemon is not running after your machine starts - try this:
I have the cpu temperature displayed via torsmo on my machine and can see that the fan cuts in when the temperature increases above about 55degC (usually when compiling). There appear to be settings that control the temperature at which the fan starts, but I never tried to change these.
I'm using my laptop in w2k at the moment - I'll have a look at the fan settings next time I boot dsl.
Here's what I have under /proc/acpi:
Note that you can start acpid at boot using the boot code "acpid" and you can check it has started by:
I'm guessing the bios controls the fan on my machine - if starting acpid does not help on your machine, you could always try apm instead of acpi.
Posted by john.martzouco on Nov. 27 2007,12:21@Juanito,
This helps, thank you.
1) I looked for the acpid log file in /var/log and it was not there on normal bootup.
2) I ran /etc/init.d/acpid start... and it created the log file, so now I know the dameon is started.
3) I changed the cheat code in /boot/grub/menu.lst to 'acpi' instead of noacpi. Rebooted and it looks like it might have had effect because acpid log file exists again.
4) My equivalent of /proc/acpi/thermal_zone/THM is... /proc/acpi/thermal_zone/C106
5) it contains 5 files you mention:
temperature: 79 C
critical (S5): 95 C
6) I used 'more' to read above info... it looks like you executed temperature... but it doesn't at the same time... is it just the way your PS1 is set up?
I'll watch it later today as the temperature climbs.
Thanks a milion!
I'd *love* toget the battery monitor and temperature monitor scripts hooked up to my Torsmo. It's on my to-do list. I've read some entries about them and it doesn't sound too hard. Any chance you could send me your files and spare me some effort? I'm running 4.1RC3.
Posted by Juanito on Nov. 27 2007,13:17
torsmo should already show the battery time remaining, to see the cpu temp, change the end of the file /home/dsl/.torsmorc to look like this:
Then, to restart:
Posted by john.martzouco on Dec. 04 2007,03:02
Hi Robert and all,
I'm looking at these scripts on my virtualized RC3... will they look exactly the same as what exists on the laptop with a traditional HD install? Just wondering whether these are 'canned' or whether something in the system generates them at startup.
If they are consistent, I don't see any mention of the fan in any of them.
Does anybody run a laptop with DSL and know for sure that their ACPID is functioning and controlling the fan? I could use some help getting this running.
Is it easier to control APM?
Funny thing is DSL boots up and displays that it's found an ACPI enabled motherboard and then list the battery, fan, etc modules.
Posted by jpeters on Dec. 04 2007,03:45
I run my Dell laptops with acpi=off, which seems to work much better, and don't recall ever having problems with the fan.
Posted by roberts on Dec. 04 2007,04:15Some laptops may require
Posted by Juanito on Dec. 04 2007,04:34If the acpi modules (battery, fan, etc) are loading OK then "acpi=force" probably isn't needed. As mentioned, there was a earlier thread on a similar topic (that I cannot find) where using "acpi=off apm" got the fan going.
Flashing the bios to the latest version also might help
Posted by john.martzouco on Dec. 04 2007,11:36
I'm willing to try this. I know there are risks involved. Is there any way for me to back up the current BIOS before I attempt this? My machine is a P2-300MHz Compaq Armada 1750.
Posted by curaga on Dec. 04 2007,17:02The utility will usually let you back up the current bios; so if flashing fails, you can flash the previous bios back before rebooting.
Posted by john.martzouco on Dec. 04 2007,17:05ok, I`ll go searching for the latest one for my machine. This morning I found the one for the newer 400MHz model and it`s release date was 1999, so I don`t hold much hope for anything newer for the 300MHz I have.
Does the BIOS setup page usually report what release is loaded on the machine? Would a BIOS from 1999 report this info?
I'll be loading this up tonight: < ARMADA 1750 6300/T/4000/D/M/1 ROMPaq >
Posted by curaga on Dec. 04 2007,17:29My desktop compaq only reports the date; it was from -97 when I got it, and I flashed it to a bios from -99. The boot time nearly cut to half, amazing when they actually update something useful
Posted by john.martzouco on Dec. 06 2007,02:38
Finally got around to this. And I flashed the BIOS to the latest (nov 1999)
Trying a few things.
First, I disabled ACPI in the BIOS. Saw the Battery % for the first time ever. Showed steady 100% with the cord plugged in or not. Didn't see any fan, thermal, battery etc modules get loaded. Fan didn't spin. CPU temperature displayed 0 zero degrees C.
Then I reset the BIOS to use ACPI. Battery % shows nothing just like usual. CPU temperature shows 75C at startup... watching it climb. 6 ACPI modules activated ac, battery, button, fan, processor, thermal.
hmmm... fan never kicked in (like usual).
I have no clue how to use APM instead of ACPI. What's the difference between ACPI and the APIC boot code?
Thanks so far, what can I try next? Remember, this machine runs fine under XP.
Here's what I found when I grepped ACPI dmesg:
What do the <N> numbers signify?
And I finally found the 'state' files Curaga mentioned in the other post. My fans are labelled C102 and C104 (I saw it in dmesg above). When I more state in both folders, I see status: on but fans aren't spinning. I tried:
as suggested by Curaga... made no difference. Thought maybe I could cycle them off and back on, so I tried "0" instead and it also had no effect. hmmm... I didn't get any errors, and I was using shell as root, but it really seems to me that I cannot change the contents of this file - as if the daemon overrides my changes immediately.
Posted by Juanito on Dec. 06 2007,03:25
- apm is the power management system that came before acpi. As mentioned, to use it try "acpi=off apm"
Posted by john.martzouco on Dec. 06 2007,14:03
Is this any different from using boot codes noacpi apm?
I've tried the above with no better results.
Posted by john.martzouco on Dec. 08 2007,09:41Am trying apm acpi=off
First, a good sign... for the very first time, I saw my Battery status in torsmo reported correctly. charging and 90% while plugged in, 90% now that I've unplugged.
How do I get the CPU Temp information into torsmo with apm?
I've tried the following in .torsmorc, but it didn't work:
Found the Conky man page and didn't find anything that could help monitor temperature udner apm.
Looking for apm man page to find equivalents to /proc/acpi/thermal etc.