[PATCH] acpi: fan after suspend-to-mem fix
- From: Tommi Kyntola <tommi.kyntola@xxxxxx>
- Date: Wed, 28 Feb 2007 14:48:08 +0200
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@xxxxxx>
---
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: [PATCH] vlan & net drivers: avoid a 4-order allocation
- Next by Date: Re: lanana: Add major/minor entries for PPC QE UART devices
- Previous by thread: [PATCH] vlan & net drivers: avoid a 4-order allocation
- Next by thread: 2.6.20-mm2: Oops in generic_make_request not git-block.patches fault
- Index(es):
Relevant Pages
- Re: swsusp and suspend2 like to overheat my laptop
... "if I suspend everynight instead of leaving it ... I've had this laptop running
for a couple of months without shutting down ... worried about damaging something that is close
by than damaging the CPU ... No fan there ... (Linux-Kernel) - Re: Laptop freezes with FC5
... Overheating was a problem with the original OS, ... The laptop was apparently
returned to the store by more than one customer because it would freeze. ... The co-worker I bought
it from realized the fan was not running once Windows booted, so bought it for a deep discount,
installed Ubuntu, and it ran fine for months. ... When I first power it up in FC5, it will
run for an hour or so before freezing. ... (Fedora) - Re: how to replace laptop fan?
... I make an effort to determine whether it is really the fan that is defective ...
I don't think I have any documentation for the laptop. ... push it and run off the battery
to test the fan. ... In the hole on the right, ... (sci.electronics.misc) - Re: Computer power usage
... Is M$ Windows compliant:) ... I've got a laptop in on the bench to try
and fix. ... What I had noticed was that the cooling fan while kicking in at switch on,
... (uk.rec.models.engineering) - Re: Suspend bug
... I grabbed the following from dmesg when i tried to "suspend" the laptop. ...
ADDRCONF: eth1: link becomes ready ... eth1: no IPv6 routers present ...
(Fedora)