Battery Management
#1
Is there something like a battery management for the PinePhone?
If you plug in the usb charger, the battery level will raise up to 100% (as expected).
Would it increase the lifespan of the battery if battery level would be kept in a reasonable range (e.g. between 60% and 70%)?
Would it increase the lifespan of the battery if charging is not with full power (1.5A) if not needed?
  Reply
#2
More people complain if it won't charge to 100% than complain that it should stop at a lower level to preserve battery lifespan, so the default in most distros is to charge to 100%. IIRC you can change this via sysfs, but I don't remember how exactly. I don't think anyone has bothered doing a GUI for it.
I think the details of the charging profile are down to the firmware on the PMIC. I think megous has looked into this more than anyone else.
https://xnux.eu/devices/feature/anx7688.html
  Reply
#3
on manjaro phosh  in  tweaks > power

ezik
  Reply
#4
pmos-tweaks offers feature https://wiki.mobian-project.org/doku.php...mos-tweaks yet does not work. Gladdened if you would file the bug report.


Any mate care to share the sysfs technique?
  Reply
#5
Using a python script to create a poc.
I could not find a setting to disable charging. Since pp draws more than 0.1A it's sufficient to set the current limit to 0.1A.

Code:
    'battery_current': {
        'filename': '/sys/class/power_supply/axp20x-battery/hwmon4/curr1_input',  # noqa E501
        'description': 'battery current in mA'},
    # 'battery_voltage': {
    #    'filename': '/sys/class/power_supply/axp20x-battery/hwmon4/in0_input',
    #    'description': 'battery voltage in mV'},
    'usb_current_limit': {
        'filename': '/sys/class/power_supply/axp20x-usb/input_current_limit',
        'description': 'usb current limit in µA'},
    'usb_charger_current_limit': {
        'filename': '/sys/class/power_supply/axp20x-usb/usb_dcp_input_current_limit',  # noqa E501
        'description': 'usb charger current limit in µA'},
    'battery_capacity': {
        'filename': '/sys/class/power_supply/axp20x-battery/capacity',
        'description': 'battery capacity in %'},
    'usb_charger_online': {
        'filename': '/sys/class/power_supply/axp20x-usb/online',
        'description': 'charger is online'},

   
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Battery problem with a Pinephone keyboard and Mobian elode 2 2,801 12-22-2022, 07:10 PM
Last Post: acid andy
  Possible solutions to the battery draining issue? 3x5co 5 3,401 11-28-2022, 10:58 AM
Last Post: 3x5co
  Will this battery-saving script cause problems? rp3 1 1,678 08-28-2022, 02:00 PM
Last Post: biketool
  Limiting battery charging to some percentage TRS-80 3 3,875 08-22-2021, 01:02 AM
Last Post: bcnaz
  Increasing max voltage to use a bigger battery SocialNetworkingWasAMistake 4 4,705 06-09-2021, 09:59 AM
Last Post: wibble
  Possible fix for lousy standby battery life? bitnick 5 5,971 02-04-2021, 04:05 PM
Last Post: dcinoz
Sad battery usage HLing 3 5,222 08-29-2020, 06:04 AM
Last Post: User 18618
  CRUST power management on Mobian 0x070 6 9,757 07-16-2020, 04:30 AM
Last Post: a-wai
  SMS after dead battery antiX-Dave 4 6,839 06-05-2020, 08:11 PM
Last Post: antiX-Dave
  power management change? pjsf 1 3,840 06-05-2020, 05:16 PM
Last Post: a-wai

Forum Jump:


Users browsing this thread: 1 Guest(s)