Re: [RFC] add standardized attributes for force_discharge and inhibit_charge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Oct 05, 2021 at 08:01:12PM +0200, Hans de Goede wrote:
> Right, force-discharge automatically implies charging is
> being inhibited, so putting this in one file makes sense.
> 
> Any suggestion for the name of the file?

Maybe like this?

---------------------------------------------------------------------
What: /sys/class/power_supply/<supply_name>/charge_behaviour
Date: October 2021
Contact: linux-pm@xxxxxxxxxxxxxxx
Description:
 Configure battery behaviour when a charger is being connected.

 Access: Read, Write

 Valid values:

 0: auto / no override
    When charger is connected battery should be charged
 1: force idle
    When charger is connected the battery should neither be charged
    nor discharged.
 2: force discharge
    When charger is connected the battery should be discharged
    anyways.
---------------------------------------------------------------------

-- Sebastian

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux