asus_wmi_set_devstate(9)
π asus_wmi_set_devstate(9) π
okay bestie, welcome to the Kernel API Manual corner of the group chat π
this page is all about asus_wmi_set_devstate, and itβs giving βset the WMI function stateβ energy. no cap.
β¨ NAME β¨
asus_wmi_set_devstate β Set the WMI function state. periodt. π
π¦ SYNOPSIS π¦
int asus_wmi_set_devstate (u32 dev_id , u32 ctrl_param , u32 *retval );
π ARGUMENTS π
dev_idβ The WMI function to call. like, which function are we poking, bestie? πctrl_paramβ The argument to be used for this WMI function. the little sidekick value that goes with the call β¨retvalβ A pointer to where to store the value returned from WMI. itβs the spot where the WMI answer gets dropped off π«Ά
β οΈ NOTE β οΈ
okay so this is important: anasus_wmi_set_devstatecall must be paired with aasus_wmi_get_devstate_dststo check if the WMI function is supported. not optional, bestie. itβs a whole must-must situation π
π₯ RETURN π₯
-ENODEVβ method ID is unsupported. like, that method said βnot todayβ π0β successful andretvalis filled. slay, the answer is in the pointer π- other β error from WMI call. not every call is a main character, sometimes itβs just an error π
π SEE ALSO π
- Kernel file
./drivers/platform/x86/asus-wmi.cβ go look at the source, bestie, itβs right there π asus_wmi_get_devstate_dsts(9)β the pairing buddy from the note above π«Ά
thatβs the whole vibe check from the ./drivers/platform/x86 source, dated October 2026, and this is asus_wmi_set_devstate(9) signing off ππβ¨
π¦ 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