! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Laptops that have multiple batteries cause no updates after first poll
Status:
RESOLVED: MOVED
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Sean Bruno 2015-01-30 17:04:54 CET
My lenovo X240 running FreeBSD current does indeed have two batteries.  One small internal battery is used to run the system while a battery swap is done on the primary.

On bootup, the battery status for both is polled and retrieved exactly once.  It never updates as far as I can tell.  apm(8) information seems to be updating and is available.  

Interesting also is that if I right-click on a battery status and "hide" it, only one disappears.  If I try to right-click on the second battery status and "hide" it, I get the same settings menu and data for the first battery.
Comment 1 Sean Bruno 2015-01-30 17:06:23 CET
acpiconf -i for both batteries:

# acpiconf -i 0
Design capacity:	23200 mWh
Last full capacity:	22730 mWh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	1136 mWh
Capacity (low):		200 mWh
Low/warn granularity:	1 mWh
Warn/full granularity:	1 mWh
Model number:		45N1111
Serial number:		12813
Type:			LiP
OEM info:		SONY
State:			high 
Remaining capacity:	100%
Remaining time:		unknown
Present rate:		0 mW
Present voltage:	12255 mV

# acpiconf -i 1
Design capacity:	23200 mWh
Last full capacity:	20630 mWh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	1031 mWh
Capacity (low):		200 mWh
Low/warn granularity:	1 mWh
Warn/full granularity:	1 mWh
Model number:		45N1125
Serial number:		 7332
Type:			LION
OEM info:		SANYO
State:			high 
Remaining capacity:	99%
Remaining time:		unknown
Present rate:		0 mW
Present voltage:	12354 mV
Comment 2 Sean Bruno 2015-01-30 17:06:45 CET
apm output for the system:
# apm
APM version: 1.2
APM Management: Disabled
AC Line status: on-line
Battery Status: high
Remaining battery life: 99%
Remaining battery time: unknown
Number of batteries: 2
Battery 0:
	Battery Status: high
	Remaining battery life: 100%
	Remaining battery time: unknown
Battery 1:
	Battery Status: high
	Remaining battery life: 99%
	Remaining battery time: unknown
Resume timer: unknown
Resume on ring indicator: disabled
Comment 3 Sean Bruno 2015-01-30 17:07:07 CET
sysctl -> acpi info:

# sysctl -a|grep battery
hw.acpi.battery.life: 99
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 2
hw.acpi.battery.info_expire: 5
dev.battery.%parent: 
dev.battery.0.%desc: ACPI Control Method Battery
dev.battery.0.%driver: battery
dev.battery.0.%location: handle=\_SB_.PCI0.LPC_.EC__.BAT0
dev.battery.0.%pnpinfo: _HID=PNP0C0A _UID=0
dev.battery.0.%parent: acpi0
dev.battery.1.%desc: ACPI Control Method Battery
dev.battery.1.%driver: battery
dev.battery.1.%location: handle=\_SB_.PCI0.LPC_.EC__.BAT1
dev.battery.1.%pnpinfo: _HID=PNP0C0A _UID=1
dev.battery.1.%parent: acpi0
Comment 4 Git Bot editbugs 2020-05-22 23:08:51 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin/-/issues/8.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #11489

Reported by:
Sean Bruno
Reported on: 2015-01-30
Last modified on: 2020-05-22

People

Assignee:
Xfce-Goodies Maintainers
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information