STRUCT AMD_SFH_INFO(9)
π NAME π
struct amd_sfh_info - get HPD sensor info from MP2 FW
Okay so bestie, this is the struct amd_sfh_info(9) page from the Kernel API Manual, and it's literally the lil' struct situation for HPD sensor info from MP2 FW. It's giving sensor-info storage energy, and honestly? Iconic. π
β¨
π¦ SYNOPSIS π¦
struct amd_sfh_info {
u32 ambient_light;
u8 user_present;
u32 platform_type;
u32 laptop_placement;
u32 op_mode;
};
π Members π
ambient_lightβ populates the ambient light information β¨ like, that's its whole job.user_presentβ populates the user presence information π bestie is either there or not.platform_typeβ operating modes (clamshell,flat,tent, etc.) πͺ the whole foldy-flip situation.laptop_placementβ device states (ontable,onlap,outbag) ποΈ where the laptop is at, fr fr.op_modeβ the Operating-mode field (seeenum sfh_dev_mode); it's used for tablet detection π± periodt.
π SEE ALSO π
Go peek at these too, bestie:
- Kernel file
./include/linux/amd-pmf-io.h enum sfh_message_type(9)enum sfh_hpd_info(9)enum sfh_dev_mode(9)struct amd_pmf_npu_metrics(9)
source/version: ./include/linux Β· date: October 2026 Β· page: struct amd_sfh_info(9) β byeee π«Άπ
π¦ 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