FrameworkComputer / framework-system

Rust libraries and tools to interact with the Framework Computer systems
BSD 3-Clause "New" or "Revised" License
106 stars 6 forks source link

Add option to limit charging rate #13

Open DeflateAwning opened 8 months ago

DeflateAwning commented 8 months ago

Two main use cases:

  1. Sometimes you need to charge using a cell phone charger. It'll be slow, but that's fine.
  2. Even if you have a 100W charger, the battery will last longer if you normally charge it at only 50 W. Being able to restrict it like that would be very helpful!

Edit: Specific proposal:

Similar to the --charge-limit flag, which allows a user to set to the maximum percentage charge, there should be a new flag called --charge-rate which allows you to enter a max number of watts to charge at.