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)

matemana 2017-11-18 09:57

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
My issue still exists. Phone does not sleep at all. Even though cpu usage is minimal battery still drains.

here is my wakelock file

https://paste.ubuntu.com/25986943/

mautz 2017-11-18 12:33

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

Originally Posted by matemana (Post 1538576)
My issue still exists. Phone does not sleep at all. Even though cpu usage is minimal battery still drains.

here is my wakelock file

https://paste.ubuntu.com/25986943/

Is this a fresh install? Which files did you use?

Could you please give he output of the following commands:

systemctl status bt-sleep-monitor.timer
systemctl status bt-sleep-monitor.service
systemctl status hciattach.service

matemana 2017-11-18 13:53

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Yes it's a fresh install. I just installed some programs and python libs that's it.

1 systemctl status bt-sleep-monitor.timer

Quote:

● 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; vendor preset: enabled)
Active: active (running) since Sat 2017-11-18 16:58:09 +04; 53min ago
2 systemctl status bt-sleep-monitor.service

Quote:

● bt-sleep-monitor.service - Start Minimecs bt-sleep-monitor script at startup
Loaded: loaded (/lib/systemd/system/bt-sleep-monitor.service; static; vendor preset: enabled)
Active: active (running) since Sat 2017-11-18 16:58:38 +04; 54min ago
Main PID: 11430 (bt-sleep-monito)
CGroup: /system.slice/bt-sleep-monitor.service
├─11430 /bin/bash /usr/bin/bt-sleep-monitor.sh
├─15520 dbus-monitor --system interface='com.nokia.mce.signal',member='displ...
└─15521 /bin/bash /usr/bin/bt-sleep-monitor.sh
3 systemctl status hciattach.service

Quote:

● hciattach.service - Run hciattach when HCI UART device becomes available
Loaded: loaded (/lib/systemd/system/hciattach.service; static; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Sat 2017-11-18 16:58:09 +04; 55min ago
ConditionPathExists=/data/property/persist.service.bdroid.bdaddr was not met

mautz 2017-11-18 20:10

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
There's domething wrong with Bluetooth. Could you do a 'devel-su ls /data/property' and check if the file petsist.service.bdroid.bdaddr is in there? If yes please check if it contains a mac adress.

matemana 2017-11-18 21:07

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

Originally Posted by mautz (Post 1538583)
There's domething wrong with Bluetooth. Could you do a 'devel-su ls /data/property' and check if the file petsist.service.bdroid.bdaddr is in there? If yes please check if it contains a mac adress.

Only these files are in /data/property

persist.radio.adb_log_on persist.radio.eons.enabled

What does this mean? I also have strange issue. Wifi asks for password on every reboot.

mautz 2017-11-19 17:19

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
Your persist partition is corrupted. This also causes your wifi issues.

Maybe this can help you to repair the partition:

https://forum.xda-developers.com/goo...ition-t2821576

matemana 2017-11-19 21:48

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

Originally Posted by mautz (Post 1538594)
Your persist partition is corrupted. This also causes your wifi issues.

Maybe this can help you to repair the partition:

https://forum.xda-developers.com/goo...ition-t2821576

Followed that guide but still there are only those two files in /data/property and phone changes mac address on every reboot and bluetooth does not work.

Hell the universe is forcing me to go back to android! WTH :(

My nexus 4 is working fine on SFOS, but i like nexus 5 because it has 4g and it's much faster but it has these issues. It's very annoying to have to enter wifi password on every reboot (i also have to change firewall settings on my router because of mac change on phone). I do not want to go back to android :(

mautz 2017-11-20 07:14

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

devel-su echo 01:02:03:04:05:06 > /data/persist/persist.service.bdroid.bdaddr
Does thus fix your bt problem? Check systemctl status hciattach.

matemana 2017-11-20 08:01

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

Originally Posted by mautz (Post 1538611)
Code:

devel-su echo 01:02:03:04:05:06 > /data/persist/persist.service.bdroid.bdaddr
Does thus fix your bt problem? Check systemctl status hciattach.

There was no /data/persist directory

created /data/property/persist.service.bdroid.bdaddr with that mac addr in it and restarted BT service now it works :) It was so simple. Thank you.

Maybe if i create file like that for wifi it will have that mac address even after restart?

Strange thing. When i run these commands
cd /persist
mkdir bluetooth wifi
chown bluetooth:system ./bluetooth
chmod 770 ./bluetooth
cp /sdcard/.bdaddr /persist/bluetooth
chown bluetooth:system ./bluetooth/.bdaddr
chmod 660 ./bluetooth/.bdaddr
chown wifi:system ./wifi
chmod 770 ./wifi
cp /sdcard/.macaddr /persist/wifi
chown wifi:system ./wifi/.macaddr
chmod 660 ./wifi/.macaddr

I see those folders and files, but after reboot those folders and files are gone. Does those files exist on your device?

matemana 2017-11-20 13:00

Re: SailfishOS 2.0 Nexus5 based on CM13 alpha release
 
I was trying to start aliendalvik on my nexus 5 with base CM13.
It tries to get permissions on sensors but it fails and then alien_bridge_server fails too with error
"alien_bridge_server[12713]: The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()"

BUT
I hate when this happens but still seems my phone sleep issue is fixed now.

[nemo@Sailfish ~]$ mcetool --get-suspend-stats
uptime: 15299.218
suspend_time: 9738.248


All times are GMT. The time now is 18:25.

vBulletin® Version 3.8.8