Re: PROBLEM: CPU fan shuts down on load of fan.ko in kernel 2.6.18 and later

Matthew Brett
2007-01-07T20:10:48Z

Hi,

I am sorry, I am a bit lost. Should I expect replacing:

> + device->flags.force_power_state = 1;
> + acpi_bus_set_power(device->handle, state);
> + device->flags.force_power_state = 0;

with:

> + if (state == ACPI_STATE_D0)
> + acpi_bus_set_power(fan->handle, ACPI_STATE_D3);
> + else if (state == ACPI_STATE_D3)
> + acpi_bus_set_power(fan->handle, ACPI_STATE_D0);
> + acpi_bus_set_power(fan->handle, state);

in fan.c from 2.6.20-rc3 should solve the problem (replacing
fan->handle with device->handle)? It does not seem to.

Thanks a lot for the feedback...

Matthew