logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

AC Power Status - Check Power Connection with systemd | Online Free DevTools by Hexmos

Check AC power status with systemd-ac-power. Determine if your Linux system is connected to external power source via the command line. Free online tool, no registration required.

systemd-ac-power

Report whether the computer is connected to an external power source. More information: https://www.freedesktop.org/software/systemd/man/systemd-ac-power.html.

  • Silently check and return a 0 status code when running on AC power, and a non-zero code otherwise:

systemd-ac-power

  • Additionally print yes or no to stdout:

systemd-ac-power {{[-v|--verbose]}}

See Also