* Re: [PATCH] acpi: fan after suspend-to-mem fix
2007-02-28 12:48 [PATCH] acpi: fan after suspend-to-mem fix Tommi Kyntola
@ 2002-01-01 2:53 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2002-01-01 2:53 UTC (permalink / raw)
To: Tommi Kyntola; +Cc: linux-kernel, acpi-devel
Hi!
> 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,
You do not want to overheat while suspending.
(Yep, I'm doing some time travel in my spare time, sorry about that).
> @@ -243,7 +243,7 @@ static int acpi_fan_suspend(struct
> acpi_device *device, int state)
> 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;
> }
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] acpi: fan after suspend-to-mem fix
@ 2007-02-28 12:48 Tommi Kyntola
2002-01-01 2:53 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Tommi Kyntola @ 2007-02-28 12:48 UTC (permalink / raw)
To: linux-kernel; +Cc: acpi-devel
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.
Signed-off-by: Tommi Kyntola <tommi.kyntola@ray.fi>
---
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.
Kynde
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 045c894..7ae70b0 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -243,7 +243,7 @@ static int acpi_fan_suspend(struct acpi_device *device, int state)
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;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] acpi: fan after suspend-to-mem fix
@ 2007-03-01 12:24 Tommi Kyntola
0 siblings, 0 replies; 3+ messages in thread
From: Tommi Kyntola @ 2007-03-01 12:24 UTC (permalink / raw)
To: linux-acpi
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.
Signed-off-by: Tommi Kyntola <tommi.kyntola@ray.fi>
---
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 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.
drivers/acpi/fan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 045c894..7ae70b0 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -243,7 +243,7 @@ static int acpi_fan_suspend(struct acpi_device *device, int state)
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;
}
--
1.5.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-05 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 12:48 [PATCH] acpi: fan after suspend-to-mem fix Tommi Kyntola
2002-01-01 2:53 ` Pavel Machek
2007-03-01 12:24 Tommi Kyntola
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.