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)

BluesLee 2017-04-19 16:33

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

Originally Posted by qoh (Post 1527028)
I've followed the entire thread. The amount of information is overwhelming.

Could we arrange to update the wiki?

Maybe someone can post links to the exact posts that handle certain parts of the install, and we compile them together.

What comes to my mind right now:
  • what to download & where
  • how to install (in multirom; how to skip tutorial)
  • how to apply all the fixes
  • all required workarounds (like 4-finger touch)
  • how to configure undervolting (including lowest voltages known to
    work)
  • screen wake up (lpm)
  • aliendalvik
  • anything else I might have overlooked

Many thanks for the proposal, something like this was in the pipeline. There is another thread with some useful information too:-)

As we will probably switch to cm13 within the next weeks i suggest just to wait. This might result in a new thread, wiki updates etc.

maem0Sapiens 2017-04-20 13:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Excuse me for being blunt but could anyone explain the differences respectively advantages between cm13 and the older versions?
More stable? Faster?

minimec 2017-04-24 14:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Heureka! (Eureka)

During the weekend I started to read this years #asteroidos irc logs and while doing so porbably (almost certainly) found the solution to our longterm outstanding bluetooth-sleep-bug! Well it is 'kido', the lead developer of asteroidos, that found the solution... (See... 14:34:12 kido:holy guacamole!!)

So they had a huge problem with bluetooth-sleep on Qualcomm based SoC's... Sounds familiar? ;)

After hours, even weeks of research there was a solution in the end: Turns out that the bluetooth stack never got a sleep signal from the system and therefore never went in suspend state.

If I got his solution right, he patched a small tool they use (brcm-patchram-plus) to configure the UART/IRQ for specific Broadcom bluetooth chips.The commit can be found here. Specially have a look at lines 213-216. Looks like he even included the values needed by our beloved Nexus5!


@mautz

I really think that this is the solution to our problem. I guess we should add that 'brcm-patchram-plus' tool and start it as a service after having started the bluetooth service. Looks like they do it that way in asteroidos. https://github.com/AsteroidOS/meta-a...e3c3d4fed6bc93

minimec 2017-04-24 15:00

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

Originally Posted by maem0Sapiens (Post 1527068)
Excuse me for being blunt but could anyone explain the differences respectively advantages between cm13 and the older versions?
More stable? Faster?

The new CM13 base should be more secure and better for battery life. Maybe even faster...

forb'S 2017-04-24 15:38

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Hmm... With the new base we maybe need a updated recovery, or? TWRP 2.8.x with CM13 will definitely eject an error.

TWRP 3.1.0.0 by Captain Throwback
https://www.androidfilehost.com/?w=files&flid=102780

Maybe interesting: EFIDroid (Multiboot)
https://forum.xda-developers.com/goo...xus-5-t3580493

BluesLee 2017-04-24 16:45

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

Originally Posted by forb'S (Post 1527287)
Hmm... With the new base we maybe need a updated recovery, or? TWRP 2.8.x with CM13 will definitely eject an error.

TWRP 3.1.0.0 by Captain Throwback
https://www.androidfilehost.com/?w=files&flid=102780

Maybe interesting: EFIDroid (Multiboot)
https://forum.xda-developers.com/goo...xus-5-t3580493


I already tested cm13 base with sfos some months ago using Multirom and an older version of TWRP without any issues.

forb'S 2017-04-25 22:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Oh! Then I said anything. ;D
But perhaps nothing speak against a new/latest and working recovery ...

qoh 2017-04-26 11:11

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

Originally Posted by BluesLee (Post 1527034)
As we will probably switch to cm13 within the next weeks i suggest just to wait. This might result in a new thread, wiki updates etc.

Isn't the install procedure basically the same for either CM12 and CM13, so that it would just be a minor change in the docs once CM13 variant is working fine?

BluesLee 2017-04-26 11:59

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

Originally Posted by qoh (Post 1527345)
Isn't the install procedure basically the same for either CM12 and CM13, so that it would just be a minor change in the docs once CM13 variant is working fine?

