maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

mautz 2016-11-30 11:55

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1519634)
I can't even email or upload files with sfdroid

Does the wifi symbol in sfdroid show an exclamation mark?

claustn 2016-11-30 12:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
yes, i saw there was a solution but i can't find it anymore.
My /storage folder seems to be empty.

mautz 2016-11-30 12:46

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1519674)
yes, i saw there was a solution but i can't find it anymore.
My /storage folder seems to be empty.

You could use the command 'pkill zygote' in a root terminal in sfdroid, this will restart sfdroid and your connection should be fully working.

Have you tried accesing the /storage folder as root?

claustn 2016-11-30 12:51

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
as root in terminal i can see the folders, is there an app with root permission?

minimec 2016-11-30 14:13

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1519628)
-sfdroid is working, is it possible to exchange files between it and SFOS? without using some kind of cloud or anything that's internet based.

You can access the Android storage within SailfishOS and even sftp in '/data/media/0/'. No need for 'root' privileges. Over sftp I can just drag&drop files within the filemanager (Gnome/Linux).

Quote:

Originally Posted by abyzthomas (Post 1519568)
My new clean install on MultiROM displays "Android is starting -- Starting apps" for ever. Tried couple times, but same results.

Quote:

Originally Posted by BluesLee (Post 1519511)
Do you guys run sfdfoid on cm12.1 + sfos >=2.0.4? I only get the blue cm logo? How can i fix this, i.e. rerun the very first scripts to configure cm (language settings etc)?

I would try to start sfdoid from the Terminal with 'sfdroid' or 'sfdroid.sh'. Maybe you get some meaningful error messages.


Quote:

Originally Posted by deprecated (Post 1519389)
Regarding the GPS issue above:

I've fixed the GPS issues on my end. I'm using an old baseband and I made some edits to /system/etc/gps.conf:

Would that mean, that you got AGPS working with your fix?


Quote:

Originally Posted by mautz (Post 1519612)
I checked charging today and it did only charge with 270mA. I compiled a new kernel with the old fast charge option and now i get 1500mA.

I didn't even notice, but as mentioned before I use the LG/Nexus QI charger... ;) Updated the kernel anyway... THX

claustn 2016-11-30 15:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1519679)
You can access the Android storage within SailfishOS and even sftp in '/data/media/0/'. No need for 'root' privileges. Over sftp I can just drag&drop files within the filemanager (Gnome/Linux).

Works! Thank you

[QUOTE=BluesLee;1519511
Do you guys run sfdfoid on cm12.1 + sfos >=2.0.4? I only get the blue cm logo? How can i fix this, i.e. rerun the very first scripts to configure cm (language settings etc)?[/QUOTE]


I've had the same problem, then i switched to 2.0.1.1 and now works fine. Maybe you have first to install the old version and then do an OTA upgrade.

abyzthomas 2016-11-30 15:55

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1519679)
I would try to start sfdoid from the Terminal with 'sfdroid' or 'sfdroid.sh'. Maybe you get some meaningful error messages.

Here is what I get.

Code:

nemo@localhost ~]$ /usr/bin/sfdroid.sh
Frames: 26
Frames: 28
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] }
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
at android.os.Parcel.readException(Parcel.java:1552)
at android.os.Parcel.readException(Parcel.java:1499)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2485)
at com.android.commands.am.Am.runStart(Am.java:766)
at com.android.commands.am.Am.onRun(Am.java:305)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:97)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)
Frames: 32
Frames: 30
Frames: 13
Frames: 11
Frames: 5
Frames: 2
Frames: 2
Frames: 2
Frames: 8
Frames: 2


minimec 2016-11-30 17:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by abyzthomas (Post 1519695)
Here is what I get.

Not that I would have a solution to your problem, but you indeed do have a 'java.lang.NullPointerException:' when starting 'sfdroid.sh'. My start sequence on 'SailfishOS 2.0.4.14' would look like this...

I guess it's worth posting your start sequence (including SailfishOS version) in the sfdroid thread http://talk.maemo.org/showthread.php...hlight=sfdroid


Code:

,---
| SailfishOS 2.0.4.14 (Fiskarsinjoki) (armv7hl)
'---
[nemo@pris ~]$ sfdroid.sh
Frames: 6
Frames: 21
Frames: 4
Frames: 4
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] }
Warning: Activity not started, its current task has been brought to the front
Frames: 36
Frames: 26
Frames: 4
Frames: 4
Frames: 4


abyzthomas 2016-11-30 17:28

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1519706)
I guess it's worth posting your start sequence (including SailfishOS version) in the sfdroid thread

Posted to sfdroid thread

mautz 2016-11-30 21:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Small kernel update...

Kernel v8

Changelog:
Code:

- Reverted fast charge back to first version due to slow charging

- Added msm_mpdecision aka "bricked hotplug" cpu hotplug governor

MSM_mpdecision is a highly customizable hotplug governor:
Code:

Check /sys/kernel/msm_mpdecision/conf/ for the configuration.

startdelay = time until mpdecision starts doing it's magic (20000)
delay = time between checks (70)
pause = if something else plugs in the cpu, fall asleep for 10000ms (10 secs)
scroff_single_core = if the screen is off, don't plug in cpu1/2/3. Additionally: Unplug all cpus except cpu0 when screen is turned off (1)
enabled = enable(1) or disable(0) mpdecision. This does not affect scroff_single_core!
min_cpus = min cpus to be online, cannot be < 1. Default: 1
max_cpus = max cpus to be online, cannot be > 4. (if you set it to 2 and min_cpus to 1 you will basically have a dualcore) Default: 4
idle_freq = a value against that will be checked if a core +/- is requested. (486000)
If cpu0 is below that value and a core up of another cpu is requested, nothing will happen.
If any other cpu is above that value and a core down of that cpu is requested, nothing will happen. (otherwise it would now put down that cpu even though it is still working, which isn't what we want)

Hot plug thresholds (aka now it gets 'complicated')
This small formula calculates which value will be used: (number_of_cpus_online - 1) * 2
The result of this formula will be the nwns_threshold where a new cpu is hotplugged.
The result of this formula + 1 will be the nwns_threshold where a cpu is unplugged.

nwns_threshold_x = runqueue threshold, if this is reached cpuX will be hot/unplugged
twts_threshold_x = time threshold, this amount of time must have passed for the related action to be taken (hot/unplug)

Example:
One cpu is online.
(1 - 1) * 2 = 0 ergo:
nwns_threshold_0 = cpu1 will be hotplugged at this value
((1 - 1) * 2) + 1 = 1
nwns_threshold_1 = cpu0 will be unplugged at this value
Since we can't unplug cpu0 this is '0'.

Two cpus are online.
(2 - 1) * 2 = 2 ergo:
nwns_threshold_2 = cpu2 will be hotplugged at this value
((2 - 1) * 2) + 1 = 3
nwns_threshold_3 = cpu1 will be unplugged at this value

etc...

The default values are:
NwNs_Threshold: 12, 0, 25, 20, 32, 28, 0, 35
TwTs_Threshold: 140, 0, 140, 190, 140, 190, 0, 190
Where the position and function of the number equals the result of the above explained formula.

(all times are in ms)

So, for example by setting "nwns_threshold_4" to a high value (e.g. 90) only the first 2 cores of the cpu will be used at averge load/usage. Core 3 and 4 will only come up under very high load.

Don't forget to disable stock mpdecision hotplug governor, when using an alternate hotplug governor!

Kernel can be downloaded here.

Source is available here.


All times are GMT. The time now is 07:26.

vBulletin® Version 3.8.8