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)

tomislav 2016-01-07 11:53

Re: SailfishOS 2.0 on Nexus 5
 
Does this port work on 6.0.1 also with dual boot

m4r0v3r 2016-01-07 21:14

Re: SailfishOS 2.0 on Nexus 5
 
well does multirom work with android 6.0.1? if it does your golden

nh1402 2016-01-08 06:20

Re: SailfishOS 2.0 on Nexus 5
 
My primary rom is the m developer preview 3, with the secondary rom being sailfish, works just fine.

Drekkie 2016-01-12 06:25

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Drekkie (Post 1493928)
Sure, should be this one.

https://bugs.nemomobile.org/show_bug.cgi?id=820

The discussion towards the end of it is explicitly about debugging the orientation freeze, where repro/logs are requested.

So i finally saw this behavior happen in real time. I was holding the phone in portrait mode reading a text in the Messages app. An email came in and displayed the brief notification at the top of the screen, the phone vibrated, and the orientation of my text immediately switched to landscape and stayed there even though the phone was still held in portrait orientation.

I had disabled the debug logging after running it for several days with no incident so didn't capture it. Might play around with this when i have time to see if i can repro on demand, but curious if anyone else sees this same thing. If so i can post to the bug.

romu 2016-01-12 09:20

Re: SailfishOS 2.0 on Nexus 5
 
I guess we all see the same thing. It affects the orientation, the "low power mode" (if enabled) and your battery life!

beobachter 2016-01-13 04:42

Re: SailfishOS 2.0 on Nexus 5
 
I just love running SfOS 2.0.0.10 on my Nexus 5, the downside is my N900 spends more and more time in the box.

MultiROMing under Marshm 6/6.0.1 is not my thing, since the battery drains too fast to my taste.

Low power mode messes up SfOS Camera AND GPS.

romu 2016-01-13 09:41

Re: SailfishOS 2.0 on Nexus 5
 
@Feathers-McGraw: As you managed to implement the torch, may I ask you a similar small utility to restart the sensors framework? It's pretty boring to have to open a terminal, devel-su, etc. That would be great.

With a packaged utility, we could even imagine to restart the sensors framework on a regular basis with Situations.

Feathers McGraw 2016-01-13 09:54

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1494703)
@Feathers-McGraw: As you managed to implement the torch, may I ask you a similar small utility to restart the sensors framework? It's pretty boring to have to open a terminal, devel-su, etc. That would be great.

With a packaged utility, we could even imagine to restart the sensors framework on a regular basis with Situations.

I'll have a look, which command are you using at the moment? I'm still waiting for my N5 to arrive from china :rolleyes:

I haven't used situations, how does it work? If it just runs CLI utilities in the background, can't you create an alias for whichever command you're using?

romu 2016-01-13 10:01

Re: SailfishOS 2.0 on Nexus 5
 
As soon as a utility is packaged as an application, Situations will be able to run it. You just set the trigger you prefer and that's all. That's a pretty good application.

Here is the process to restart the sensors framework:

1. Open a terminal
2. devel-su (+ password)
3. systemctl restart sensorfwd
4. exit 2 times to close the terminal

Problem is restarting the framework can only be done as root, don't know if this could be an issue to package this as an application.

clovis86 2016-01-13 10:03

Re: SailfishOS 2.0 on Nexus 5
 
IS a 16gB version ok for salifish or 32gB is mandatory ?

romu 2016-01-13 10:29

Re: SailfishOS 2.0 on Nexus 5
 
16 GB is enough.

clovis86 2016-01-13 10:37

Re: SailfishOS 2.0 on Nexus 5
 
Thanks for the replys.
how many space left do you got after installing SFOS please ? :)

Feathers McGraw 2016-01-13 22:51

Re: SailfishOS 2.0 on Nexus 5
 
Just a quick message to say that I got my N5 today, the installation went very smoothly (I used CM11 + alpha0, then followed the wiki instructions to upgrade to SFOS 2.0) and I'm really happy.

Thank you to everyone who has worked on this!

I was pleased to find that bluetooth works fine for me, and the connection to my Pebble Time watch with pebbled is working as well as it did on Jolla. Wasn't expecting that, even though the libhybris table says bluetooth is working :D

Sailfish looks really nice on this screen size (and the N5 is much lighter than jPhone for some reason!), it's a shame Jolla hasn't got more devices out there.

pichlo 2016-01-14 01:11

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1494717)
16 GB is enough.

...for everybody!

Sorry, couldn't resist :o

salyavin 2016-01-14 04:47

Re: SailfishOS 2.0 on Nexus 5
 
Is needing to restart sensors a common problem?

Manatus 2016-01-14 07:02

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by salyavin (Post 1494851)
Is needing to restart sensors a common problem?

For me, at least, yes.

I had to ditch SailfishOS on Nexus 5 because I had too many problems caused by stuck sensors.

