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)

m4r0v3r 2015-11-19 17:53

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1488584)
What am I doing wrong?

I unlocked and installed cm11. Everything went fine.

But now I cannot install SFOS on top of it...
I have tried to flash it over cm and beside it with multirom. It always gets stuck on the Google bootloader. WIth multirom cm starts fine.

Here are some pics from the process
https://dl.dropboxusercontent.com/u/...28Small%29.jpg

https://dl.dropboxusercontent.com/u/...28Small%29.jpg

https://dl.dropboxusercontent.com/u/...28Small%29.jpg

which cm are you using?

asa 2015-11-19 18:27

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by romu (Post 1488590)
The first run is pretty long. Your screenshots seem normal to me.

How long should I wait? I've let it run for about 5 minutes, as it says in mer-wiki: Reboot the device and it should boot to Sailfish OS. If the device shows Google logo for 4-5 minutes, do a reboot using power button.

I'm using cm11 from the installation guide:
Download CyanogenMod 11 snapshot M11 from https://download.cyanogenmod.org/get...hammerhead.zip and follow instructions from http://wiki.cyanogenmod.org/w/Install_CM_for_hammerhead to install the CyanogenMod image.

breiti_oi 2015-11-19 18:52

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1460961)
Install keyboard prediction as root
Code:

pkcon install store-client jolla-xt9 jolla-xt9-de

I just installed 2.0.0.10, Jolla Store works out the box now so it doesn't need to be installed again, but i couldn't get the word prediction to work. :(

m4r0v3r 2015-11-19 22:20

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1488595)
How long should I wait? I've let it run for about 5 minutes, as it says in mer-wiki: Reboot the device and it should boot to Sailfish OS. If the device shows Google logo for 4-5 minutes, do a reboot using power button.

I'm using cm11 from the installation guide:
Download CyanogenMod 11 snapshot M11 from https://download.cyanogenmod.org/get...hammerhead.zip and follow instructions from http://wiki.cyanogenmod.org/w/Install_CM_for_hammerhead to install the CyanogenMod image.

did you try without multirom?

so install Cynagenmod, then install Sailfish OS onto then reboot?

asa 2015-11-20 07:50

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by m4r0v3r (Post 1488639)
did you try without multirom?

so install Cynagenmod, then install Sailfish OS onto then reboot?

Yep. Tried it again, but no luck.

This is what I did
https://dl.dropboxusercontent.com/u/...28Small%29.jpg
First install CM11

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
https://dl.dropboxusercontent.com/u/...28Small%29.jpg
Then flash Sailfish over it

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
Flash succesful

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
But this is what I get after reboot... I have let it sit like that for the last 15 minutes.

m4r0v3r 2015-11-20 09:23

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1488675)
Yep. Tried it again, but no luck.

This is what I did
https://dl.dropboxusercontent.com/u/...28Small%29.jpg
First install CM11

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
https://dl.dropboxusercontent.com/u/...28Small%29.jpg
Then flash Sailfish over it

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
Flash succesful

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
But this is what I get after reboot... I have let it sit like that for the last 15 minutes.

silly question, but when installing with Multirom you are using the multirom menu? And not just Installing a rom?

ie

clicking Advanced > Multirom etc etc

romu 2015-11-20 09:44

Re: SailfishOS on Nexus 5
 
Go with MultiRom, personaly, I never managed to run SFOS without it.

And following @m4r0v3r (damned id to type!) wrote, when your start your phone, you should see the MultiRom menu (with a red title bar) which lists all available OS on the phone. Does it happen?

breiti_oi 2015-11-20 12:32

Re: SailfishOS on Nexus 5
 
@asa

I think you use an wrong CM11 Snapshot.
The wiki says you have use CM11 Snapshot M9, or M11, (which both work - i just tested it again ;) )
but your first screenshot shows you've installed Snapshot CNG3CAO3GO.

EDIT: and your Screenshots also show that you don't use multiboot, but that only matter's if you want you use an Android beside Sailfish.

asa 2015-11-20 13:40

Re: SailfishOS on Nexus 5
 
Thanks guys for your help! Much appreciated!

I'll try again with multiboot.

Edit.

Yeaah! Got it! I downloaded everything again and now it's up and running.

https://dl.dropboxusercontent.com/u/...28Small%29.jpg
Look at it :) So beatiful!

Thank you!

salkos73 2015-11-23 06:50

Re: SailfishOS on Nexus 5
 
I installed sailfish with multirom. How do I upgrade to version 2.0.0.10 sailfish? I know that via ota having multirom can't update.

