My sysfs has details on current, voltage etc under the battery node /sys/class/power_supply/BATn. However, under the AC node, none of these details are available.

I'd like to know how to go about determining what the problem is,

  • Doesn't the hardware provide the data?
  • Do I lack a kernel module?
  • Some detail lacking in BIOS?
  • Any other questions that should be asked?

My kernel is 5.12.6 (archlinux)

  • A friend reports the same on a ubuntu @ 5.8.0.
    – lash
    Jun 14 at 8:21

Doesn't the hardware provide the data?

Usually, that's exactly the case. Usually even, because the hardware doesn't even sense that.

  • 2
    Most PC power supplies do not report this as it would add cost and not much benefit - AC draw is just DC use multiplied byt the efficiency of the PSU, usually ~90% ish. Power failure (/PWRGOOD) is detected as the lower-voltage internal rail drops. High end server gear might do it but I suspect the main purpose of the AC node is for smart UPS units to report the status of the mains voltage - nearly all APC units can connect by one or more of USB, serial or network to tell connected machines about power failure, spikes, etc.
    – John U
    Jun 14 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.