diff options
author | Giovanni Mascellani <[email protected]> | 2019-11-22 11:15:18 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2019-11-22 20:08:58 -0800 |
commit | afe45277ade62438db8af8bbd812ead453b5d98d (patch) | |
tree | 3ab9d807ac1194072f7eb2286784af4a0f82eb0f /lib/mpi/mpiutil.c | |
parent | 59dfa75e5d82a1e1b3d090a1d51fc14f66844576 (diff) |
hwmon: (dell-smm) Add support for disabling automatic BIOS fan control
This patch exports standard hwmon pwmX_enable sysfs attribute for
enabling or disabling automatic fan control by BIOS. Standard value
"1" is for disabling automatic BIOS fan control and value "2" for
enabling.
By default BIOS auto mode is enabled by laptop firmware.
When BIOS auto mode is enabled, custom fan speed value (set via hwmon
pwmX sysfs attribute) is overwritten by SMM in few seconds and
therefore any custom settings are without effect. So this is reason
why implementing option for disabling BIOS auto mode is needed.
So finally this patch allows kernel to set and control fan speed on
laptops, but it can be dangerous (like setting speed of other fans).
The SMM commands to enable or disable automatic fan control are not
documented and are not the same on all Dell laptops. Therefore a
whitelist is used to send the correct codes only on laptopts for which
they are known.
This patch was originally developed by Pali Rohár; later Giovanni
Mascellani implemented the whitelist.
Signed-off-by: Giovanni Mascellani <[email protected]>
Co-Developed-by: Pali Rohár <[email protected]>
Signed-off-by: Pali Rohár <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Fixed checkpatch warnings]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions