lwmi_gz_profile_set(9)
π lwmi_gz_profile_set β Kernel API Manual energy (section 9, bestie)
okay so welcome to lwmi_gz_profile_set(9), the little kernel function that's literally the main character of setting your platform profile β¨ no cap, she's the one you call when you actually want the profile to change.
πΈ SYNOPSIS πΈ
int lwmi_gz_profile_set (struct device *dev , enum
platform_profile_option profile );
look at her π returns an int, takes two args, done. short and iconic.
π ARGUMENTS π
devβ the Gamezone interface parent device. that's the whole vibe, she needs her parent device, don't leave her hanging πprofileβ pointer to the desired platform profile. this is the profile you want, your dream profile, your goal aesthetic π
π¦ DESCRIPTION π¦
okay so here's the tea β β she takes the platform profile you handed her and converts it into a thermal mode, and the conversion depends on the support level of the interface (so like, what the interface can actually do, iykyk). then she calls the WMI method to set that thermal mode. that's it, that's the whole plot π«Ά no extra steps, no side quests.
lowkey it's giving "translator bestie": profile in β thermal mode out β WMI method call. slay.
β RETURN β
0on success π- or an error code π (so like, vibe check it before you assume it worked, fr fr)
π SEE ALSO π
- Kernel file
./drivers/platform/x86/lenovo/wmi-gamezone.cβ the source, go read her lwmi_gz_mode_call(9)lwmi_gz_event_call(9)lwmi_gz_thermal_mode_supported(9)lwmi_gz_thermal_mode_get(9)lwmi_gz_profile_get(9)lwmi_gz_extreme_supported(9)lwmi_gz_platform_profile_probe(9)
ngl the whole friend group is in that list, go say hi to all of them π§
and that's the page!! brought to you by the fine people at ./drivers/platform/x86/lenovo, dated October 2026 π mwah, go set some profiles bestie π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms