Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Issues
  • #400
Closed
Open
Created Mar 07, 2022 by Joao Azevedo@joao.azevedoReporter

5.17 only negotiates 500mA with PD

Kernel 5.17.0-1-librem5

u-boot: u_boot_version=2022.04-rc1

TPS: 0x4c35445000000200

With 5.17 when plugging the charger after boot, it only negotiates 500mA.

tail -n+0 /sys/class/power_supply/*/uevent

POWER_SUPPLY_USB_TYPE=C [PD]
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_CURRENT_MAX=500000
POWER_SUPPLY_VOLTAGE_MAX=5000000

Powering down and waiting 15 seconds before booting again and then connecting the charger has no effect.

sudo cat /sys/kernel/debug/tracing/trace

Provides:

trace.txt

Which according to Angus is odd.

A workaround was to connect the charger with the phone powered down.

Reverting to 5.16 solved the issue. And now the device does 3000mA when connecting the charger after boot.

==> /sys/class/power_supply/tps6598x-source-psy-0-003f/uevent <==
POWER_SUPPLY_NAME=tps6598x-source-psy-0-003f
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_USB_TYPE=C [PD]
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_CURRENT_MAX=3000000
POWER_SUPPLY_VOLTAGE_MAX=5000000
purism@pureos:~$ uname -a
Linux pureos 5.16.0-1-librem5 #1 SMP PREEMPT Sat Feb 26 21:25:54 UTC 2022 aarch64 GNU/Linux
Edited Mar 07, 2022 by Joao Azevedo
Assignee
Assign to
Time tracking