lwmi_gz_profile_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on success πŸ’–
  • or an error code 😭 (so like, vibe check it before you assume it worked, fr fr)

πŸ‘‘ SEE ALSO πŸ‘‘

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