Bug 223435

Summary: [acpi] FreeBSD 12-CURRENT r325397: Battery not charging on HP EliteBook 1040 G1 (Battery status stuck at High)
Product: Base System Reporter: Neel Chauhan <nc>
Component: kernAssignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description Neel Chauhan freebsd_committer freebsd_triage 2017-11-04 21:19:57 UTC
When I run FreeBSD 12-CURRENT r325397 on a HP EliteBook 1040 G1, the battery is not able to charge. If I plug in the laptop, "acpiconf -i 0" shows "high" even if the battery is not 100% charge, and it stays this way. To fix this, I have to reboot into Windows, and follow these steps:

https://h30434.www3.hp.com/t5/Notebook-Operating-System-and-Recovery/Laptop-plugged-in-not-charging/td-p/5122059

To do this, I need to have a Torx T9 screwdriver handy to unscrew the bottom cover. CURRENT r324754 does not have this issue.

I will update a DSDT file shortly.
Comment 1 Neel Chauhan freebsd_committer freebsd_triage 2017-11-04 21:27:57 UTC
Since the DSDT file was too large to upload, I have uploaded to GitHub Gist:

https://gist.github.com/neelchauhan/66de1e49d8347c93ed58e3f357eca23a
Comment 2 Neel Chauhan freebsd_committer freebsd_triage 2017-11-04 21:31:40 UTC
Here's an example. Plugged in:

root@xb2:~ # acpiconf -i 0
Design capacity:	3500 mAh
Last full capacity:	3500 mAh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	200 mAh
Capacity (low):		100 mAh
Low/warn granularity:	100 mAh
Warn/full granularity:	100 mAh
Model number:		Primary
Serial number:		23058 2017/08/01
Type:			LIon
OEM info:		Hewlett-Packard
State:			high
Remaining capacity:	98%
Remaining time:		unknown
Present rate:		0 mA (0 mW)
Present voltage:	12481 mV
root@xb2:~ # 

Dischrging:

root@xb2:~ # acpiconf -i 0
Design capacity:	3500 mAh
Last full capacity:	3500 mAh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	200 mAh
Capacity (low):		100 mAh
Low/warn granularity:	100 mAh
Warn/full granularity:	100 mAh
Model number:		Primary
Serial number:		23058 2017/08/01
Type:			LIon
OEM info:		Hewlett-Packard
State:			discharging
Remaining capacity:	98%
Remaining time:		3:53
Present rate:		885 mA (10956 mW)
Present voltage:	12380 mV

Plugged in after discharging:

root@xb2:~ # acpiconf -i 0
Design capacity:	3500 mAh
Last full capacity:	3500 mAh
Technology:		secondary (rechargeable)
Design voltage:		11100 mV
Capacity (warn):	200 mAh
Capacity (low):		100 mAh
Low/warn granularity:	100 mAh
Warn/full granularity:	100 mAh
Model number:		Primary
Serial number:		23058 2017/08/01
Type:			LIon
OEM info:		Hewlett-Packard
State:			discharging
Remaining capacity:	98%
Remaining time:		3:53
Present rate:		885 mA (10956 mW)
Present voltage:	12380 mV
Comment 3 Neel Chauhan freebsd_committer freebsd_triage 2017-11-30 00:31:15 UTC
Never mind. It does not exist on r326307.