![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Then the blobs could be tested: https://developers.google.com/androi...ers#hammerhead |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I might have an idea for a systemd service including a desktop launcher. Give me some time to work it out over the weekend... |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
A toogle would be nice. Take a look at schturmanns BT toogle on openrepos, this could easily be modified to reflect our needs. After turning bt on could you please 'echo 1 > /proc/bluetooth/sleep/lpm' and test if it is still working? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I would suspect that its network-related sync (email, calendar, ...), but you never know for sure. Try to disable the network and see if CPU sleep % would get larger. In the end, its trial and error. I don't think that I have optimized my setup to get these numbers, so it should be possible |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Thanks for the suggestions, I'll stay on topic next time :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Founds this: https://stackoverflow.com/questions/...er-for-bcm4339
Key part: Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Regarding the bluetooth wakelock we face with the Nexus5, I can offer you a solution now, that will allow you to use bluetooth the way you used it until now and profit from Bluetooth LowPowerMode, without any interaction form your part.
After some input of the community on irc (#sailfishos-porters), and some discussion with 'mautz', I wrote a script, that should work quiet nicely with all Sailfishos ports, CM11,CM12, or future releases. The script is a workaround for an existing kernel bug, that also some android users face. So the hope is, that we might not need that workaround some day in the future. Please do some testing and tell me if it works for you. Update As stated by mautz, I forgot to mention that you need the latest kernel with 'bluetooth sleep' enabled. The script can be downloaded here... <- New Version Don't forget to... Code:
chmod +x bt-sleep-monitor.sh #title : bt-sleep-monitor.sh #description : Bluetooth 'LowPowerMode' monitor for SailfishOS ports that face a bluetooth wakelock bug. #author : minimec #date : 20170206 #version : 0.3 (2nd release/code cleaned/with logfile for testing) #usage : ./bash bt-sleep-monitor.sh & (first login to a root console with 'devel-su') #kill script : devel-su killall bt-sleep-monitor.sh dbus-monitor #follow log : tail -f /dev/shm/bt-sleep-monitor.log #notes : Best use as systemd service #================================================= ============================= #How it works... : LowPowerMode is disabled in two cases: # - by enabling the bluetooth adapter, in case it is 'disabled'. # - by powering on the display, in case the adapter is 'enabled'. # The script switches between these modes automatically. # After an 'action' is triggered you have 120sec. (default value) to connect a device. # In case a device is connected, the script listens for 'disconnect' and will enable LPM again afterwards. #================================================= ============================= |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
For minmecs script to work, you need my kernel with bt sleep enabled.
Update cm13 port. Thanks to abranson camera is now working, video recording not yet. |
All times are GMT. The time now is 16:51. |
vBulletin® Version 3.8.8