Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Laptop computer, fan does not switch on properly< Next Oldest | Next Newest >
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Nov. 27 2007,00:11 QUOTE

When 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?

Thanks,
John
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 27 2007,00:33 QUOTE

Take 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
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 27 2007,03:40 QUOTE

There 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:
Code Sample
$ sudo /etc/init.d/acpid start
- to see if anything changes.

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.

Edit:
Here's what I have under /proc/acpi:
Code Sample
$ ls /proc/acpi
ac_adapter           button               event                info                 sleep
alarm                dsdt                 fadt                 power_resource       thermal_zone
battery              embedded_controller  fan                  processor
- there is nothing under /proc/acpi/fan, but there is something under /proc/acpi/thermal_zone:
Code Sample
$ ls /proc/acpi/thermal_zone/THM
cooling_mode       polling_frequency  state              temperature        trip_points

$ cat /proc/acpi/thermal_zone/THM/temperature
temperature:             46 C
$ cat /proc/acpi/thermal_zone/THM/trip_points
critical (S5):           99 C
$ sudo echo -n 45 > /proc/acpi/thermal_zone/THM/trip_points
bash: /proc/acpi/thermal_zone/THM/trip_points: Permission denied

Note that you can start acpid at boot using the boot code "acpid" and you can check it has started by:
Code Sample
$ sudo cat /var/log/acpid
[Tue Nov 27 09:59:23 2007] starting up
[Tue Nov 27 09:59:23 2007] 4 rules loaded

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.
Back to top
Profile PM 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Nov. 27 2007,12:21 QUOTE

@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.

Many thanks,
John
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 27 2007,13:17 QUOTE

Quote
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.

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:
Code Sample
${color red}$hr
${color grey}Uptime:   $color $uptime
${color #ddd}Battery:  $color ${battery}
${color #ddd}CPU Temp: $color ${acpitemp} degC
${color green}$hr$color
$sysname $kernel on $machine
${color grey}Host: $color$nodename ${execi 180 ~/.torsmo_ip}
${color red}$hr

Then, to restart:
Code Sample
$ killall torsmo
$ torsmo
Back to top
Profile PM 
16 replies since Nov. 27 2007,00:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: Laptop computer, fan does not switch on properly

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code