That is only a part of the installation routine / wiki and there is no significant change there. What about OTA, what about sfdroid ... Useful hints, kernel stuff etc

joruss 2017-05-01 13:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Probably worth mentioning that on CM12.1 with sensorsfix3.zip applied the z-axis lagging also affects rear camera in photo mode (video and front camera works smooth)

On the other hand, Cameraplus from openrepos works ok, so it must be something inside stock app that uses accelerometer.

Edit:

Fiddled with the cameraplus and it only allows to select 2Mpx in 16:9 proportions, while in system app I had 6Mpx selected, after switching to 8Mpx in 4:3 proportion even stock camera app started working ok. Weird...

m4r0v3r 2017-05-03 15:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
anyone know how well bluetooth headsets work with calls?

BluesLee 2017-05-03 16:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
If i remember correctly mautz wanted me to test this with cm13 and it did not fix the bad sound quality which is also present for cm12.

m4r0v3r 2017-05-03 20:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
think its a kernel issue not a cm base issue, i remember there was a bug about it

juiceme 2017-05-04 05:05

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

Originally Posted by m4r0v3r (Post 1527637)
think its a kernel issue not a cm base issue, i remember there was a bug about it

But cm12 and cm13 have different kernel so it should not be the issue here?

Moreover as I understand the poor-call-quality-on-bt issue does not exist on the android cm12 or cm13 but is something to do with the combination of pulseaudio on libhybris and blutooth HSP mode.
(which is the reason that A2DP profile works without any problems)

maximilian1st 2017-05-04 08:27

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

Moreover as I understand the poor-call-quality-on-bt issue does not exist on the android cm12 or cm13...
I am using my Nexus 5 with CM13 since january instead of SFOS because of the battery drain in the latter and can confirm that BT works flawlessly in my car.

claustn 2017-05-05 12:16

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I also have to face the battery drain problem because often the CPU keeps running at 100% even with no application running...

m4r0v3r 2017-05-07 11:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
bt calls still dont work well with my headset, very crackle and can hardly understand anything, music play is fine.

although ive built the mw vs 2.1 and attempting an update to 2.1 now, if its successful might just make an image, anyone wanting to risk it for a biscuit


removed link, it breaks your system :P

mautz 2017-05-10 10:13

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

Originally Posted by minimec (Post 1527284)
Heureka! (Eureka)

@mautz

I really think that this is the solution to our problem. I guess we should add that 'brcm-patchram-plus' tool and start it as a service after having started the bluetooth service. Looks like they do it that way in asteroidos. https://github.com/AsteroidOS/meta-a...e3c3d4fed6bc93

Awesome!

Have you tried this already?

mautz 2017-05-10 10:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Hi to everyone, sorry for the late reply, but i am very busy at the moment...also my laptops ac adaptor got fried and my sfos sdk got corrupted. So i started from scratch yesterday and compiled a new cm13 2.1.0.10 build. I am uploading it at the moment and going to start a new thread this evening to release this build for testing. Stay tuned.
Update: Started a new thread.

minimec 2017-05-10 17:27

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

Originally Posted by mautz (Post 1527852)
Awesome!

Have you tried this already?

I contacted 'kido' of AsteroidOS today. The 'brcm-patchram-plus' tool alone is not enough. We also need to patch 'bluesleep.c' in the kernel sources. I got some links now and will have a closer look into it. Obviously I do this on the CM12 kernel sources. I guess you use a newer kernel now with the CM13 base.

BluesLee 2017-05-10 19:07

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

Originally Posted by minimec (Post 1527881)
I contacted 'kido' of AsteroidOS today. The 'brcm-patchram-plus' tool alone is not enough. We also need to patch 'bluesleep.c' in the kernel sources. I got some links now and will have a closer look into it. Obviously I do this on the CM12 kernel sources. I guess you use a newer kernel now with the CM13 base.

BluesLeep.c .. A sign:)

mautz 2017-05-10 20:44

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

