Reply
Thread Tools
Posts: 1,746 | Thanked: 1,832 times | Joined on Dec 2010
#591
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
 

The Following 2 Users Say Thank You to m4r0v3r For This Useful Post:
Posts: 76 | Thanked: 377 times | Joined on Feb 2016
#592
Originally Posted by szymeczek34 View Post
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).
 

The Following User Says Thank You to RealJohnGalt For This Useful Post:
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#593
Originally Posted by RealJohnGalt View Post
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.
 

The Following User Says Thank You to Feathers McGraw For This Useful Post:
Posts: 277 | Thanked: 285 times | Joined on Dec 2011 @ Poland
#594
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.
 

The Following User Says Thank You to szymeczek34 For This Useful Post:
DJJonosound's Avatar
Posts: 411 | Thanked: 302 times | Joined on May 2012 @ Australia
#595
Originally Posted by szymeczek34 View Post
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.
 
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#596
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
 
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#597
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
 

The Following User Says Thank You to romu For This Useful Post:
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#598
I'm feeling a bit alone on this thread

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?
 

The Following 2 Users Say Thank You to romu For This Useful Post:
Posts: 1,746 | Thanked: 1,832 times | Joined on Dec 2010
#599
could be due to wakelocks?
 
Posts: 602 | Thanked: 735 times | Joined on Mar 2011 @ Nantes, France
#600
What's wakelocks?
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:24.