|
|
2018-12-12
, 06:27
|
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#402
|
| The Following 4 Users Say Thank You to mautz For This Useful Post: | ||
|
|
2018-12-15
, 08:47
|
|
Posts: 163 |
Thanked: 279 times |
Joined on Feb 2017
@ Tbilisi, Georgia (caucasus)
|
#403
|
|
|
2018-12-15
, 09:01
|
|
Posts: 171 |
Thanked: 337 times |
Joined on Jul 2010
|
#404
|
I ran enabled and started this service like in the first post but still devices will not suspend
devel-su systemctl enable bt-sleep-monitor.timer
devel-su systemctl start bt-sleep-monitor.timer

|
|
2018-12-15
, 11:55
|
|
Posts: 163 |
Thanked: 279 times |
Joined on Feb 2017
@ Tbilisi, Georgia (caucasus)
|
#405
|
| The Following 6 Users Say Thank You to matemana For This Useful Post: | ||
|
|
2018-12-16
, 16:01
|
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#406
|
| The Following 3 Users Say Thank You to mautz For This Useful Post: | ||
|
|
2018-12-20
, 04:26
|
|
Posts: 8 |
Thanked: 16 times |
Joined on Aug 2018
|
#407
|
@matemana
Coukd you or someone else post the output of 'devel-su systemctl status bt-sleep-monitor.service' '?
|
|
2018-12-20
, 08:45
|
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#408
|
|
|
2018-12-20
, 22:46
|
|
Posts: 171 |
Thanked: 337 times |
Joined on Jul 2010
|
#409
|
$ diff bt-sleep-monitor /usr/bin/bt-sleep-monitor
3c3,4
< #description : Bluetooth 'LowPowerMode' monitor for SailfishOS ports that face a bluetooth wakelock bug.
---
> #description : Bluetooth 'LowPowerMode' monitor for SailfishOS ports
> that face a bluetooth wakelock bug.
8c9,10
< #notes : Can be used as standalone program or as systemd service
---
> #notes : Can be used as standalone program or as systemd
> service
10c12,13
< #How it works... : A dbus-monitor process is listening for different dbus events in parallel:
---
> #How it works... : A dbus-monitor process is listening for different
> dbus events in parallel:
14,18c17,26
< # When an event is triggered the program will decide whether to enable/disable
< # or temporarily disable bluetooth suspend (low power mode).
< # If bluetooth is powered and in low power mode, a display event will disable suspend mode for a given time.
< # In case there is no bluetooth connection after that time, suspend mode is enabled again. See $BTACTIVE.
< #Monitor... : After having launched the script in a console, you can follow a log, as long the console stays open.
---
> # When an event is triggered the program will decide
> whether to enable/disable
> # or temporarily disable bluetooth suspend (low power
> mode).
> # If bluetooth is powered and in low power mode, a
> display event will disable suspend mode for a given time.
> # In case there is no bluetooth connection after that
> time, suspend mode is enabled again. See $BTACTIVE.
> #Monitor... : After having launched the script in a console, you
> can follow a log, as long the console stays open.
23c31,32
< BTPOWER=$(connmanctl technologies | sed -n -e '/bluetooth/,+5p' | grep Powered | awk '{print $3; exit}')
---
> BTPOWER=$(connmanctl technologies | sed -n -e '/bluetooth/,+5p' | grep
> Powered | awk '{print $3; exit}')
52c61,62
< if [ "$BTPOWER" == "True" ] && [ "$BTCONNECT" == "" ] && [ "$SLEEPTIMER" == "0" ] ; then
---
> if [ "$BTPOWER" == "True" ] && [ "$BTCONNECT" == "" ] && [
> "$SLEEPTIMER" == "0" ] ; then
84c94,95
< WATCH1="path='/net/connman/technology/bluetooth',interface='net.connman.Technology',member='SetProperty'"
---
>
> WATCH1="path='/net/connman/technology/bluetooth',interface='net.connman.Technology',member='SetProperty'"
86c97,98
< WATCH3="interface='com.nokia.mce.signal',member='display_status_ind'"
---
>
> WATCH3="interface='com.nokia.mce.signal',member='display_status_ind'"
104c116,117
< pkill -P $(cat /var/run/bt-sleep-monitor.pid) && rm /var/run/bt-sleep-monitor.pid
---
> pkill -P $(cat /var/run/bt-sleep-monitor.pid) && rm
> /var/run/bt-sleep-monitor.pid
113c126,127
< echo Bluetooth Sleep Monitor is running, pid=`cat /var/run/bt-sleep-monitor.pid`
---
> echo Bluetooth Sleep Monitor is running, pid=`cat
> /var/run/bt-sleep-monitor.pid`
123c137,138
< # check for a command switch and call different functionality if it is found
---
> # check for a command switch and call different functionality if it is
> found
|
|
2018-12-21
, 11:15
|
|
Posts: 635 |
Thanked: 1,535 times |
Joined on Feb 2014
@ Germany
|
#410
|
| The Following 3 Users Say Thank You to mautz For This Useful Post: | ||
Nexus 5 is not my daily driver so no worries. I can flash 3.0.0.8 image
again and start from scratch. Others did not have any issues on the other thread.
https://talk.maemo.org/showthread.ph...23#post1551623