The screen would not blank during calls for instance, and I constantly dropped people to waiting line or closed calls with my cheek because of that.

clovis86 2016-01-14 07:46

Re: SailfishOS 2.0 on Nexus 5
 
I saw yesterday a workaround regarding bettery life and sensors on bugzzilla :
Quote:

C Smith 2016-01-09 07:40:27 UTC

I wrote a python "daemon" which works around the problem. It reduces CPU usage by restarting sensors when it misbehaves. My source is attached here. (I don't have another way of distributing it so someone please post it on a web server for me.)

The script is called: sensors-cpu-watchdog.py
It wakes up every 30 seconds and checks if sensors.qcom is "running away". if this problem persists for 2 minutes then the script does:
systemctl restart sensorfwd
and the problem goes away, sensors use less than 1% CPU again (the sensorfwd restart is harmless). Polling is ugly but low overhead, and is way better than allowing sensors to consume 25% CPU all day long.

Dependencies: must install psutil python lib.
I used psutil-3.3.0.tar.gz and installed it per its instructions.
put sensors-cpu-watchdog.py in /usr/local/bin
put sensors-cpu-watchdog.service into /lib/systemd/system/basic.target.wants/

Then you can do things like:
systemctl restart sensors-cpu-watchdog.service
systemctl status sensors-cpu-watchdog.service

do:
ps ax |grep watchdog
and you should see something like:
470 ? Ss 0:16 /usr/bin/python /usr/local/bin/sensors-cpu-watchdog.py &

Note that I can pretty reliably reproduce the high CPU usage by sensors.qcom and sensorfwd, where both use around 13% CPU. All I have to do is unblank by pressing power button, and then swipe in from the right side.
https://bugs.nemomobile.org/show_bug.cgi?id=837

romu 2016-01-14 08:47

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by pichlo (Post 1494848)
...for everybody!

Sorry, couldn't resist :o

I didn'y say that, and personaly I run a 32 GB one because I've all music stored on the phone.

pichlo 2016-01-14 10:05

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1494865)
I didn't say that

I know, I was adding to your post :) Hence my small-print apology.

frullewulle 2016-01-14 10:38

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by clovis86 (Post 1494858)
I saw yesterday a workaround regarding bettery life and sensors on bugzzilla :


https://bugs.nemomobile.org/show_bug.cgi?id=837

I did not find a proper way to install Psutils or a package for that.
Does someone has an explanation or a solution for that?

jem555 2016-01-14 15:57

Re: SailfishOS 2.0 on Nexus 5
 
Hi. Has anyone changed camera format from config on N5? In default format (untouch) its setting appears empty and works in 16:9. But if I choose 16:9 my camera freezes, not the app, just the stream. In the log I can see the following:

[D] QGstreamerVideoWindow::QGstreamerVideoWindow:72 - No m_videoSink available!
[W] CameraBinSession::processBusMessage:1027 - CameraBin error: "failed to negotiat
e caps"
[W] CameraBinSession::processBusMessage:1027 - CameraBin error: "The stream is in t
he wrong format."
[D] QGstreamerVideoWindow::QGstreamerVideoWindow:72 - No m_videoSink available!

In 4:3 works ok. But I cannot go back to default (or 16:9).

