Public bug reported:
Hardware: LG GRAM Style 14 (14Z90RS), i7-1360P, Ubuntu 26.04
Kernel module: lg_laptop exposes charge_control_end_threshold but not
charge_control_start_threshold
Bug: 60-upower-battery.rules only imports hwdb when
charge_control_start_threshold exists.
On LG laptops, only charge_control_end_threshold exists →
ChargeThresholdSupported: false
→ battery preservation option missing from GNOME Settings.
Fix: already merged upstream in UPower 1.91.2:
Add a second rule matching ATTR{charge_control_end_threshold}!="" in
60-upower-battery.rules.
Workaround (tested, works on Ubuntu 26.04 + UPower 1.91.1):
1. /etc/udev/rules.d/60-upower-battery.rules — add before LABEL="battery_end":
SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}!="", \
IMPORT{builtin}="hwdb
'battery:$kernel:$attr{model_name}:$attr{[dmi/id]modalias}'", \
GOTO="battery_end"
2. /etc/udev/hwdb.d/61-battery-lg-gram.hwdb — create with content:
battery:BAT0:LGES-LG:dmi:*svnLGElectronics*
CHARGE_LIMIT=_,80
3. sudo systemd-hwdb update && sudo udevadm control --reload-rules \
&& sudo udevadm trigger --subsystem-match=power_supply \
&& sudo systemctl restart upower
** Affects: upower (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2147634
Title:
upower 1.91.1: ChargeThresholdSupported always false on devices with
charge_control_end_threshold only (e.g. LG GRAM)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/2147634/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
