This may well be a daft question and/or a failure to google effectively (and apologies if this would be a better fit on SuperUser or somewhere else?) but is it possible, in low-level hardware, to detect the "run" status (possibly ACPI state) of a PC?
As in - can we know whether it's powering up, shutting down, running, rebooting, hibernating, etc. from some signal on the motherboard? Perhaps a status pin on the PSU or PCI bus, sniffing I2C/SMBus messages or something else that can be hooked into at a low level.
I feel like it must be possible as a lot of peripheral stuff needs to know this too, ideally without a driver / software.
I've seen PCI cards that display the POST code / state, I'm after doing something similar for the power state.
What triggered my interest is I've got a server that takes a fair while to reboot, and it would be nice to have a little LED on the front that indicates "I'm rebooting" / "I'm running".
Sure it would be doable with a CRON job and a message out of the serial port to a microcontroller or somesuch, but that feels like more tinkering than just "getting" the status straight out of the hardware.