maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus5 based on CM13 alpha release (https://talk.maemo.org/showthread.php?t=99377)

tealc 2017-05-14 18:26

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Quote:

Originally Posted by mautz (Post 1528004)
Could you please post /dev/shm/bt-sleep-monitor.log ?

And the check if the service bt-sleep-monitor.service and bt-sleep-monitor.timer are running?

I don't have the /dev/shm/bt-sleep-monitor.log which may be related to the service/timer being inactive.

Code:

-bash-3.2$ systemctl status bt-sleep-monitor.service
bt-sleep-monitor.service - Start Minimecs bt-sleep-monitor script at startup
  Loaded: loaded (/lib/systemd/system/bt-sleep-monitor.service; static)
  Active: inactive (dead)

-bash-3.2$ systemctl status bt-sleep-monitor.timer 
bt-sleep-monitor.timer - Delay start of minimecs bt-sleep-monitor script to avoid getting wrong bluetooth value on startup
  Loaded: loaded (/lib/systemd/system/bt-sleep-monitor.timer; disabled)
  Active: inactive (dead)


mautz 2017-05-14 18:32

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
@tealc

could you please post the output of
Code:

ls -lha /proc/bluetooth/sleep/lpm
and check if the file bt-sleep-monitor.sh is present in /usr/bin?

tealc 2017-05-14 19:29

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Quote:

Originally Posted by mautz (Post 1528006)
@tealc

could you please post the output of
Code:

ls -lha /proc/bluetooth/sleep/lpm
and check if the file bt-sleep-monitor.sh is present in /usr/bin?

Code:

-bash-3.2$ ls -l /usr/bin/bt-sleep-monitor.sh
-rwxr-xr-x 1 root root 5560 May 10 09:42 /usr/bin/bt-sleep-monitor.sh

Code:

-bash-3.2$ ls -lha /proc/bluetooth/sleep/lpm
-rw-rw---- 1 bluetooth net_bt_stack 0 May 14 21:27 /proc/bluetooth/sleep/lpm


mautz 2017-05-14 19:41

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Seems like the script doesn't start at boot. Could you try starting it manually with devel-su systemctl start bt-sleep-monitor.timer or devel-su /usr/bin/bt-sleep-monitor.sh?

UPDATE: Seems like i forgot to enable the script service.
Code:

devel-su systemctl enable bt-sleep-monitor.timer
devel-su systemctl start bt-sleep-monitor.timer

should solve the problem.

I will correct this in the next build.

UPDATE: Thanks BluesLee for pointing out the missing systemctl command.

tealc 2017-05-15 15:25

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
That worked better! Now the /dev/shm/bt-sleep-monitor.log file indicates that bluetooth is disabled. Thanks!

BluesLee 2017-05-16 02:07

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Quote:

Originally Posted by mautz (Post 1528008)
Seems like the script doesn't start at boot. Could you try starting it manually with devel-su systemctl start bt-sleep-monitor.timer or devel-su /usr/bin/bt-sleep-monitor.sh?

UPDATE: Seems like i forgot to enable the script service.
Code:

devel-su enable bt-sleep-monitor.timer
devel-su start bt-sleep-monitor.timer

should solve the problem.

I will correct this in the next build.

Typo. For those who are not familiar with those commands, it should be
Code:

devel-su systemctl enable bt-sleep-monitor.timer
devel-su systemctl start bt-sleep-monitor.timer


maximilian1st 2017-05-16 06:22

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Just to be sure, this does not help with the bad Bluetooth hands free problem right?

mautz 2017-05-16 06:57

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Quote:

Originally Posted by maximilian1st (Post 1528050)
Just to be sure, this does not help with the bad Bluetooth hands free problem right?

Nope, that's another problem.

BluesLee 2017-05-16 12:56

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Very good battery life behaviour so far with cm13 + sfos 2.1 + using workaround regarding bluetooth sleep issue, great.

mautz 2017-05-16 13:17

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Uploaded build 0.3 which fixes the bt sleep issue.


All times are GMT. The time now is 10:10.

vBulletin® Version 3.8.8