romu 2015-11-23 09:26

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by salkos73 (Post 1489267)
I installed sailfish with multirom. How do I upgrade to version 2.0.0.10 sailfish? I know that via ota having multirom can't update.

RTFM: https://wiki.merproject.org/wiki/Ada...for_hammerhead

And you're wrong, update through OTA works well.

salkos73 2015-11-25 16:27

Re: SailfishOS on Nexus 5
 
is there a way to operate the haptic feedback sound on the keyboard? a guide?
Thank you

jem555 2015-11-30 02:02

Re: SailfishOS on Nexus 5
 
Hi. Has anybody had trouble with Bluetooth headsets or car system?
On a Nexus 5, tried 1.1.9.28/30 and 2.0.0.10

When I make or receive a call I hear an ugly noise (rain noise) all the time over the voice from the other people. If I play music, everything is just fine. I have it installed with multirom, so I also tried from Android and again everything is working ok. In Firefox Os works fine too.
It also has some problems to connect to the car-system in Sailfish. Sometimes connects sometimes not.


EDIT: Bluetooth headsets and carsystem are unusable... :(


Anyone can help me on this?

Pablo.

m4r0v3r 2015-12-02 09:19

Re: SailfishOS on Nexus 5
 
ive tried my xbox wireless headset that has bluetooth and never had any trouble? just had to fiddle about with using phone speaker and headset till it worked.

jem555 2015-12-03 03:24

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by m4r0v3r (Post 1490365)
ive tried my xbox wireless headset that has bluetooth and never had any trouble? just had to fiddle about with using phone speaker and headset till it worked.

Hi. Thanks for your reply. You've tried this with a nexus 5 and SailfishOS?

it's so rare, it makes the same noise with a headset and carsystem. I've changed bluetooth connection mode to car system, headset and so on...and still the same.

I'm sure it's not the hardware of my nexus (works excellent with android or firefox os) or the devices (they work ok with other phones).
And the noise is only on my side, so the voice of the caller is too hard to hear because of that.

I think it's the codec that compress the voice when sending it to the device. I'll dig on pulseaudio 6.

Please try to test it with another device if you can, and let me know the results.

Pablo.

m4r0v3r 2015-12-03 12:39

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by jem555 (Post 1490431)
Hi. Thanks for your reply. You've tried this with a nexus 5 and SailfishOS?

it's so rare, it makes the same noise with a headset and carsystem. I've changed bluetooth connection mode to car system, headset and so on...and still the same.

I'm sure it's not the hardware of my nexus (works excellent with android or firefox os) or the devices (they work ok with other phones).
And the noise is only on my side, so the voice of the caller is too hard to hear because of that.

I think it's the codec that compress the voice when sending it to the device. I'll dig on pulseaudio 6.

Please try to test it with another device if you can, and let me know the results.

Pablo.

yes latest updates,

I've recently smashed my nexus 5 screen, and on replacement, my device worked for a bit then now is complete dead.

so :'(

liar 2015-12-05 18:56

Re: SailfishOS on Nexus 5
 
hi guys

regarding android apps on sailfishos on the Nexus 5:
nh1402 has managed to start some of the android processes which are required for running android apps on his Nexus 5 while sailfishos is running.
Now we have worked on a solution to run surfaceflinger, the process which gives you android video output too. First we have succeeded in running surfaceflinger while lipstick is running, this meant surfaceflinger drew to the screen while lipstick was also drawing (which resulted in funny screen contents) this lead to the idea of pausing lipstick or surfaceflinger and thus we were able to switch between android and sailfishos without much delay, which is kind of a solution but not very convenient. In the last 3 days we managed to patch surfaceflinger such that it does not draw over lipstick and today we have been able to copy the graphic buffers composited by surfaceflinger into a shared memory location, this was very easy thanks to the work thp has done with his harmattandroid project. We are currently working on a renderer app which displays this buffer in a window in sailfishos (based on thp's work). Stay tuned! Unfortunately i don't have an android device which i can test on so i always have to send nh1402 my compiled files and need him to try, thing is nh1402 will be unavailable for some time beginning tomorrow. So if anyone with a little terminal experience wants to do the same with me as nh1402 did while he is unavailable, this would be greatly appreciated, otherwise you will have to wait a while to see the result :P.

this sounds way too gooey :/

TL;DR:
"we can (soon) start android apps in sailfishos" or rather "we can (soon) have a full android installation displayed inside a sailfishos window"


EDIT: instructions http://piratepad.net/FtZYtm4tDY

krnlyng/liar

breiti_oi 2015-12-06 16:12

Re: SailfishOS on Nexus 5
 
@liar
so i don't need to stop lipstick before starting surfaceflinger anymore?

i just tried the steps you wrote and get an "Stopped ./surfaceflinger"
on the terminal. is that supposed to happen?

liar 2015-12-06 20:33

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by breiti_oi (Post 1490674)
@liar
so i don't need to stop lipstick before starting surfaceflinger anymore?

i just tried the steps you wrote and get an "Stopped ./surfaceflinger"
on the terminal. is that supposed to happen?

no need to stop lipstick anymore, in fact it has to be running now (for the sfdroid binary to work/display stuff)

thats probably a crash, i put this tutorial together without nh1402 having a look over it first so it might be incomplete

you could try running
strace -fF -o log /system/bin/surfaceflinger
and then paste the resulting log file somewhere

in the meantime i have been working on sharing the buffer handle instead of the whole buffer (but this is probably not going to work as it is implemented now, because i somehow have to share the fds properly) via shared memory although i cannot test it. when i will be able to test depends on when nh1402 returns or when my nexus 4 arrives or when somebody shows up in irc who likes to try ;)

Bundyo 2015-12-06 20:36

Re: SailfishOS on Nexus 5
 
I may, but after a week or more.

nh1402 2015-12-07 08:03

Re: SailfishOS on Nexus 5
 
I think it would be best if you enabled the services in init.rc as listed here http://piratepad.net/lYkoEab7p1 rather than copy the modified init.rc directly as sometimes it bootloops.

Now I'm properly gone ;) till the 27th. Although I may be able to lurk around now and then.

asa 2015-12-07 11:22

Re: SailfishOS on Nexus 5
 
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

liar 2015-12-07 16:43

Re: SailfishOS on Nexus 5
 
i have now implemented unix domain sockets to share the file descriptors of the buffer_handle_t but for some reason gralloc->lock does not want to work in the renderer app on the transfered buffer handle, any ideas?
(testing on my jolla phone with a small test application which creates a buffer and sends the handle to the sfdroid application

EDIT: after reviewing the comments in the android source i noticed that i missed a call to gralloc->registerBuffer. sharing the buffer handle works now :)

m4r0v3r 2015-12-07 17:06

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1490747)
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

