All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tommi Kyntola <tommi.kyntola@ray.fi>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, "Karasyov,
	Konstantin A" <konstantin.a.karasyov@intel.com>
Subject: Re: acpi-fan-after-suspend-to-mem-fix.patch
Date: Tue, 06 Mar 2007 08:58:27 +0200	[thread overview]
Message-ID: <45ED1113.2070406@ray.fi> (raw)
In-Reply-To: <20070305170418.866b3921.akpm@linux-foundation.org>


Negative,
Konstantin explained the reasons why it's intentionally been set to _D0.

"Actually, I've meant the situation where the system could go down on thermal
(possibly h/w) shutdown during suspend. If the fans stay on during suspend,
where thermal control is possibly not working already, thermal shutdown is less
likely to occur."
(bugzilla #7122)

Also it's possible that the thing has been fixed by other means in 2.6.21-rc2
already, it's just that since the c5a7156959e89b32260ad6072bbf5077bcdfbeee
(by Bob Moore Feb 2nd) commit my laptop hasn't woken up from suspend.

Just finished bisecting that, but it seems that there are future
changes that also have impact. And as I'm writing this I'm still in the
middle of reverting that and checking how the fan works. I'll report
as soon as I'm done with that.

But to summarize, it seems like the fix I represented there is not the
way to go.

cheers,
Tommi Kyntola

Andrew Morton wrote:
> Should I merge this into mainline??
> 
> 
> From: Tommi Kyntola <tommi.kyntola@ray.fi>
> 
> acpi_fan_suspend should probably set state to ACPI_D3, rather than ACPI_D0.
>  With this change the fan works after S3 suspend atleast on HP nw8000
> laptop, for which the suspended fan has been broken since sword-and-stone.
> 
> Why this was ACPI_D0 beats me, but it's been that way since the
> _suspend/_resume functios got added in the commit
> 0feabb01d93e5801d1127416a66cfc3963280bca (2.6.18-rc1, I think).
> 
> The fan hasn't worked on my HP nw8000 laptop after an S3 suspend ever, but
> fixing that to ACPI_D3 there finally makes it work as expected.
> 
> If there was some hidden reason why that was set to ACPI_D0, then perhaps a
> config option for some ICH4 or HP laptops is called for.
> 
> Signed-off-by: Tommi Kyntola <tommi.kyntola@ray.fi>
> Cc: Len Brown <lenb@kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/acpi/fan.c |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/acpi/fan.c~acpi-fan-after-suspend-to-mem-fix drivers/acpi/fan.c
> --- a/drivers/acpi/fan.c~acpi-fan-after-suspend-to-mem-fix
> +++ a/drivers/acpi/fan.c
> @@ -241,7 +241,7 @@ static int acpi_fan_suspend(struct acpi_
>  	if (!device)
>  		return -EINVAL;
>  
> -	acpi_bus_set_power(device->handle, ACPI_STATE_D0);
> +	acpi_bus_set_power(device->handle, ACPI_STATE_D3);
>  
>  	return AE_OK;
>  }
> _
> 

      reply	other threads:[~2007-03-06  7:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06  1:04 acpi-fan-after-suspend-to-mem-fix.patch Andrew Morton
2007-03-06  6:58 ` Tommi Kyntola [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=45ED1113.2070406@ray.fi \
    --to=tommi.kyntola@ray.fi \
    --cc=akpm@linux-foundation.org \
    --cc=konstantin.a.karasyov@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.