Bug 2365909

Summary: hardware capability for charge threshold is unsupported in the Linux kernel
Product: [Fedora] Fedora Reporter: vmjizkya4
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: acaringi, adscvr, airlied, hdegoede, hpa, josef, kernel-maint, linville, masami256, mchehab, ptalbert, steved, suraj.ghimire7
Target Milestone: ---Keywords: Bugfix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vmjizkya4 2025-05-13 12:35:35 UTC
I have a Lenovo Yoga 7 ARP8, my hw can support the charge limit, i already checked it on kde plasma and windows, in gnome 48 this feature didn't show up so i checked with this command: "upower --dump" and i saw that there isn't any line about "charge-threshold-supported:    yes or no " so a Gnome Dev suggested to me to open a bug in this thread.

Reproducible: Always

Comment 1 vmjizkya4 2025-05-23 12:32:59 UTC
here's my upower -dump:

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SMP
  model:                L22M4PA1
  serial:               5089
  power supply:         yes
  updated:              ven 23 mag 2025, 14:32:16 (13 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              50,8 Wh
    energy-empty:        0 Wh
    energy-full:         64,63 Wh
    energy-full-design:  71 Wh
    energy-rate:         3,889 W
    voltage:             16,141 V
    charge-cycles:       143
    time to empty:       13,1 hours
    percentage:          78%
    capacity:            91,0282%
    technology:          lithium-polymer
    icon-name:          'battery-full-symbolic'
  History (rate):
    1748003536	3,889	discharging
    1748003506	6,180	discharging
    1748003476	4,541	discharging
    1748003446	6,469	discharging

Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              ven 23 mag 2025, 14:22:59 (570 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:              ven 23 mag 2025, 14:32:16 (13 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       none
    energy:              50,8 Wh
    energy-full:         64,63 Wh
    energy-rate:         3,889 W
    charge-cycles:       N/A
    time to empty:       13,1 hours
    percentage:          78%
    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

Comment 2 vmjizkya4 2025-06-19 18:58:35 UTC
(In reply to vmjizkya4 from comment #1)
> here's my upower -dump:
> 
> Device: /org/freedesktop/UPower/devices/battery_BAT0
>   native-path:          BAT0
>   power supply:         yes
>   updated:              ven 23 mag 2025, 14:32:16 (13 seconds ago)
>   has history:          yes
>   has statistics:       yes
>   battery
>     present:             yes
>     rechargeable:        yes
>     state:               discharging
>     warning-level:       none
>     energy:              50,8 Wh
>     energy-empty:        0 Wh
>     energy-full:         64,63 Wh
>     energy-full-design:  71 Wh
>     energy-rate:         3,889 W
>     voltage:             16,141 V
>     charge-cycles:       143
>     time to empty:       13,1 hours
>     percentage:          78%
>     capacity:            91,0282%
>     technology:          lithium-polymer
>     icon-name:          'battery-full-symbolic'
>   History (rate):
>     1748003536	3,889	discharging
>     1748003506	6,180	discharging
>     1748003476	4,541	discharging
>     1748003446	6,469	discharging
> 
> Device: /org/freedesktop/UPower/devices/line_power_ACAD
>   native-path:          ACAD
>   power supply:         yes
>   updated:              ven 23 mag 2025, 14:22:59 (570 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:              ven 23 mag 2025, 14:32:16 (13 seconds ago)
>   has history:          no
>   has statistics:       no
>   battery
>     present:             yes
>     state:               discharging
>     warning-level:       none
>     energy:              50,8 Wh
>     energy-full:         64,63 Wh
>     energy-rate:         3,889 W
>     charge-cycles:       N/A
>     time to empty:       13,1 hours
>     percentage:          78%
>     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