No battery charge limit Fedora 42

Hi there!
I have a Lenovo Yoga 7 ARP8 with Fedora 42 Workstation installed.
It’s an amazing desktop and when GNOME 48 merged the request for battery charge limit i was so happy but it wont show up in gnome-settings.
Some gnome folks (on gnome dedicated forum) answered to me that my hardware capability for charge threshold is unsupported in the Linux kernel.

But I dont understand: on KDE Plasma i got this feature and it works really well (also in windows, just saying) so why GNOME it’s different? (with gnome extension, battery charge limit it works also in gnome) im lil bit confused…

Thanks for your help.

since i havent got any response yet i opened a bug on redhat bugzilla, you can find it here: 2365909 – hardware capability for charge threshold is unsupported in the Linux kernel

Does this command give anything back when you enter it in a terminal?

$ cat /sys/class/power_supply/BAT*/charge_control_end_threshold

I have a Dell Latitude laptop purchased in 2018. Fedora 42 (Gnome 48) Settings/Power Management has “Preserve Battery Health” enabled, but the laptop is usually plugged in and battery is constently at 100%:

% cat /sys/class/power_supply/BAT*/charge_control_end_threshold
80
% cat /sys/class/power_supply/BAT*/charge_control_start_threshold
75

yes: file or directory does not exits

like i said my laptop support this feature in windows, kde and gnome (with exstension battery charge limit) as well, I dunno understand why it wont show up in gnome-settings

here’s my upower --dump

Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
power supply: yes
updated: gio 19 giu 2025, 20:54:42 (2 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 48,9 Wh
energy-empty: 0 Wh
energy-full: 64,14 Wh
energy-full-design: 71 Wh
energy-rate: 5,684 W
voltage: 16,196 V
charge-cycles: 143
time to empty: 8,6 hours
percentage: 76%
capacity: 90,338%
technology: lithium-polymer
icon-name: ‘battery-full-symbolic’
History (rate):
1750359282 5,684 discharging
1750359252 5,186 discharging
1750359222 5,411 discharging
1750359191 8,141 discharging
1750359179 6,973 discharging

Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path: ACAD
power supply: yes
updated: gio 19 giu 2025, 20:20:35 (2049 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: no
icon-name: ‘ac-adapter-symbolic’

Device: /org/freedesktop/UPower/devices/DisplayDevice
power supply: yes
updated: gio 19 giu 2025, 20:54:42 (2 seconds ago)
has history: no
has statistics: no
battery
present: yes
state: discharging
warning-level: none
energy: 48,9 Wh
energy-full: 64,14 Wh
energy-rate: 5,684 W
charge-cycles: N/A
time to empty: 8,6 hours
percentage: 76%
icon-name: ‘battery-full-symbolic’

Daemon:
daemon-version: 1.90.9
on-battery: yes
lid-is-closed: no
lid-is-present: yes
critical-action: PowerOff

It might help to pull the battery past the threshold once. In my experience once it is above the threshold it will just keep charging, but if it is below it will stay there.

Another option might be to try the tlp app, it was originally developed for Thinkpads specifically to manage battery life:

well i can use the gnome exstension battery charge limit without problems so it’s not a big deal only wonder why it wasn’t supported on gnome vanilla…

1 Like