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
  • !334

defaults: Improve reliability of bluetooth-brcmfmac against system suspend

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sebastian Krzyszkowiak requested to merge sebastian.krzyszkowiak/librem5-base:bt into pureos/byzantium Jan 24, 2023
  • Overview 0
  • Commits 1
  • Pipelines 2
  • Changes 3

hciattach isn't aware that the card gets reset at system suspend, requiring full reinitialization, so it needs to be restarted. Unfortunately, I haven't found a way to describe such relation using systemd unit relations alone that wouldn't break things, so a system-sleep hook is added to stop the service before going into suspend.

The service itself is also tweaked to better handle errors and to make it restartable (previously it would require the card to be reset before hciattach could work again).

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: bt