on_ac_power returns 1 if battery is not present

Bug #1823521 reported by Jarno Suni
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Xfce4 Power Manager
New
Undecided
Unassigned
powermgmt-base (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

on_ac_power should return 0 (as exit code).

Besides Xfce Power Manager tells in Devices tab that Line power is "Not plugged in".

Tested by an old Macbook.

(I don't have battery to test with.)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: powermgmt-base 1.33
ProcVersionSignature: Ubuntu 4.18.0-17.18~18.04.1-generic 4.18.20
Uname: Linux 4.18.0-17-generic x86_64
NonfreeKernelModules: wl nvidia
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Apr 7 14:02:36 2019
Dependencies:

EcryptfsInUse: Yes
InstallationDate: Installed on 2017-01-05 (821 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitecture: all
SourcePackage: powermgmt-base
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in powermgmt-base (Ubuntu):
status: New → Confirmed
Revision history for this message
Todd Taft (taft) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.