Bug 372535 - Bluetooth service needs restarting after every suspend/sleep
Summary: Bluetooth service needs restarting after every suspend/sleep
Status: RESOLVED UPSTREAM
Alias: None
Product: Bluedevil
Classification: Plasma
Component: daemon (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 13:18 UTC by Daniel T.
Modified: 2016-11-24 14:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel T. 2016-11-16 13:18:34 UTC
I'm using a bluetooth mouse. Most of the time, I need to restart the bluetooth service after the laptop comes back from suspension/standby/sleep:

service bluetooth restart 

Restarting the mouse itself does not help. 

Adding the script with the following to /etc/pm/sleep.d/, as suggested in Bug 292165, also doesn't:

case "$1" in
    suspend)
        service bluetooth stop
        ;;
    resume)
        service bluetooth start
        ;;
    *)
        ;;
esac
Comment 1 David Rosca 2016-11-24 14:32:43 UTC
This is a bug in BlueZ, not in Bluedevil. Bluedevil tries to reconnect on resume to the devices connected before suspend, but if you need to restart the bluetooth service (BlueZ) instead of just reconnect to the mouse, this is clearly an issue with BlueZ.