May be I could change this setting to default (empty) from the config file (don't know where they are).

Help would be appreciated!

salyavin 2016-01-14 17:23

Re: SailfishOS 2.0 on Nexus 5
 
Any issues with tethering on Sailfish on Nexus?

tealc 2016-01-14 20:51

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Manatus (Post 1494855)

I had to ditch SailfishOS on Nexus 5 because I had too many problems caused by stuck sensors.

The screen would not blank during calls for instance, and I constantly dropped people to waiting line or closed calls with my cheek because of that.

I have limited knowledge of how libhybris works but if Sailfish is using the same drivers as android then couldn't this problem be related to this bug?
https://productforums.google.com/for...us/9HZHQJMrxF8

Feathers McGraw 2016-01-14 21:45

Re: SailfishOS 2.0 on Nexus 5
 
Is double tap to unlock supposed to work on N5? Power button works for me but double tap doesn't.

nh1402 2016-01-14 22:42

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Feathers McGraw (Post 1494969)
Is double tap to unlock supposed to work on N5? Power button works for me but double tap doesn't.

No, you can enable it in some custom kernels but due to the way the display is connected to the touch controller, it violently drains the battery if you turn it on.

Alley 2016-01-14 23:02

Re: SailfishOS 2.0 on Nexus 5
 
Hmmmmm I seem to do everything said in the Multirom rom installation guide, like having right files but all i see is a google screen for few minutes and a reboot when i try to boot Sailfish

Feathers McGraw 2016-01-14 23:34

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by nh1402 (Post 1494995)
No, you can enable it in some custom kernels but due to the way the display is connected to the touch controller, it violently drains the battery if you turn it on.

Thanks, I'm fine with using the power key if there's a reason not to use double tap, just wanted to know if it was to be expected or not!

salyavin 2016-01-15 04:33

Re: SailfishOS 2.0 on Nexus 5
 
Did you guys catch someone is working on running Android as an app in sailfish on Nexus 5?
* #Android as Sailfish OS app: https://twitter.com/sledgeSim/status/679647138305970177 with installation instructions on Nexus 5: http://piratepad.net/FtZYtm4tDY
https://www.youtube.com/watch?v=--OtwvH4ARU

romu 2016-01-15 10:06

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Feathers McGraw (Post 1495012)
Thanks, I'm fine with using the power key if there's a reason not to use double tap, just wanted to know if it was to be expected or not!

Indeed you can...almost. First, you must enable low power mode (I posted instructions in the first pages of this thread).

Once LPM is enabled, you can get your N5 out of your pocket, the screen in LPM gets activated and at that time, double tap will unlock the phone.

I use this everyday.

oenone 2016-01-15 10:24

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by salyavin (Post 1494908)
Any issues with tethering on Sailfish on Nexus?

Yes. Tethering via wifi I can never find the network so have no idea if tethering actually works or not. Tried with several devices.

The only "work around" is to boot into Android and use that for wifi tethering. Which is not really a work around.

Never tired tethering via bluetooth or cable.

weqaz 2016-01-15 15:33

Re: SailfishOS 2.0 on Nexus 5
 
Can I install/use Whatsapp on cyanogenmod or will that cause problems
for my whatsup account on sailfish? I would like to use whatsapp when using CM but don't want to mess up my perfectly working whatsup, has anyone tried or know if there's any problems?

nh1402 2016-01-15 16:05

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by weqaz (Post 1495092)
Can I install/use Whatsapp on cyanogenmod or will that cause problems
for my whatsup account on sailfish? I would like to use whatsapp when using CM but don't want to mess up my perfectly working whatsup, has anyone tried or know if there's any problems?

By WhatsApp on CM I'm assuming you mean a different ROM and not from within Sailfish since that's not stable yet. You can switch between them but you would have to re-verify yourself every time you switch between CM and Sailfish and since you're not using the official WhatsApp app on Sailfish you won't be able to move your conversation back up over, as far as I know.

frullewulle 2016-01-16 10:56

Re: SailfishOS 2.0 on Nexus 5
 
I've used the psutils trick for a while but don't see much difference in battery life.
I've noticed that disabling dynamic portret or landscape mode gains 2 % cpu ( from ± 5,5 to 3,5% for sensors.qcom and sensorsfw)
I'l try what dissabling other sensors gives

(about sensors bug)

Feathers McGraw 2016-01-16 14:02

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1495063)
First, you must enable low power mode
...
I use this everyday.

Just enabled this, pretty cool. How does it work exactly? Do the sensors detect the phone being flipped upside-down and turn the screen on in low power mode?

How much effect do you think this has on battery life?

m4r0v3r 2016-01-16 21:22

Re: SailfishOS 2.0 on Nexus 5
 
wifi tethering doesnt work but cable does, currently doing it now.

salyavin 2016-01-16 21:34

Re: SailfishOS 2.0 on Nexus 5
 
Thank you a lot m4r0v3r! I sometimes need to work from a laptop going through a mobile, if I can cable that is fine, I did it on the N900. I am about at the point of getting a Nexus 5 and running Sailfish on it.

m4r0v3r 2016-01-16 21:42

Re: SailfishOS 2.0 on Nexus 5
 
yeah just go to usb and hit internet sharing and your golden.

Feathers McGraw 2016-01-16 21:55

Re: SailfishOS 2.0 on Nexus 5
 
I have a few more questions, sorry for asking so many and thank you for your helpful answers so far!

1) is 4g working for anyone? I'm not sure I've seen the phone using 4g once since I got it.

2) is there a way to make settings like BT on/off persistent across reboots? I noticed that even if it's on normally, I have to manually re-enable it after rebooting (annoying if you have a watch or something you want to pair with). This doesn't happen on the jolla.

3) is it possible to use the mer-tools repo? I tried to enable it like this:

Code:

devel-su
ssu ar mer-tools
pkcon refresh

but I get this message

Quote:

Fatal error: Authentication failed (is SSU set up correctly?)
Are there extra steps for N5?

m4r0v3r 2016-01-16 22:03

Re: SailfishOS 2.0 on Nexus 5
 
4g works fine for me.

romu 2016-01-17 10:37

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Feathers McGraw (Post 1495159)
Just enabled this, pretty cool. How does it work exactly? Do the sensors detect the phone being flipped upside-down and turn the screen on in low power mode?

How much effect do you think this has on battery life?

AFAIK, it works only with the proximity sensor. Personaly, I don't worry with battery like, having LPM is much more important to me. ;) Currently, my N5 battery lasts for about 36 hours, but I don't have any data contract, which helps a bit.


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

vBulletin® Version 3.8.8