you need to go steal the package from your Jolla since its properietary

romu 2015-12-07 19:44

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1490747)
Tried to install a keyboard prediction. This is what I get
Code:

root@Jolla nemo]#  pkcon install store-client jolla-xt9 jolla-xt9-de                                                                                             
Command failed: This tool could not find any available package: could not find jolla-xt9-de

There isn't much that I can go wrong.. Copy and paste.

It's just you don't need the "-de" package, the first one is enough as far as I remember.

liar 2015-12-08 17:07

Re: SailfishOS on Nexus 5
 
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

(almost) completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences

BluesLee 2015-12-09 07:39

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by liar (Post 1490891)
updated android compat layer instructions: http://piratepad.net/FtZYtm4tDY

completely untested!
feel free to update the contents to make the tutorial simpler.

please share your success/failure experiences

The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed

liar 2015-12-09 08:24

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1490949)
The uploaded CM image seems to be invalid:

asser failed: getprop("ro.bootloader") == "HHZ11k" || ..

For the other part one has to install dependency SDL2 and i get:

error: XDG_RUNTIME_DIR not set in the environment.
SDL_Init failed

The first issue is that the CM image does not support your bootloader. I have to add your bootloader to the allowed ones (it should work with any bootloader anyways, the original CM image has no differences in startup code but simply has more bootloaders in the allowed bootloader section). I will update this sometime during the day.
EDIT: It simply allows any bootloader.

The second issue is that some environment variables are not set. How do you start sfdroid (ssh, terminal-app,...)? Try starting it as normal user (it does not need root permissions anyway).

I have updated the piratepad to include the sdl2 installation.

EDIT: I have adjusted the bootloader check, see http://piratepad.net/FtZYtm4tDY

breiti_oi 2015-12-09 17:22

Re: SailfishOS on Nexus 5
 
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?

liar 2015-12-09 17:37

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by breiti_oi (Post 1490993)
@liar

What's the expected behavior, should CM start beside lipstick?
How can i test if it started?
And how to get back after i started sfdroid?

If you launch sfdroid a window should appear in SailfishOS with the screen contents of android drawn inside that window. If you want to get out of it, simply close sfdroid and kill surfaceflinger, zygote, vold and netd, media and keystore, killing those processes is optional but if you do and relaunch sfdroid it will not render anything anymore.

EDIT: Also be aware: these services are started during boot, if you want to disable them again apply nh1402's init.rc tutorial in reverse.

