acpi_listen(8)

πŸ’– acpi_listen β€” bestie's guide to the ACPI event listener πŸ’–

okay so this is acpi_listen from section 8 (System Manager's Manual, the system-admin corner of the manual-verse), and it's genuinely one of my fave lil tools because it's so simple and does exactly one thing beautifully. no cap.


✨ NAME ✨

acpi_listen β€” an ACPI event listener 🎧

like, it listens. that's the job. that's the whole job.


🌸 SYNOPSIS 🌸

acpi_listen [options]

that's it bestie, that's the entire vibe πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

so. acpid is the system-wide ACPI event catcher β€” the big one, the main character, the one actually holding it down for the whole system. πŸ‘‘

acpi_listen is a simple, shell-friendly tool that connects to acpid and listens for events. when an event happens, acpi_listen prints it on stdout. that's it. no drama, no config files, just vibes and event output. ✨

if you've ever wanted to see what your laptop is yelling at the kernel about (lid closed, power button, that one weird key), this is the tool. iykyk.


🌈 OPTIONS 🌈

  • -c, --count events β€” receive up to a maximum number of ACPI events, then exit. so like, "okay bestie, give me 3 events and then we're done" β€” it bails after that many. πŸ“
  • -s, --socketfile filename β€” this changes the name of the UNIX domain socket which acpid opens. default is /var/run/acpid.socket. 🧚
  • -t, --time seconds β€” listen for the specified time in seconds, before exiting. a lil timer, a lil commitment, and then it's out. ⭐
  • -v, --version β€” print version information and exit. πŸ’œ
  • -h, --help β€” show help and exit. 🫢

πŸŽ€ FILES πŸŽ€

  • /var/run/acpid.socket

the socket. the connection point. the whole reason this works. πŸ”₯


πŸ’€ BUGS πŸ’€

there are no known bugs. literally flawless, we love to see it. 😭✨

to file bug reports, see AUTHORS below. (yes, actually β€” that's where it points you. iconic.)


πŸ‘‘ SEE ALSO πŸ‘‘

go say hi to the parent process, she's doing great πŸ’–


πŸ¦‹ AUTHORS πŸ¦‹

  • Ted Felix (www.tedfelix.com)
  • Tim Hockin <thockin@hockin.org>
  • Luca Capello <luca@pca.it>

the trio. the legends. the ones who made this happen. 🌸


no notes, no cap β€” every flag above does exactly what it says, so go ahead and run it and watch the events roll in πŸ’…

and that's the whole page bestie πŸŽ€ β€” this one's from the System Manager's Manual, dated Nov 2003, which is giving vintage-but-still-slaying energy fr fr. periodt. πŸ’–βœ¨