maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 on Nexus 5 (https://talk.maemo.org/showthread.php?t=94620)

m4r0v3r 2016-03-18 08:38

Re: SailfishOS 2.0 on Nexus 5
 
for people who have multirom and want music both on android and sfos, have the music on android and use the new tracker location patcj to add the android folder and reboot

RealJohnGalt 2016-03-18 10:08

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by szymeczek34 (Post 1501465)
Hi, I was wondering if Sailfish on N5 has anything like Facebook Messenger with instant message notifications?
Also, is it possible to use it on a daily basis? I remember owning N4 a year ago and SFOS on it was not good enough. For simple stuff like browsing the net it was fine but making calls was a terrible experience.

Blackberry is now dropping Facebook support through their app which means no more Hub integration and since none of my friends text anymore I kinda don't see myself checking the website every now and then. For that I can simply go back to using my N9.
Thanks.

Aside from the sensors issue (which is more of an minor annoyance with the llelectronics script), the only other issue would be the bluetooth issue. It will fail within a few minutes of audio, and require a reboot to enable (so unusable).

Feathers McGraw 2016-03-18 16:55

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by RealJohnGalt (Post 1501611)
Aside from the sensors issue (which is more of an minor annoyance with the llelectronics script), the only other issue would be the bluetooth issue. It will fail within a few minutes of audio, and require a reboot to enable (so unusable).

True, this prevents using smartwatches too.

szymeczek34 2016-03-18 20:24

Re: SailfishOS 2.0 on Nexus 5
 
That's a bummer, anyway, thanks guys a lot!
I'm also considerating OnePlus X, it's not much more expensive than a used Nexus 5. Has anyone had any experience with that cell? It looks quite good on paper, Sailfish is said to be working well with the exception of camera and most of all it's brand new.

DJJonosound 2016-03-19 08:42

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by szymeczek34 (Post 1501645)
That's a bummer, anyway, thanks guys a lot!
I'm also considerating OnePlus X, it's not much more expensive than a used Nexus 5. Has anyone had any experience with that cell? It looks quite good on paper, Sailfish is said to be working well with the exception of camera and most of all it's brand new.

I own a oneplus x in white at the moment. The only issues are that for me on OxygenOS video playback stutters and is just generally bad, and also its still on 5.1.1 which sucks, as I would love to get 6. (Haven't used a custom rom because oxygen has a great amoled theme) Also patchy LTE from what I have heard (lack of bands), but I'm not fussed as my phone plan doesn't support LTE and I really don't need it.

Apart from that, the build quality is sublime, the screen has really good colour, and in general its pretty well rounded. The omission of features like NFC is a bit annoying but I can live without (I do miss mobile payments though) The build and design are the main reasons I bought it, its top stuff.

romu 2016-03-21 16:48

Re: SailfishOS 2.0 on Nexus 5
 
Hi,
I've recently seen than when the sensors driver crashes, it may eats too much CPU (we all know that) but the process may also be shutdown for good. So, I've modified the watchdog script to restart the service if no sensor process is found. I'm far from being a bash expert, feel free to correct me if I did something wrong.

Code:

#!/bin/bash
 
# This checks every 1/2 minute and kills if
# sensors.qcom process is eating more than 8% CPU for 1 minute
 
TERM=linux
export TERM
 
kill_count=0
 
while true; do
  sensors_pid=$(ps aux | grep sensors.qcom | grep -v grep | awk '{print $2}')
 
  # If the process has crashed it may not be running,
  # so we restart it
  if [ -z $sensors_pid ]; then
    systemctl restart sensorfwd
  else
    cpu_usage=$(top -b -p $sensors_pid -n1 | grep $sensors_pid | awk '{print $9}')
    echo $cpu_usage
    echo "CPU Usage of sensors.qcom: ${cpu_usage/.*}"
    if [[ ${cpu_usage/.*} -ge 8 ]]; then
            if [[ $kill_count -ge 1 ]]; then
                    echo "CPU Usage of sensors.qcom too high restarting..."
                    systemctl restart sensorfwd
                    kill_count=0
            else
                    echo "CPU Usage of sensors.qcom too high! Setting kill_count + 1"
                    kill_count=$((kill_count+1))
            fi
    else
            echo "Nothing to do"
    fi
  fi 
  sleep 30
done


romu 2016-03-23 12:02

Re: SailfishOS 2.0 on Nexus 5
 
This script is buggy. Just experienced a sensor crash. As a result:
  • sensors.qcom processes was still active and ate about 0% of CPU
  • sensorfwd process was not running

I tweaked the script to monitor sensorfwd instead of sensors.qcom. And I'll see how things are going.

Code:

#!/bin/bash
 
# This checks every 1/2 minute and kills if
# sensorfwd process is eating more than 8% CPU for 1 minute
 
TERM=linux
export TERM
 
kill_count=0
 
while true; do
  sensors_pid=$(ps aux | grep sensorfwd | grep -v grep | awk '{print $2}')
 
  # If the process has crashed it may not be running,
  # so we restart it
  if [ -z $sensors_pid ]; then
    systemctl restart sensorfwd
  else
    cpu_usage=$(top -b -p $sensors_pid -n1 | grep $sensors_pid | awk '{print $9}')
    echo $cpu_usage
    echo "CPU Usage of sensorfwd: ${cpu_usage/.*}"
    if [[ ${cpu_usage/.*} -ge 8 ]]; then
            if [[ $kill_count -ge 1 ]]; then
                    echo "CPU Usage of sensorfwd too high restarting..."
                    systemctl restart sensorfwd
                    kill_count=0
            else
                    echo "CPU Usage of sensorfwd too high! Setting kill_count + 1"
                    kill_count=$((kill_count+1))
            fi
    else
            echo "Nothing to do"
    fi
  fi 
  sleep 30
done


romu 2016-03-25 09:22

Re: SailfishOS 2.0 on Nexus 5
 
I'm feeling a bit alone on this thread :D

The watchdog script has a problem, but this may come from the way it is setup on my N5.

The .sh file is in my /home/nemo folder. The watchdog service file has been added to systemd and stands in /lib/systemd/system.

The issue is the watchdog doesn't work if you don't unlock the phone. This morning, I saw the sensors framework was crashed. And once I unlocked the phone, the watchdog did its work as expected.

Is there any way to get this to work even if the phone is locked?

m4r0v3r 2016-03-25 13:13

Re: SailfishOS 2.0 on Nexus 5
 
could be due to wakelocks?

romu 2016-03-25 15:04

Re: SailfishOS 2.0 on Nexus 5
 
What's wakelocks?


All times are GMT. The time now is 04:53.

vBulletin® Version 3.8.8