Re: [PATCH 3/8] platform: arm64: qcom-hamoa-ec: Switch fan profile based on power supply state
From: Anvesh Jain P
Date: Wed Aug 19 2026 - 01:19:41 EST
On 7/30/2026 11:51 AM, Anvesh Jain P wrote:
>> Is being on a (powerful) charger a prerequisite for entering this profile?
>> Currently plugging in a 5W charger would trigger the switch as well.
>>
>> Should this instead be exposed as a fan profile for userspace?
>>
>> Konrad
> Fair point — power_supply_is_system_supplied() only checks mains
> presence, not charger wattage, so even a 5W charger triggers the "best
> performance" profile. And exposing this via platform_profile instead of
> an automatic AC/battery switch would let userspace make the call
> instead. Will check on the feasibility of making this possible.
Even at 5W we're still not battery-constrained, so best performance
still makes sense, it's about wall power vs battery, not wattage. And I
don't think userspace needs control over this either, it's just an
automatic fan curve pick, not a performance setting users would want to
tune themselves.
--
Best Regards,
Anvesh