I'm having a similar issue on Ubuntu 20.04 on a Lenovo P340, which is a desktop workstation system and thus doesn't even have any capability for battery operation without an external UPS. I'm attaching a copy of selected directories in /sys and /proc that the script inspects.
** Attachment added: "Tar of selected directories in /sys and /proc" https://bugs.launchpad.net/ubuntu/+source/powermgmt-base/+bug/1823521/+attachment/5515514/+files/on_ac_power_bug.tgz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1823521 Title: on_ac_power returns 1 if battery is not present To manage notifications about this bug go to: https://bugs.launchpad.net/xfce4-power-manager/+bug/1823521/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs