STRUCT AMD_SFH_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 (see enum 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