All of lore.kernel.org
 help / color / mirror / Atom feed
* ACPI fan problems on HP pavilion desktop
@ 2005-05-28 19:54 Keenan Pepper
  2005-05-29 12:45 ` Len Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Keenan Pepper @ 2005-05-28 19:54 UTC (permalink / raw)
  To: linux-kernel

I'm trying to set up cpu clock modulation and ACPI fan support on my HP pavilion
a302x, so it runs quieter when it's not doing anything (the fan is pretty loud).
The cpufreq driver works great, but the ACPI fan driver not so good: it can turn
the fan off but not back on again.

I changed these lines in drivers/acpi/power.c:

-       if (resource->state != ACPI_POWER_RESOURCE_STATE_OFF)
-               return_VALUE(-ENOEXEC);
+       if (resource->state != ACPI_POWER_RESOURCE_STATE_OFF) {
+               ACPI_DEBUG_PRINT((ACPI_DB_WARN,
+                       "Device [%s] says it's still on", resource->name));
+               resource->state = ACPI_POWER_RESOURCE_STATE_OFF;
+       }

and now I can turn the fan off and on again, so it works for me, but I want to
figure out what's actually wrong so other people trying to run linux on this
machine can have it Just Work(tm) for them. Is it just buggy hardware that
doesn't comply with the ACPI spec? If so, is there some place where all the
workarounds for hardware quirks are collected?

Keenan Pepper


^ permalink raw reply	[flat|nested] 3+ messages in thread
* ACPI fan problems on HP pavilion desktop
@ 2005-05-27 20:38 Keenan Pepper
  0 siblings, 0 replies; 3+ messages in thread
From: Keenan Pepper @ 2005-05-27 20:38 UTC (permalink / raw)
  To: linux-kernel

I'm trying to set up cpu clock modulation and ACPI fan support on my HP pavilion 
a302x, so it runs quieter when it's not doing anything (the fan is pretty loud). 
The cpufreq driver works great, but the ACPI fan driver not so good: it can turn 
the fan off but not back on again.

I changed these lines in drivers/acpi/power.c:

-       if (resource->state != ACPI_POWER_RESOURCE_STATE_OFF)
-               return_VALUE(-ENOEXEC);
+       if (resource->state != ACPI_POWER_RESOURCE_STATE_OFF) {
+               ACPI_DEBUG_PRINT((ACPI_DB_WARN,
+                       "Device [%s] says it's still on", resource->name));
+               resource->state = ACPI_POWER_RESOURCE_STATE_OFF;
+       }

and now I can turn the fan off and on again, so it works for me, but I want to 
figure out what's actually wrong so other people trying to run linux on this 
machine can have it Just Work(tm) for them. Is it just buggy hardware that 
doesn't comply with the ACPI spec? If so, is there some place where all the 
workarounds for hardware quirks are collected?

Keenan Pepper

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-29 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-28 19:54 ACPI fan problems on HP pavilion desktop Keenan Pepper
2005-05-29 12:45 ` Len Brown
  -- strict thread matches above, loose matches on Subject: below --
2005-05-27 20:38 Keenan Pepper

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.