|
2016-03-27
, 08:17
|
Posts: 735 |
Thanked: 1,054 times |
Joined on Jun 2010
|
#602
|
|
2016-04-04
, 08:09
|
Posts: 69 |
Thanked: 85 times |
Joined on Mar 2013
|
#603
|
The Following User Says Thank You to frullewulle For This Useful Post: | ||
|
2016-04-04
, 08:40
|
Posts: 602 |
Thanked: 735 times |
Joined on Mar 2011
@ Nantes, France
|
#604
|
#!/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 echo "sensorfwd not found" # Before restarting the service, we must first kill the sensors.qcom process sensors_qcom=$(ps aux | grep sensors.qcom | grep -v grep | awk '{print $2}') kill $sensors_qcom 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
|
2016-04-04
, 09:36
|
Posts: 69 |
Thanked: 85 times |
Joined on Mar 2013
|
#605
|
|
2016-04-04
, 09:46
|
Posts: 602 |
Thanked: 735 times |
Joined on Mar 2011
@ Nantes, France
|
#606
|
|
2016-04-06
, 15:20
|
|
Posts: 46 |
Thanked: 84 times |
Joined on Aug 2011
|
#607
|
The Following User Says Thank You to beobachter For This Useful Post: | ||
|
2016-04-06
, 17:48
|
|
Posts: 654 |
Thanked: 2,368 times |
Joined on Jul 2014
@ UK
|
#608
|
Considered FairPhone2 ? SfOS is amazing on it even in beta ... SfOS 2.0 preinstalled to be available shortly.
|
2016-04-06
, 18:31
|
|
Posts: 191 |
Thanked: 129 times |
Joined on Dec 2009
@ Bloomington, IL
|
#609
|
|
2016-04-06
, 20:20
|
Posts: 307 |
Thanked: 488 times |
Joined on Sep 2010
@ USA around Chicago
|
#610
|
Anyone know how to increase the microphone volume? Everyone I have called says it is near impossible to hear me.
I want to use the volume up/down buttons on the N5 to decline and accept incoming calls. Does anyone known hiw to do this or the files that need to modify to achieve this?