system76-power charge-threshold 40 50 fails

Bug #1996433 reported by bsy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
System76
New
Undecided
Unassigned

Bug Description

Ubuntu 22.04, fully up-to-date.

$ sudo system76-power --version
system76-power 1.1.24
$ system76-power charge-thresholds 40 50
thread 'main' panicked at 'Mismatch between definition and access of `thresholds`. Could not downcast to TypeId { t: 15007124987583238918 }, need to downcast to TypeId { t: 16733916091185954916 }
', /build/system76-power-BfpR1A/system76-power-1.1.24~1667870429~22.04~e0a6fb8~dev/vendor/clap/src/parser/error.rs:30:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It's pretty easy to workaround by writing into /sys/class/power_supply/BAT0/charge_control_start_threshold or ...end_threshold but the rust program should Just Work.

Filed a bug and patch. See https://github.com/pop-os/system76-power/issues/368

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.