New issue
Advanced search Search tips

Issue 923537 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

power: set power source for USBC is broken

Project Member Reported by tbroch@chromium.org, Jan 18 (4 days ago)

Issue description

This CL,

https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/231402/

Should have enabled the ability to select which USBC charger to use in the event there were multiple or disable them altogether by writing -1 to charge_control_limit_max sysfs parameter as mentioned here:

https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/docs/power_supplies.md#Multiple-sources

Lets fix this so we can perform these operations programmatically.  In particular it would be useful to disable charging via,

dbus-send --type=method_call --system --print-reply --dest=org.chromium.PowerManager /org/chromium/PowerManager org.chromium.PowerManager.SetPowerSource string:'-1'

or

for f in `find /sys/devices -name "charge_control_limit_max"` ; do echo -1 > $f ; done
 

Comment 1 by tbroch@chromium.org, Jan 18 (4 days ago)

Summary: power: set power source for USBC is broke. (was: power: set power state for USBC is broke.)

Comment 2 by derat@chromium.org, Jan 18 (4 days ago)

Cc: derat@chromium.org michae...@chromium.org
Summary: power: set power source for USBC is broken (was: power: set power source for USBC is broke.)
This worked when we shipped samus, right? Are you saying that it regressed? If so, do you know what caused the regression?

Comment 3 by michaelpg@google.com, Jan 18 (4 days ago)

I didn't think it was ever possible to disable charging when the Chromebook was connected to a dedicated source. Is that what this is about?

Sign in to add a comment