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)

boebbele 2016-02-09 06:16

Re: SailfishOS 2.0 on Nexus 5
 
Okay. sounds very nice... How can I download the new version?

nh1402 2016-02-09 13:21

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498268)
Okay. sounds very nice... How can I download the new version?

the sfdroid thread the first post is constantly updated when a new version is available.

boebbele 2016-02-09 20:20

Re: SailfishOS 2.0 on Nexus 5
 
With the new version Sfdroid dont start and I become this error:


[nemo@Jolla1 ~]$ sfdroid

failed to open uinput device:

Idev/uinput: Permission denied

ldevlinput/uinput: No such file or directory

ldev/misc/uinput: No such file or directory

wrong permissions. did you reboot?

terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument

boebbele 2016-02-09 20:23

Re: SailfishOS 2.0 on Nexus 5
 
The frontcamera works but the major camera wont work.

jellyroll 2016-02-09 21:32

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498335)
With the new version Sfdroid dont start and I become this error:


[nemo@Jolla1 ~]$ sfdroid

failed to open uinput device:

Idev/uinput: Permission denied

ldevlinput/uinput: No such file or directory

ldev/misc/uinput: No such file or directory

wrong permissions. did you reboot?

terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument

Code:

$ ssh nemo@127.0.0.1
password:
sg graphics sfdroid

I got it working smoothly without a power cable attached to the device. It't still using alot of resources. Use android es taskmanager to free up memory.

boebbele 2016-02-10 06:23

Re: SailfishOS 2.0 on Nexus 5
 
Won't work...it show me the same Error.

jellyroll 2016-02-10 11:29

Re: SailfishOS 2.0 on Nexus 5
 
This error does also appear after restoring a backup with the old sfdroid application on it.
You can try to run a fresh install again by flashing the zip files in succession without rebooting the device in between.
If this error appears after the first boot then use ssh or just reboot the device.

jellyroll 2016-02-11 23:13

Re: SailfishOS 2.0 on Nexus 5
 
Yeah!! ? YA! YA!

liar 2016-02-12 09:14

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498335)
With the new version Sfdroid dont start and I become this error:


[nemo@Jolla1 ~]$ sfdroid

failed to open uinput device:

Idev/uinput: Permission denied

ldevlinput/uinput: No such file or directory

ldev/misc/uinput: No such file or directory

wrong permissions. did you reboot?

terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument


you forgot the usermod command.

boebbele 2016-02-12 15:43

Re: SailfishOS 2.0 on Nexus 5
 
Yes! That was it! Thank you.
I had it done (usermod), but I did it again and reboot the phone...and than it works!
Camera works also. But only in 4:3 mode. But this is okay for me.
many many thanks!!!

boebbele 2016-02-12 21:19

Re: SailfishOS 2.0 on Nexus 5
 
Hey it works very good! :-)

jellyroll 2016-02-13 00:09

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by jellyroll (Post 1498387)
You can try to run a fresh install again by flashing the zip files in succession without rebooting the device in between.

EDIT:
I did not flashed the zip files in succession but restored a backup of the latest SFO version for Nexus 5 after deleting all the data except the internal storeage and finally flashed sfdroid on top of it.

BluesLee 2016-02-13 03:44

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by liar (Post 1498570)
you forgot the usermod command.

I got the same error messages mentioned above. Using the usermod command i get
Code:

Can't find service: power

RealJohnGalt 2016-02-15 04:40

Re: SailfishOS 2.0 on Nexus 5
 
FYI, camcorder is working fine on 2.0.1.7 with hammerhead.

jellyroll 2016-02-15 07:27

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by RealJohnGalt (Post 1498813)
FYI, camcorder is working fine on 2.0.1.7 with hammerhead.

Did you do an upgrade from version 2.0.0.10 to 2.0.1.7 ?

boebbele 2016-02-15 18:03

Re: SailfishOS 2.0 on Nexus 5
 
I have also upgrade to 2.0.1.7. Works great! :-)

How can I become root rights in sfdroid? It wont work.

romu 2016-02-16 09:55

Re: SailfishOS 2.0 on Nexus 5
 
2.0.1.7 works great...except some important regressions:
  • Google calendar sync is broken
  • No more voicemail notification

The good news is those regressions are not N5 related.

kuba77 2016-02-16 11:00

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498877)
I have also upgrade to 2.0.1.7. Works great! :-)

How can I become root rights in sfdroid? It wont work.

On my N4 I flashed sfdroid and with it also SuperSU for Android. Root works ok.

kuba77 2016-02-16 11:16

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498877)
I have also upgrade to 2.0.1.7. Works great! :-)

How can I become root rights in sfdroid? It wont work.

On my N4 I flashed sfdroid and with it also SuperSU for Android. Root works ok.

boebbele 2016-02-16 18:45

Re: SailfishOS 2.0 on Nexus 5
 
Okay. I use posteo calendar and contacts, no google... Fuux is also a good alternative.

jellyroll 2016-02-16 21:15

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1498877)
I have also upgrade to 2.0.1.7. Works great! :-)

How can I become root rights in sfdroid? It wont work.

I don't know how to do that I think you should ask the developers. Does camera video recording works for you with sfdroid installed?

kuba77 2016-02-16 21:54

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by jellyroll (Post 1498971)
I don't know how to do that I think you should ask the developers. Does camera video recording works for you with sfdroid installed?

On my N4 I flashed sfdroid and with it also SuperSU for Android. Root works ok.

boebbele 2016-02-17 06:35

