|
2016-02-18
, 18:25
|
Posts: 5 |
Thanked: 1 time |
Joined on Feb 2016
|
#472
|
|
2016-02-18
, 18:26
|
Posts: 5 |
Thanked: 1 time |
Joined on Feb 2016
|
#473
|
You need to start with
and set the latest version.Code:devel-su sed -i -e "s|^adaptation=.*$|adaptation=http://repo.merproject.org/obs/nemo:/testing:/hw:/lge:/hammerhead/sailfish_latest_armv7hl/|" /usr/share/ssu/repos.ini
It's also better to change your language settings back to English.Code:ssu release 2.0.1.7
|
2016-02-19
, 23:53
|
Posts: 426 |
Thanked: 1,812 times |
Joined on Dec 2013
|
#474
|
#!/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}') 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 sleep 30 done
|
2016-02-20
, 07:29
|
|
Posts: 411 |
Thanked: 1,105 times |
Joined on Jan 2010
@ Europe
|
#475
|
I created an alternative workaround for the sensor services running amok in the background and eating cpu thus battery life.
I was not so happy that I need to compile a python library for the proposed fix to test, so I took a look at the python script and wrote my own version of it in a more simpler way in bash script.
...
If anyone with an bugzilla account could forward this to the bugtracker it would be great. (I don't have an account there and registration is disabled)
The Following 2 Users Say Thank You to BluesLee For This Useful Post: | ||
|
2016-02-20
, 09:09
|
Posts: 426 |
Thanked: 1,812 times |
Joined on Dec 2013
|
#476
|
The Following User Says Thank You to llelectronics For This Useful Post: | ||
|
2016-02-20
, 17:54
|
Posts: 69 |
Thanked: 85 times |
Joined on Mar 2013
|
#477
|
|
2016-02-20
, 20:48
|
Posts: 69 |
Thanked: 85 times |
Joined on Mar 2013
|
#478
|
|
2016-02-20
, 21:58
|
Posts: 426 |
Thanked: 1,812 times |
Joined on Dec 2013
|
#479
|
Feb 20 22:54:48 Jolla sensorfwd[2268]: Node ' "proximityadaptor" ' state changed to invalid
Feb 20 22:54:48 Jolla sensorfwd[2268]: SensorManagerError: "adaptor 'proximityadaptor' can not be started"
Feb 20 22:54:48 Jolla sensorfwd[2268]: Node ' "proximitysensor" ' state changed to invalid
Feb 20 22:54:48 Jolla sensorfwd[2268]: "proximitysensor instantiation failed"
Feb 20 22:54:48 Jolla sensorfwd[2268]: SensorManagerError: "sensor has not been instantiated"
Feb 20 22:54:48 Jolla sensorfwd[2268]: SensorManagerError: "requested sensor id 'alssensor' not registered"
Feb 20 22:54:48 Jolla sensorfwd[2268]: int HybrisManager::handleForType(int) No sensor of type: 1
Feb 20 22:54:48 Jolla sensorfwd[2268]: Node ' "accelerometeradaptor" ' state changed to invalid
Feb 20 22:54:48 Jolla sensorfwd[2268]: SensorManagerError: "adaptor 'accelerometeradaptor' can not be started"
Feb 20 22:54:48 Jolla sensorfwd[2268]: ASSERT: "accelerometerAdaptor_" in file accelerometerchain.cpp, line 48
Feb 20 22:54:48 Jolla systemd[1]: sensorfwd.service: main process exited, code=killed, status=6/ABRT
|
2016-02-20
, 22:12
|
Posts: 69 |
Thanked: 85 times |
Joined on Mar 2013
|
#480
|
Last edited by jellyroll; 2016-02-18 at 17:42.