APS(4)

πŸ“¦
version 11.0 Β· 2 versions
, in nixpkgs unstable

✨ APS(4) ✨

okay bestie, this is the manual page for aps β€” the ThinkPad Active Protection System accelerometer driver, from the Kernel Interfaces Manual. yes it's giving hardware-nerd energy and yes I'm obsessed πŸ’…


🌸 NAME 🌸

aps β€” ThinkPad Active Protection System accelerometer πŸŽ€

⭐ SYNOPSIS ⭐

aps0 at isa? port 0x1600

πŸ’– DESCRIPTION πŸ’–

So the aps driver provides support for several sensors found in some ThinkPad laptops. lowkey iconic of it 🫢

The sensors currently exposed via the envsys(4) interface are:

  • x-acceleration β€” units: integer β€” X-axis acceleration
  • y-acceleration β€” units: integer β€” Y-axis acceleration
  • x-variable β€” units: integer β€” Weighted X acceleration?
  • y-variable β€” units: integer β€” Weighted Y acceleration?
  • temperature 1 β€” units: degC β€” Unknown temperature
  • temperature 2 β€” units: degC β€” Unknown temperature
  • keyboard active β€” units: boolean β€” Keyboard activity
  • mouse active β€” units: boolean β€” Mouse activity
  • lid open β€” units: boolean β€” Lid state

(and yeah, those question marks on the weighted accelerations are literally in the original β€” nobody knows for sure and honestly? relatable 😭)

πŸ¦‹ SEE ALSO πŸ¦‹

envsys(4), hpacel(4), thinkpad(4), envstat(8)

🌈 HISTORY 🌈

The aps driver first appeared in OpenBSD 3.8 and was then ported to NetBSD 5.0. glow-up behavior ✨

πŸ‘‘ AUTHORS πŸ‘‘

The aps driver was written by Jonathan Gray <jsg@openbsd.org>.

πŸ’€ CAVEATS πŸ’€

okay so there are a few issues and we gotta be honest about them, no cap:

  • The aps driver does not maintain state and subsequently does not take evasive action when it thinks the hard drive is in danger. Possible actions would include spinning down the hard drive in case excessive tremor is detected by the sensors. (so like, it senses the fall but does not save the drive β€” tragic, I know πŸ’€)
  • The Y axis on X40 and possibly other models seems to be inverted. It is unknown how to distinguish between different versions of the accelerometer to compensate for this in the driver at this time. πŸ™ˆ
  • The sensor values are refreshed every 0.5 seconds. Because no protection measures are taken, this is unnecessary and may have a negative effect on battery life. not great, not terrible πŸ”₯
  • As IBM provides no documentation, it is not known what all the available sensors are used for. (mystery sensors, main character energy fr fr)

Dept. of cute sign-offs πŸ’Œ: this page comes from the Debian source, version/date <italic>July 13, 2011</italic>, and it's filed under APS(4). slay, go read your sensors bestie πŸ’…πŸŽ€

πŸ“¦ where this page comes from