View Single Post
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#591
Originally Posted by mautz View Post
Minimecs bt script isn't working on cm13 port at the moment, because hcitool doesn't show any connections when it is connected to a bt speaker, so it quits the connection after 120 seconds. Minimec could you check this on cm13?
Hi Mautz. I passed some tests with the cm13 build. Works as expected here. I used version: 0.3 of my script (link in the post above.). Could it be that we got a bug when removing the 'log function' in the version you have on git? Maybe somehow your speaker lost connection with the phone?

I will do another test tomorrow in my car.

Code:
,---
| SailfishOS 2.0.5.6 (Haapajoki) (armv7hl)
'---
[nemo@Sailfish ~]$ getprop ro.build.version.release
6.0.1
[nemo@Sailfish ~]$ devel-su
Password: 
[root@Sailfish nemo]# ./bt-sleep-monitor.sh &
[1] 11276
[root@Sailfish nemo]# exit
[nemo@Sailfish ~]$ tail -f /dev/shm/bt-sleep-monitor.log 
Sun Apr  9 22:21:31 CEST 2017: Log started
Sun Apr  9 22:21:31 CEST 2017: Set 'lpm=1' as default
Sun Apr  9 22:21:31 CEST 2017: Bluetooth disabled (starting bluetooth listener)
Sun Apr  9 22:22:11 CEST 2017: Action 'bluetooth on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:24:11 CEST 2017: Device connected (listening for 'disconnect')
Sun Apr  9 22:24:24 CEST 2017: Device disconnected (set 'lpm=1')
Sun Apr  9 22:24:24 CEST 2017: Bluetooth enabled (starting 'display on' listener)
Sun Apr  9 22:24:42 CEST 2017: Action 'display on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:26:42 CEST 2017: Device connected (listening for 'disconnect')
Sun Apr  9 22:27:01 CEST 2017: Device disconnected (set 'lpm=1')
Sun Apr  9 22:27:02 CEST 2017: Bluetooth disabled (starting bluetooth listener)
Sun Apr  9 22:27:41 CEST 2017: Action 'bluetooth on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:29:41 CEST 2017: No connection after 120 seconds (set 'lpm=1')
Sun Apr  9 22:29:41 CEST 2017: Bluetooth enabled (starting 'display on' listener)
Sun Apr  9 22:30:22 CEST 2017: Action 'display on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:32:22 CEST 2017: No connection after 120 seconds (set 'lpm=1')
Sun Apr  9 22:32:22 CEST 2017: Bluetooth disabled (starting bluetooth listener)
Sun Apr  9 22:32:36 CEST 2017: Action 'bluetooth on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:34:36 CEST 2017: Device connected (listening for 'disconnect')
Sun Apr  9 22:35:34 CEST 2017: Device disconnected (set 'lpm=1')
Sun Apr  9 22:35:34 CEST 2017: Bluetooth enabled (starting 'display on' listener)
Sun Apr  9 22:35:46 CEST 2017: Action 'display on' (set 'lpm=0' for 120 seconds)
Sun Apr  9 22:37:46 CEST 2017: Device connected (listening for 'disconnect')
Sun Apr  9 22:38:09 CEST 2017: Device disconnected (set 'lpm=1')
Sun Apr  9 22:38:09 CEST 2017: Bluetooth enabled (starting 'display on' listener)
Sun Apr  9 22:38:14 CEST 2017: Action 'display on' (set 'lpm=0' for 120 seconds)
^C
[nemo@Sailfish ~]$
 

The Following 2 Users Say Thank You to minimec For This Useful Post: