Live data from Hacker News

How to programmatically find out if computer is on

haiku-os.org

171–180 of 197 posts

Re: How to programmatically find out if computer is on

#171
post #164

Earlier quoted context omitted.

That's AMT, provided by Intel ME. As far as I'm concerned ME-equipped NICs should unconditionally be behind VPNs, but the AMT functionality itself is really cool. Even the 10+ year old machines that don't support VNC let you remotely hit CTRL+ALT+DEL, issue an ACPI shutdown, perform a hard reset (equivalent to hitting the reset button on 486-era boxen), etc. So basically you can do either soft or hard shutdowns or re…

Can it enter the password required to decrypt my LUKS partition? Lately this has been my biggest barrier to leaving a computer fully remote.

You can embed a minimal ssh server (like dropbear or tinyssh) in your initramfs to remotely enter the passphrase. There are some guides for that online

Re: How to programmatically find out if computer is on

#173

Nobody mentions the decades old BeOS blog www.iscomputeron.com ?

> but also something related to our beloved OS, and with a little humour to top it off, so after a brainstorming session we came up with Is Computer On, or ICO (cute uh?) for short. The developers out there (and many others) will most certainly recognize the is_computer_on() function, a very important one in our day to day computer usage :)

Re: How to programmatically find out if computer is on

#174

http://www.ismycomputeron.com

Is that talking about my computer or his computer?

Ah yes, the annoying Windows message "Do not turn off your computer" when it is running updates. Why is it telling me what to do with another computer? And I can turn it off since it isn't mine?

Re: How to programmatically find out if computer is on

#175
post #164

Earlier quoted context omitted.

That's AMT, provided by Intel ME. As far as I'm concerned ME-equipped NICs should unconditionally be behind VPNs, but the AMT functionality itself is really cool. Even the 10+ year old machines that don't support VNC let you remotely hit CTRL+ALT+DEL, issue an ACPI shutdown, perform a hard reset (equivalent to hitting the reset button on 486-era boxen), etc. So basically you can do either soft or hard shutdowns or re…

Can it enter the password required to decrypt my LUKS partition? Lately this has been my biggest barrier to leaving a computer fully remote.

Store the LUKS crypto key in the TPM, and make sure secure boot is used so the TPM will only reveal the key if the systems boot chain is verified.

Re: How to programmatically find out if computer is on

#180
Impl code here[1]:

  int32
  is_computer_on(void)
  {
      return _kern_is_computer_on();
  }


  double
  is_computer_on_fire(void)
  {
      return 0.63739;
  }
[1] https://github.com/haiku/haiku/blob/master/src/system/libroo...

Was used by the Haiku doc, namely "System calls"[2], as an example.

[2] https://www.haiku-os.org/documents/dev/system_calls/

Post reply on HN