Re: SailfishOS 2.0 on Nexus 5
 
I have not flashes supersu separatly. Because it is in CM11 settings.
Then I have to flash SuperSU.zip over sfdroid in recovery?

nh1402 2016-02-17 08:18

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by boebbele (Post 1499004)
I have not flashes supersu separatly. Because it is in CM11 settings.
Then I have to flash SuperSU.zip over sfdroid in recovery?

I think it worked once for xda-labs and then stopped working, that's the only app in the CM11 supersu settings for me. check the location where supersu flashes things to, and see if the su binary and apk is actually there or not. It might be set as nemo user or something.

jellyroll 2016-02-17 13:54

Re: SailfishOS 2.0 on Nexus 5
 
I just flashed the stable release of SuperSU on top of sfdroid and SFO 20.0.1.7 and gained root acces in sfdroid.

http://forum.xda-developers.com/show....php?t=1538053

romu 2016-02-18 08:53

Re: SailfishOS 2.0 on Nexus 5
 
Hi, small question: did someone try wifi tethering with the N5+SFOS? None of my computers see the network I've setup on the phone.

m4r0v3r 2016-02-18 08:58

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1499128)
Hi, small question: did someone try wifi tethering with the N5+SFOS? None of my computers see the network I've setup on the phone.

yeah currently doesnt work. cable tethering works fine though

eaanv 2016-02-18 15:51

Re: SailfishOS 2.0 on Nexus 5
 
can anyone help me upgrade to 2.0.0.10 version? i tried many times and always say "error with repo.merproject.org".

PLEASE! http://i68.tinypic.com/24zdcsm.jpg

m4r0v3r 2016-02-18 16:11

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by eaanv (Post 1499149)
can anyone help me upgrade to 2.0.0.10 version? i tried many times and always say "error with repo.merproject.org".

PLEASE! http://i68.tinypic.com/24zdcsm.jpg

you spelt mer project wrong. you put merproyect.

Also version 2.0.1.7 is now out

eaanv 2016-02-18 16:15

Re: SailfishOS 2.0 on Nexus 5
 
OMG! I just read it all a few times to find something wrong. Let me try it

jellyroll 2016-02-18 17:31

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by eaanv (Post 1499149)
can anyone help me upgrade to 2.0.0.10 version? i tried many times and always say "error with repo.merproject.org".

PLEASE! http://i68.tinypic.com/24zdcsm.jpg

You need to start with
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
and set the latest version.
Code:

ssu release 2.0.1.7
It's also better to change your language settings back to English.

eaanv 2016-02-18 18:25

Re: SailfishOS 2.0 on Nexus 5
 
I did it and I'm still on the same version. http://uploads.tapatalk-cdn.com/2016...bd5bd292e3.jpg

eaanv 2016-02-18 18:26

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by jellyroll (Post 1499162)
You need to start with
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
and set the latest version.
Code:

ssu release 2.0.1.7
It's also better to change your language settings back to English.

OK, I'll do it. Thanks

llelectronics 2016-02-19 23:53

Re: SailfishOS 2.0 on Nexus 5
 
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.

You can download it from here: https://www.dropbox.com/s/86wvsayyg5...ensors.sh?dl=0

You don't need python just execute the script and let it running.
You can also use the service for systemd and edit it to use this bash script instead of the python one. I also did that here: https://www.dropbox.com/s/xs7rkzcpdh...l.service?dl=0
(see the .service file check_sensors.sh needs to be put into /home/nemo if you don't want to change the location)

In fact the bash script is so small I can attach the 29 lines directly here. What it does should be self explanatory:
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}')
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

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)

BluesLee 2016-02-20 07:29

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1499256)
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)

Done, there's a small typo in the service, killall command.

llelectronics 2016-02-20 09:09

Re: SailfishOS 2.0 on Nexus 5
 
Thanks fixed that typo :)

frullewulle 2016-02-20 17:54

Re: SailfishOS 2.0 on Nexus 5
 
i'm also looking to this sensors.qcom error except i rather would like to find the reason for its behavior.

i don't see errors when enabling debug for sensorfwd
(it are exactly the same things that appear in journalctl -af on jolla phone and on nexus5)

temporary disabled sensors.qcom in init.hammerhead.rc for now

i've seen that in cm 13 and 12.1 the build.prop fiole has changed.

it's nor longer ro.qc.sensor.xxx but it's now ro.qti.sensors.xxx
i would like to find a way to disable each specific sensors to find which one exactly is the reason for the high cpu usage

someone else a suggestion to achieve this?

regards

frullewulle 2016-02-20 20:48

Re: SailfishOS 2.0 on Nexus 5
 
1 Attachment(s)
I think i found a solution.
I've replaced sensors.msm8974.so in /vendor/lib/hw with the one from the 6.0.1 android rom and now sensors.qcom en sensorfwd do stay below 1%

Can somenone else try this too?
(unzip attached file before copying into the proper directory)

llelectronics 2016-02-20 21:58

Re: SailfishOS 2.0 on Nexus 5
 
Hmm... replacing it on my system does not work.
After a restart sensors won't work at all.

Did you modified anything else to make it work ?

journalctl shows me this when trying to start sensorfwd service:

Quote:

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

frullewulle 2016-02-20 22:12

Re: SailfishOS 2.0 on Nexus 5
 
rebooted afterwards...
have put debug mode back to warning
changed the name of the original file to sensors.msm8974.so.bak
to be sure that the copy infiletug root worked well, maybe filepermissions?


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8