public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: David Douard <douard-m7abxLq4WJJQFI55V6+gNQ@public.gmane.org>
To: Juliusz Chroboczek <jch-klhGwnj84BUD5ynB6aAmlA@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Re: kacpid and my daemon
Date: Wed, 24 Jul 2002 01:00:07 +0200	[thread overview]
Message-ID: <200207240100.07822.douard@pl.ecp.fr> (raw)
In-Reply-To: <87bs8y768s.fsf-ijrYHC+MxHL85LLnhfSrOV6hYfS7NtTn@public.gmane.org>

Le Mardi 23 Juillet 2002 18:34, Juliusz Chroboczek a écrit :
> DD> But, I have written a little user space deamon (fansd) which
> periodically DD> check themperature, and decide wether or not turn on/off
> fan. Because that DD> feature does not work out of my (very patched DSDT)
> ACPI system.
>
> That's weird -- it would appear that ACPI does properly export thermal
> zones and fans to userspace, but OSPM (the kernel-side
> power-management code) doesn't manage them?  I'd be curious to know
> how that can happen.

Yes it seems things happen like that. Note that I had to patch my DSDT to get 
batt and thermal working (among others). I think the problem comes from the 
bios/hardware, and not from OSPM (the ASL code is sooo buggy, I always thinks 
problems come from it. A buggy code like that is really some piece of art !). 
Because it seems that when temperature cross a limit (a trip point), no event 
is send to or catched by the EC. 
My trip-points are (active cooling mode): 

critical (S5):           98 C
passive:                 90 C: tc1=2 tc2=3 tsp=40 devices=0xc12f88e8
active[0]:               75 C: devices=0xc12f1e68
active[1]:               59 C: devices=0xc12f1868

And it is correctly updated if I change the cooling mode.
For instance, I am now compiling QT/embedded, so CPU is burning full speed, my 
temperature is 68 C, and my current thermal_zone state :
state:                   active[0]

which does not cerrespond to anything since my fan is on (low speed) only 
thanks to my dirty little daemon.

Now I've let temperature fall down to 57 C, and the thermal_zone state is 
still the same... 

And I never get thermal zone events (in my logfile,debugs on). 

>
> DD> The strange thing is that every time my deamon decide to change
> DD> the state of the fans, I have a zombi process which ps trace is :
>
> DD> note that 4609 is the PID of my fan daemon. I cannot make those process
> be DD> collected and eliminated but my killing my deamon...
>
> I've noticed this too, and I believe it's a bug in either ACPI's or
> the kernel's code for dealing with /proc; I haven't found the time to
> debug it, though.
>
> Could you check (with strace) whether all the ``close'' system calls
> in your code are successful?

I'll do that as soon as I can.

Thanks,
David


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

      parent reply	other threads:[~2002-07-23 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200204051427.g35ERYM20814@foobar.pps.jussieu.fr>
     [not found] ` <200207221802.52785.douard@pl.ecp.fr>
     [not found]   ` <200207221802.52785.douard-m7abxLq4WJJQFI55V6+gNQ@public.gmane.org>
2002-07-23 16:34     ` kacpid and my daemon Juliusz Chroboczek
     [not found]       ` <87bs8y768s.fsf-ijrYHC+MxHL85LLnhfSrOV6hYfS7NtTn@public.gmane.org>
2002-07-23 23:00         ` David Douard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200207240100.07822.douard@pl.ecp.fr \
    --to=douard-m7abxlq4wjjqfi55v6+gnq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=jch-klhGwnj84BUD5ynB6aAmlA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox