DETECTUPS(8)
π¦ detectups(8) β the UPS whisperer π
ok so real talk, bestie: this is page DETECTUPS(8) from the System Manager's Manual, and it's about to make your UPS talk to your computer. no cap. π
β¨ NAME β¨
detectups β the UPS detection / powerd configuration generator, aka the little icon that figures out what your backup battery is screaming about π
πΈ SYNOPSIS πΈ
/sbin/detectups [tty]
that's it. that's the whole vibe. one optional tty and you're off π«Ά
π DESCRIPTION π
okay so here's the tea π β detectups monitors the serial port that's connected to your UPS device and tries to figure out the method your UPS uses to tell you the power went out. like, every UPS has its own love language and this tool is here to translate π
it will literally ask you to yank the power cord out of the wall (the one going to the UPS, bestie, not your whole setup π) β or alternatively, to push the UPS's test button. Then it watches what all happened, and asks if you want to generate a config file based on your UPS and cable configuration. slay. β¨
π¨ heads up:detectupsneeds to watch attywith modem control properties. if it doesn't have those, it's giving nothing and it won't work.
for further information, please refer to the powerd documentation β it's the main character energy of this whole operation π
π§ ARGUMENTS π§
- Serial-Device β some serial port that is not being used by some other device, and does not share an interrupt with any other serial port. fr fr, don't share. sharing is not caring here. π
/etc/powerd.confβ yep, this is just listed here in the ARGUMENTS section. we keep the facts, we don't question the formatting. π
π FILES π
/etc/powerd.confβ thepowerdconfiguration file thatdetectupsgenerates. this is the whole point of the exercise π/etc/inittabβ becauseinitis what actually issues the shutdown. like,detectupswrites the config, butinitis the one who shows up and does the thing. respect the chain of command π
β SEE ALSO β
powerd(8), shutdown(8), wall(1), inittab(5) β go read these, iykyk π
π AUTHOR π
James Brents <James@nistix.com> β with parts of this man page borrowed from all over the Linux community π«Ά (community effort, iconic behaviour, we love to see it)
and that's the page, bestie π¦ β it came from the System Manager's Manual, and the footer says DETECTUPS(8) down at the bottom, so you know it's official. go detect some UPSes, you've got this πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: powerd 2.0.2-bp160.1.12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms