Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L librem5-base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • Librem5
  • librem5-base
  • Merge requests
  • !190

Put battery in shipmode when powering off while not charging

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Kepplinger requested to merge martin.kepplinger/librem5-base:poweroff_shipmode into master Nov 04, 2020
  • Overview 36
  • Commits 1
  • Pipelines 12
  • Changes 2

When powering off (not rebooting) the Librem 5 battery should be put into shipmode in order to preserve its' capacity. For the whole discussion, see https://source.puri.sm/Librem5/linux-next/-/issues/120

When USB power is plugged in during powering off, we don't change any behaviour though. Setting shipmode in that situation would make charging stop when powering off. Of course this means that if the phone is shut down while plugged in and unplugged later, the battery will still discharge slowly.

Only when unplugged, running on battery only, during shutdown, we set shipmode and prevent the battery to discharge while the phone is powered off.

Edited Nov 05, 2020 by Martin Kepplinger
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: poweroff_shipmode