breiti_oi 2015-12-10 08:48

Re: SailfishOS on Nexus 5
 
okay, on step 9 for me it seems that you mustn't be root to get an black display when surfaceflinger starts, but after calling sfdroid it shows me
Code:

[nemo@Jolla ~]$ ./sfdroid
height: 110, width 62, xres: 1080, yres 1920, line_length: 4352
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status


BluesLee 2015-12-10 10:27

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by breiti_oi (Post 1491064)
okay, on step 9 for me it seems that you mustn't be root to get an black display when surfaceflinger starts, but after calling sfdroid it shows me
Code:

[nemo@Jolla ~]$ ./sfdroid
height: 110, width 62, xres: 1080, yres 1920, line_length: 4352
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status


Same issue here
Code:

[root@Jolla nemo]# /system/bin/logcat -d -f logcat.txt
Unable to open log device '/dev/log/main': Not a directory
[root@Jolla nemo]# ps
PID TTY          TIME CMD
3356 pts/0    00:00:00 sh
6469 pts/0    00:00:04 surfaceflinger
7917 pts/0    00:00:00 ps

[nemo@Jolla ~]$ ./sfdroid
height: 110, width 62, xres: 1080, yres 1920,
line_length: 4352
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19


liar 2015-12-10 15:51

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by breiti_oi (Post 1491064)
okay, on step 9 for me it seems that you mustn't be root to get an black display when surfaceflinger starts, but after calling sfdroid it shows me
Code:

[nemo@Jolla ~]$ ./sfdroid
height: 110, width 62, xres: 1080, yres 1920, line_length: 4352
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status
waiting for handle
fd_pass_fd: 19
registerBuffer failed
fd_pass_fd: 19
sending status


There was a typo in the native handle send and receive functions. I corrected it. Please try again and let me know what happens.

http://piratepad.net/FtZYtm4tDY

breiti_oi 2015-12-10 17:14

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by liar (Post 1491108)
There was a typo in the native handle send and receive functions. I corrected it. Please try again and let me know what happens.

http://piratepad.net/FtZYtm4tDY

now a new black window on homescreen opens,but still no CM.
I noticed the WiFi Connection disconnects, as soon as you enable sfdroid.
the output of sfdroid:
Code:

sending status
waiting for handle
sending status
waiting for handle
sending status
waiting for handle
...


BluesLee 2015-12-10 21:06

Re: SailfishOS on Nexus 5
 
1 Attachment(s)
It works ... sort of! Fast like hell, mobile network works, additional apps can be installed.

Thanks to one of our mighty coders krnlyng aka liar we might get proper Android support in the upcoming days / weeks. He updated instructions on piratepad.

Current issues:
  1. Wifi stops working when sfdroid is started
  1. All SFOS interactions like swipes transfer to the Android window, funny somehow.
  1. Android navigation buttons are not visible but you can anticipate their position at the bottom of the window and use them.

Screenshot

liar 2015-12-11 10:07

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1491155)
It works ... sort of! Fast like hell, mobile network works, additional apps can be installed.

Thanks to one of our mighty coders krnlyng aka liar we might get proper Android support in the upcoming days / weeks. He updated instructions on piratepad.

Current issues:
  1. Wifi stops working when sfdroid is started
  1. All SFOS interactions like swipes transfer to the Android window, funny somehow.
  1. Android navigation buttons are not visible but you can anticipate their position at the bottom of the window and use them.

Screenshot

can you try if this reenables the buttons? http://forum.archosfans.com/viewtopi...=43871#p302864

otherwise i probably have to look at the sources

asa 2015-12-11 17:42

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by romu (Post 1490822)
It's just you don't need the "-de" package, the first one is enough as far as I remember.

Thanks! That was it. Now it's updated to the front page also.

linuxunux 2015-12-12 06:27

Re: SailfishOS on Nexus 5
 
Liar, I am so happy right now. Not only does this work, it works good.
I finally have a perfect smartphone. Thank you so much!!

romu 2015-12-12 13:36

Re: SailfishOS on Nexus 5
 
Humm...sounds like could be nice to run Android beside SFOS. Could this be used without having to re-install the phone, so on a already existing CM+SFOS?

BluesLee 2015-12-12 17:21

Re: SailfishOS on Nexus 5
 
Quote:

Originally Posted by asa (Post 1491235)
Thanks! That was it. Now it's updated to the front page also.

I reviewed and updated the front page to reflect the current port status on SFOS 2.0.


All times are GMT. The time now is 20:33.

vBulletin® Version 3.8.8