2015-07-30 08:11:24 +08:00
|
|
|
What: /sys/class/power_supply/twl4030_usb/mode
|
|
|
|
Description:
|
|
|
|
Changing mode for USB port.
|
|
|
|
Writing to this can disable charging.
|
|
|
|
|
|
|
|
Possible values are:
|
2015-07-30 08:11:24 +08:00
|
|
|
|
2020-10-30 15:40:39 +08:00
|
|
|
============= ===========================================
|
2020-10-30 15:40:50 +08:00
|
|
|
"auto" draw power as appropriate for detected
|
2020-10-30 15:40:39 +08:00
|
|
|
power source and battery status.
|
2020-10-30 15:40:50 +08:00
|
|
|
"off" do not draw any power.
|
2020-10-30 15:40:39 +08:00
|
|
|
"continuous" activate mode described as "linear" in
|
|
|
|
TWL data sheets. This uses whatever
|
|
|
|
current is available and doesn't switch off
|
|
|
|
when voltage drops.
|
|
|
|
|
|
|
|
This is useful for unstable power sources
|
|
|
|
such as bicycle dynamo, but care should
|
|
|
|
be taken that battery is not over-charged.
|
|
|
|
============= ===========================================
|
2015-07-30 08:11:24 +08:00
|
|
|
|
|
|
|
What: /sys/class/power_supply/twl4030_ac/mode
|
|
|
|
Description:
|
|
|
|
Changing mode for 'ac' port.
|
|
|
|
Writing to this can disable charging.
|
|
|
|
|
|
|
|
Possible values are:
|
2020-10-30 15:40:39 +08:00
|
|
|
|
|
|
|
====== ===========================================
|
|
|
|
"auto" draw power as appropriate for detected
|
|
|
|
power source and battery status.
|
|
|
|
"off" do not draw any power.
|
|
|
|
====== ===========================================
|