* [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020
@ 2026-08-02 21:03 Jonas Haugk
2026-08-02 21:05 ` sashiko-bot
2026-08-02 23:35 ` Armin Wolf
0 siblings, 2 replies; 3+ messages in thread
From: Jonas Haugk @ 2026-08-02 21:03 UTC (permalink / raw)
To: linux-hwmon; +Cc: pali, linux, linux-kernel, Jonas Haugk
Add the Dell OptiPlex Micro 7020 to the fan control whitelist using
the 0x34a3/0x35a3 SMM command pair.
Manual fan control was tested successfully with PWM values 64, 128,
and 255. The fan speed changed accordingly. Restoring automatic BIOS
fan control through pwm1_enable also worked correctly.
Tested on a Dell OptiPlex Micro 7020.
Signed-off-by: Jonas Haugk <j.haugk@gmx.de>
---
drivers/hwmon/dell-smm-hwmon.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
index 20920d4bd..23773421a 100644
--- a/drivers/hwmon/dell-smm-hwmon.c
+++ b/drivers/hwmon/dell-smm-hwmon.c
@@ -1655,6 +1655,15 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
},
.driver_data = (void *)&i8k_fan_control_data[I8K_FAN_30A3_31A3],
},
+ {
+ .ident = "Dell OptiPlex Micro 7020",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME,
+ "OptiPlex Micro 7020"),
+ },
+ .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
+ },
{ }
};
--
2.39.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020
2026-08-02 21:03 [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020 Jonas Haugk
@ 2026-08-02 21:05 ` sashiko-bot
2026-08-02 23:35 ` Armin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-08-02 21:05 UTC (permalink / raw)
To: Jonas Haugk; +Cc: linux-hwmon
> Add the Dell OptiPlex Micro 7020 to the fan control whitelist using
> the 0x34a3/0x35a3 SMM command pair.
>
> Manual fan control was tested successfully with PWM values 64, 128,
> and 255. The fan speed changed accordingly. Restoring automatic BIOS
> fan control through pwm1_enable also worked correctly.
>
> Tested on a Dell OptiPlex Micro 7020.
>
> Signed-off-by: Jonas Haugk <j.haugk@gmx.de>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260802210318.345995-1-j.haugk@gmx.de?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020
2026-08-02 21:03 [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020 Jonas Haugk
2026-08-02 21:05 ` sashiko-bot
@ 2026-08-02 23:35 ` Armin Wolf
1 sibling, 0 replies; 3+ messages in thread
From: Armin Wolf @ 2026-08-02 23:35 UTC (permalink / raw)
To: Jonas Haugk, linux-hwmon; +Cc: pali, linux, linux-kernel
Am 02.08.26 um 23:03 schrieb Jonas Haugk:
> Add the Dell OptiPlex Micro 7020 to the fan control whitelist using
> the 0x34a3/0x35a3 SMM command pair.
>
> Manual fan control was tested successfully with PWM values 64, 128,
> and 255. The fan speed changed accordingly. Restoring automatic BIOS
> fan control through pwm1_enable also worked correctly.
>
> Tested on a Dell OptiPlex Micro 7020.
Hi,
can you check if the I8K_FAN_30A3_31A3 pair also work? AFAIK this pair
is being used by recent releases of the OEM software, so i would prefer
using it.
Thanks,
Armin Wolf
>
> Signed-off-by: Jonas Haugk <j.haugk@gmx.de>
> ---
> drivers/hwmon/dell-smm-hwmon.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c
> index 20920d4bd..23773421a 100644
> --- a/drivers/hwmon/dell-smm-hwmon.c
> +++ b/drivers/hwmon/dell-smm-hwmon.c
> @@ -1655,6 +1655,15 @@ static const struct dmi_system_id i8k_whitelist_fan_control[] __initconst = {
> },
> .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_30A3_31A3],
> },
> + {
> + .ident = "Dell OptiPlex Micro 7020",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME,
> + "OptiPlex Micro 7020"),
> + },
> + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3],
> + },
> { }
> };
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-02 23:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-02 21:03 [PATCH] hwmon: dell-smm-hwmon: Add fan control for OptiPlex Micro 7020 Jonas Haugk
2026-08-02 21:05 ` sashiko-bot
2026-08-02 23:35 ` Armin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox