Re: Acer Aspire One fan control

From: Peter Feuerer
Date: Fri Feb 13 2009 - 13:59:25 EST


Matthew Garrett writes:

That depends on how you're doing it. Is the code available somewhere?

Just cleaned up the code and released it on my homepage, you can download it from: http://piie.net/files/acerhdf_kmod-0.2.tar.gz

If these io ports are also used by the firmware then you'll need to find ACPI methods to call to perform the fan control.

I get the temperature by calling ec_read(0x58) and can read/write the state of the fan by ec_write to / ec_read from 0x55. Actually I don't know if those embedded controller registers are used by the firmware. How can I find it out?

If there aren't any then it's not safe to have a driver to do this.

I think there should not be a problem when calling ec_write and ec_read from my kernel module, as those functions are atomic. Or am I wrong?

--peter
--
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/