defaults: Improve reliability of bluetooth-brcmfmac against system suspend
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).
Signed-off-by:
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
parent
e35c617b
No related branches found
No related tags found
Showing
- debian/librem5-base-defaults.bluetooth-brcmfmac.service 4 additions, 2 deletionsdebian/librem5-base-defaults.bluetooth-brcmfmac.service
- debian/librem5-base-defaults.install 3 additions, 0 deletionsdebian/librem5-base-defaults.install
- default/systemd/system-sleep/bluetooth-brcmfmac 11 additions, 0 deletionsdefault/systemd/system-sleep/bluetooth-brcmfmac
Please register or sign in to comment