====== Bluetooth sleeping issues ======
----
If you loose BT connection during track recording only when the display is OFF for at least 3 hours you may have a **[[manual:faq:gps_lost_fix_android6|battery power saving setup issue]]**. Following solutions do not help if you don't have stable BT connection during track recording with display allways ON.
===== Essential measures =====
- apply **[[manual:faq:gps_lost_fix_android6|all instructions described here >>]]**
- especially **disable battery optimization for bluetooth** system services **[[manual:faq:gps_lost_fix_android6#system_battery_optimization_mode|as is described here >>]]** (at least for Android 6 and 7 on Sony and Samsung devices) - you may need to toogle **show all system services**. Disable battery optimization for following services:
* **Bluetooth MIDI Service**
* **Bluetooth Sharing**
- **clear cache and remove data** of Android Bluetooth system services - settings > apps > 3-dots -> show system processes:
* **Bluetooth MIDI Service**
* **Bluetooth Sharing**
- **restart Android** and the issue should be gone in most cases
===== What to do if essential measures don't work? =====
If you still have issues with loosing BT connection during longer time in standby, you could try following steps (without warranty it'll help at all):
* some broken Adroid firmwares turn BT off during sound profile check even if the profiles are disabled: **remove all do not disturb sound profiles in settings -> sounds**
* you may have some **third party apps** on your phone which disable BT, for example apps like "Tile" often reconnect BT in background
* **[[https://productforums.google.com/forum/#!topic/phone-by-google/UamV0tnZKNE|here are more suggestions that can help >>]]**
===== Third way - "Tasker" workaround =====
If everything above fails, you may need to use **display always on** as a workaround. You can reduce the screen time if you turn your display on each hour right before the BT connection goes to sleep:
- Install app **Tasker**
- create a **loop of 1 hour** waiting every time
- add a **turn display on action** (Android 5+ needs an additional tasker plugin app "Secure Settings" to get access to add //task > plugins > secure settings > wake device > screen on//)
- add a notification **wake display %TIME** to confirm your workaround is running
- //optional// - if you **disable lockscreen**, start a **touchscreen lock app** to prevent inputs during your screen on action
- //optional// - add a **display off** (display lock) action if you don't have any display timeout
This prevents your Android device from entering any deep sleep states but drains way less power than when display is always on.
If you have BT problems even with the display always on, you may have a hardware problem, environment problem or BT transmitter problem.
For more information, read on in **[[http://help.locusmap.eu/topic/create-faq-entry-for-solving-bt-sleep-issues|this >>]]** or **[[http://help.locusmap.eu/topic/bt-gps-reconnection-time-take-some-minutes|this helpdesk thread >>]]**