Originally Posted by minimec (Post 1527881)
I contacted 'kido' of AsteroidOS today. The 'brcm-patchram-plus' tool alone is not enough. We also need to patch 'bluesleep.c' in the kernel sources. I got some links now and will have a closer look into it. Obviously I do this on the CM12 kernel sources. I guess you use a newer kernel now with the CM13 base.

I saw something like that when looking through their github page. Could you post the necessary commits?

minimec 2017-05-10 21:44

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

Originally Posted by mautz (Post 1527897)
I saw something like that when looking through their github page. Could you post the necessary commits?

The 'BIG' patch is this one...

https://github.com/AsteroidOS/meta-d...-proc-bl.patch

Then you also have to compile 'brcm-patchram-plus' with this flag... "-DLPM_HAMMERHEAD"

I have to admit that this is far beyond my coder knowledge, but 'kido' offered his help. You will see in the patch, that in fact there are changes in multiple files of the bluetooth stack... You can always catch him in #asteroid on irc.freenode.

mautz 2017-05-10 21:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Seems like most of the patches in bluesleep.c are already included in cm12.1 kernel. Adding the rest seems easy, if it doesn't throw any build errors.

I haven't figued out how to build brcm-patchram-plus, but i only tried for a few minutes...

Thanks again!

minimec 2017-05-10 22:01

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

Originally Posted by mautz (Post 1527901)
Seems like most of the patches in bluesleep.c are already included in cm12.1 kernel. Adding the rest seems easy, if it doesn't throw any build errors.

I haven't figued out how to build brcm-patchram-plus, but i only tried for a few minutes...

Thanks again!

Yeah I also realized that some code is already baked in.


I add a comment of the conversation I had with 'kido' on #asteroid
Code:

19:07 @ kido : ok, anyway the patch just takes a couple of minutes to write. it's just a matter of hooking the standard kernel's HCI subsystem's HCI_DEV_REG, HCI_DEV_UNREG and HCI_DEV_WRITE to a handler in bluesleep.c that reproduces what bluesleep_write_proc_lpm and bluesleep_write_proc_btwrite do on the equivalents event

shmerl 2017-07-28 00:29

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Is there any progress with moving this to Mer wiki as udpated installation method?

And is sensorsfix3.zip still needed by the way?

dubliner 2017-08-18 14:24

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I am still using SFOS version 2.0.5.6 based on CM 12.1. The main reason for this being the unresolved (?) video recording problems with CM 13.

However, recently it has become a little annoying to find more and more software requiring SFOS 2.1. I feel like being left behind just a little. :o

So here's the big question: Is it possible to upgrade from 2.0.5.6 to version 2.1.0.11 using the same procedure as before? If so, are there any caveats to be aware of?

Looking forward to hearing from you.

claustn 2017-08-18 15:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
+1 I'm in the same situation, even because of the lack of Android compatibility.

BluesLee 2017-08-18 15:20

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

Originally Posted by dubliner (Post 1532836)
I am still using SFOS version 2.0.5.6 based on CM 12.1. The main reason for this being the unresolved (?) video recording problems with CM 13.

...

So here's the big question: Is it possible to upgrade from 2.0.5.6 to version 2.1.0.11 using the same procedure as before? If so, are there any caveats to be aware of?

Looking forward to hearing from you.

@dubliner, claustn: That is the current situation we face, right. I jumped on the CM13 train as i wanted stable bluetooth. Can't really answer the question if OTA works but if you use Multirom you can easily give it a shot by turning of device lock, making a complete copy of your productive system using a second system and 'cp -av production copy', test your copy and OTA copy.

m4r0v3r 2017-08-19 21:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
you cant upgrade to 2.1.0.11 it bricks cause :/

with bluetooth ive been using bluetooth fine daily with this phone.

has anyone installed the alien dalvik on this page onto the cm13 base and had it working?

dubliner 2017-08-26 10:30

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

Originally Posted by BluesLee (Post 1532841)
@dubliner, claustn: That is the current situation we face, right. I jumped on the CM13 train as i wanted stable bluetooth.

@BluesLee: Have the problem with handsfree devices (ins cars) been solved?

Quote:

Originally Posted by BluesLee (Post 1532841)
Can't really answer the question if OTA works but if you use Multirom you can easily give it a shot by turning of device lock,

