Re:How to programmatically find out if computer is on
by stffrdhrn on Saturday November 20, 2021 @08:55PM
(#29293499)
I was hoping this would be implemented by actually reading a memory location that was set to 0, when the system is hibernating/sleeping. But it always returns 1. If it was reading a flag from memory it would be useful when examining memory dumps.
https://github.com/haiku/haiku/blob/8f16317a5b6db5c672f33181...