Sorry, I am not using Multirom. Has anyone tried this? I'd be very interested to learn about the result.

Quote:

Originally Posted by m4r0v3r (Post 1532893)
you cant upgrade to 2.1.0.11 it bricks cause :/

@m4r0v3r: I haven't been able to quite understand this statement. Could you please be more specific? What did you do and what happened?

imyaman 2017-10-15 13:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Is it possible to upgrade to 2.1.0.11?

claustn 2017-10-24 06:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have the same question here...
m4r0v3r, could tell us something more specific about trying to update this version? I don't think it's because of cm12, there are other devices with the last version of Sailfish even on that Android version.

mautz 2017-10-24 09:45

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Since this build us unmaintained some packages can't be build at the moment on obs. Updating could brake the system. But maybe someone who uses multirom could try ro update and report back.
But i'm pretty sure that the gui won't work due to the switch to QT5.6.

Repo status can be seen here: https://build.merproject.org/project...ing:hammerhead

claustn 2017-10-24 11:00

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I would try, but I couldn't solve any of those problems.
As far as I understand without those packages it's not possible to update, so sad.
The point is that we have two ports for the same device, each with his pros and cons. It would be great if it would be possible to merge the best of them.

m4r0v3r 2017-10-24 19:25

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
i can tell you now if you update it will break. it wonts boot effectively. since it required some middleware to be rebuilt.

dubliner 2018-02-19 16:44

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I realize this is slightly off topic. Here's the thing. I'm still using the CM12.1 with SailfishOS 2.0.5.6 on the Nexus 5 (mainly because I like the video recording option).

Today the Jolla Store offered me an update to the File Browser which I (foolishly) accepted.

Now, File Browser no longer starts which leaves me a little frustrated.

How can I retrieve the old (functional) version?

mautz 2018-02-19 19:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Maybe one of those? https://github.com/karip/harbour-file-browser/releases

If none of this version works, just install another file browser from openrepos.

dubliner 2018-02-20 13:04

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

Originally Posted by mautz (Post 1541379)

Thank you so much, Mautz!!! I am truly grateful for all your help. If it wasn't for you, my mobile device experience would be quite diminished. Please, please don't ever stop working on SFOS for the Nexus 5.

Sorry for the off topic. But I just needed to get that off my chest. :-)

minimec 2018-05-17 22:05

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
In the CM13 image there is a script to enable low-power-mode for bluetooth. I did a complete rewrite of that script and it also works in the CM12 base... See: https://talk.maemo.org/showpost.php?...&postcount=310

I use that next generation script on the CM12 base for a long time now with no problems with my car audio system, bt-headphones and a HiFi bt-adapter.

Feel free to report problems...

Source: https://github.com/minimec/bt-sleep-monitor

#How it works... : A dbus-monitor process is listening for different dbus events in parallel:
# - Bluetooth power on/off
# - Bluetooth connections
# - Display events
# When an event is triggered the program will decide whether to enable/disable
# or temporarily disable bluetooth suspend (low power mode).
# If bluetooth is powered and in low power mode, a display event will disable suspend mode for 60 seconds ($BTACTIVE).
# In case there is no bluetooth connection after that time, suspend mode is enabled again.


This is a copy/paste instruction to implement script as systemd service in the CM12 port.

Code:

# login root console
devel-su

# Download new files and put them in place
curl -o /usr/bin/bt-sleep-monitor https://raw.githubusercontent.com/minimec/bt-sleep-monitor/master/bt-sleep-monitor

curl -o /lib/systemd/system/bt-sleep-monitor-ng.service https://raw.githubusercontent.com/minimec/bt-sleep-monitor/master/bt-sleep-monitor.service

# Make script executable
chmod +x /usr/bin/bt-sleep-monitor

# reload systemd units
systemctl daemon-reload

# Start service
systemctl enable bt-sleep-monitor-ng.service
systemctl start bt-sleep-monitor-ng.service

# Exit root console
exit



All times are GMT. The time now is 16:23.

vBulletin® Version 3.8.8