yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] DFStorm:
Well... The install process failed the fisrt time when a "mount" command got a timeout (At leat that's what TWRP showed in its log box). On my next try it got an error too (for an other partition) but it didn't stop the process.

However, the camera do not work for me. It launch, I can see the "captured image"... everything seems to work ... but when I take a picture, nothing happen... And It's crash on video mode when I stop recording. It's still better than the previous version I tried where it just didn't show anything ;)
[Moto G Android Development] sub77:
have you done the symlinks?
[Moto G Android Development] DFStorm:
Nope. Thanks I fixed it from this advise.

I had "/data/media/0/" (which was empty) but not the "/DCIM/Camera/" folders. Now it work. I did a symlink to display them in the picture app. It created an other "Camera/" folder in it (full path : /data/media/0/DCIM/Camera/Camera/ ).

Yay :)
[Moto G Android Development] sfgreenwood:
Moto G 4G/LTE (peregrine)

What would need to be done to port this to the 4G model (peregrine/XT1039). I assume the main difference would be the 4G/LTE radio and that it has a MicroSD slot. Happy to try building it myself but it would be a first time thing.
[Moto G Android Development] PiggZ:
that will be fixed in the next version with the improved load-storage.sh script mentioned a few pages back
[Moto G Android Development] PiggZ:
join #sailfishos-porters on freenode and read the guide ;)
[Moto G Android Development] DFStorm:
thanks for the rom ! all these littles bug are nothing in comparaison to the work it took to get here :)

if anyone else get the problem to get a media librairy showing like me... don't forget to create the directory 'Music' in /data/media/0/ and re-check file permission if uploaded from sftp ;)... and if it still didn't work... try rename the 'Music' system link in /home/nemo created at install and put it back to 'Music' .. it did the trick for me haha... :)
[Moto G Android Development] celrau:
I'm also interested in this!
[Moto G Android Development] rodrigv31:
Tested PGZ14 for two weeks

First of all, thanks a lot for this!

So, I have tested the thing for about two weeks and everything was just fine.

A friend of mine has a genuine Jolla, so I could compare both devices! Sailfish looks way better in the Moto G :D

Over the period of testing I found very few minor problems, such as missing dependencies in warehouse (python was the most frequent one), no working flashlight (although it does work in the camera), and no keyboard prediction.

Everything else was fine: Strong signal, working hotspot (6 hours -> 30% battery drain), awesome battery life, calls & SMS, music (over Bluetooth too ) & photos.

Sadly, I had go back to android due to a problem with WhatsApp :crying:

But hell of a phone it was with Sailfish! I'll be waiting for the next release! :victory:
[Moto G Android Development] elfio:
How many hours of battery life? I'm getting half the time I got with cm13 :-/
[Moto G Android Development] PiggZ:
thanks! im looking at adding sfdroid so that android apps, therfore whatsapp can run
[Moto G Android Development] badari259:
XDA:DevDB Information

SailfishOS, ROM for the Moto G

Contributors

PiggZ

ROM OS Version: 5.0.x Lollipop

ROM Kernel: Linux 3.4.x

Version Information

Status: Alpha

Created 2016-03-01

Last Updated 2016-03-01[/QUOTE]

will this work if i flash it over cm 13?
[Moto G Android Development] indrasatrya:
thanks for quotes post 1. we all need that
[Moto G Android Development] PiggZ:
I wouldnt have thought so, but my all means give it a go. Im developing against yog7d which is what most other sfos devs are doing as it causes less problmes having a common base.
[Moto G Android Development] reversegear:
[MENTION=5857047]badari259[/MENTION] wtf stop quoting op it's very bad to quite entire op.
[Moto G Android Development] badari259:
sorry, didnt realize that until you said it..
[Moto G Android Development] PiggZ:
Added version PGZ16

This version is built on a custom build of CM12.1. At the moment, the download is identical to the YOG7D snapshot you have been using, but that will change going forward.

This release changes the way /sdcard is accessed and adds PBAP for better car kit connectivity (calls still dont work though!)
[Moto G Android Development] elfio:
Thank you very much for your work!

I'm getting low battery performance. How can I test if it's me (maybe some app I have installed) or is it like that for everyone?

Thank you again.
[Moto G Android Development] PiggZ:
Oops, i broke the camera!
[Moto G Android Development] PiggZ:
You could install powertop and see if anything is causing excessive wakeups
[Moto G Android Development] PiggZ:
Instructions to fix the camera

edit the file /init.rc

Change the minisf service to

class late_start

and, just below that entry, add a section for sensorservice:

service sensorservice /system/bin/sensorservice

class main

user system

group system

and reboot
[Moto G Android Development] rodrigv31:
I was getting about 2 full days with normal 3G usage (lots of messaging, and a bit of multimedia like youtube and spotify streaming).

Otherwise, it was 1 day using it a lot (calls, gps, wifi hotspot, downloads and so on)
[Moto G Android Development] elfio:
I get 2 days of light use (around 2 or 3 SOT). Overall, it has some kind of draining on airplane mode (about 10% drop in the night)

Did you get worse performance on Android? I didn't.
[Moto G Android Development] rodrigv31:
That (airplane mode drain) didn't happen to my phone, it worked just fine. :confused:

Right now i'm using the Cyanogen 12 snapshot and the battery doesn't even last a day with light use (15 min. of offline music playing results in 10% drain, 30 min. of hotspot takes away another 20%).

However, with stock android I did have a decent battery life, though still less than what I've got with Sailfish.
[Moto G Android Development] anvesh583:
sfdroid?

[MENTION=455718]PiggZ[/MENTION] did u add sfdroid to PGZ16
[Moto G Android Development] grepped:
I guess, I have pgz13 on my phone. Do I need to flash it with CM(the link you have provided on first page) before flashing this 16th version? Can someone please tell me the procedure for moving from one version to another? I always confused with this.
[Moto G Android Development] PiggZ:
Not yet, WIP
[Moto G Android Development] PiggZ:
ATM flash either CM12.1 YOG7D. or the image i provided, theyre identical, then flash the SFOS image. Only flash the latest if you dont mind editing the /init.rc file to fix the camera
[Moto G Android Development] grepped:
Thanks. [MENTION=455718]PiggZ[/MENTION] It worked. However, first It had stuck on 'Unlocked boot loader' disclaimer. After trying again, it worked.

This version looks good. Unlike the previous one I was using, this time 'gallery' is showing all media from /sdcard. Good to see two nice games created by you :) by default. I am using this ROM since last few weeks. Only thing, I feel annoying is web browser. It is very sluggish. I know it is how is in upstream. Overall, great work by [MENTION=455718]PiggZ[/MENTION] and all other contributors (can you name them?).
[Moto G Android Development] elfio:
Well, I didn't tested the snapshot but nightlies from firsts days of this month were really really great in terms of battery life; 3 or 4 days of light use and no drain at all on airplane mode. I cannot get what is causing this high power consume: journalctl doesn't show anything weird (waking up the device frequently) nor powertop... I'll look deeper on it when I have the time :-/
[Moto G Android Development] Yogi wicahya:
Can install android apps?
[Moto G Android Development] phatin:
No you can't. Because sailfish OS doesn't support Android apps at this moment.
[Moto G Android Development] DFStorm:
i have version 13 and car phone call do work in my toyota corola 2015. And for music I find out that the problem of *changing music* who don't work on many player do work on the harbor-flow player. so it's probably a software matter. I'm actualy trying to code my own media player to support it with some functionnality that flow player dont have. :)
[Moto G Android Development] DFStorm:
by the way... is any of you know a sailfish xda client ? I know it's off topic ... sorry... I like to come here from my phone and it's hazardous... the website is way too eavy for a mobile with the native web browser or even *web pirate* (the best browser I found for now).
[Moto G Android Development] scops:
Just installed it on a new used brought xt1032. 16 works really nicely. no fast battery drain.

the camera don't work for me. if it is fixed and sfdroid ported (or someone add a good offline navi and rss reader) it will replace my blackberry :)

could i buy you a beer (paypal maybe?) ?! :)
[Moto G Android Development] Eurofighter_ty:
I have a question for you guys: Why do you use Sailfish OS ? There is no AppStore with apps even the dead Firefox OS has more apps. Why not MIUI 7 or Firefox OS ? Why do you choose Sailfish OS ?

I am just tring to find a reason to test this OS..

Thanks !
[Moto G Android Development] DFStorm:
Maybe it's like the version 13... The camera show but you cannot take picture (and it crash when you try video). Verify that you have that folder created if it's the case : /data/media/0/DCIM/Camera/Camera/ :)

RSS reader : There is a good one : https://openrepos.net/content/joeysys/selfoss-client (just search it in "warehouse")

And for an offline map: https://openrepos.net/content/tunp/monav
[Moto G Android Development] scops:
This is really off topic... but my personal opinion;

because i don't want to use anything google, microsoft and apple related. besides this i like the UI of sailfish os. it's clean, functional and smooth. i like the cards and notifications (like on BB10, but better implemented ^^)...

it's open and isn't based on java.

i tryed and used many mobile operating systems; Nokia s40, Symbian (s60, s90, UIQ), GeOS, Maemo, iOS, Android (cyanogen, stock, miui,...), BB10, Blackberry Tablet OS,... Sailfish OS is just my favorite because BB10 is dying...
[Moto G Android Development] DFStorm:
There is "open repo" (warehouse) and it's awesome ;) https://openrepos.net/

Personally I use it because it's a more complete and less restrictive linux than android... I feel more "free" with it. I can install anything that fit my architecture... (Installing "wireshark" feel funny with his desktop UI ;) ).
[Moto G Android Development] scops:
tryed, don't work for me :( the camera just stay black and sfos want to close it...

yeah, but only if you host selfoss somewhere. i'm looking for a local reader like flym (android)

Thanks :) i'll try it
[Moto G Android Development] DFStorm:
RSS: There is many :) https://openrepos.net/search/node/rss . Maybe one of them will be okay.

For the camera problem, can you explain more on "how" it crash ? Exemple: Do the UI load and show you the camera output but when you take picture it do nothing ? Or do you get a "white srceen of dead" in the app ? maybe I can help... I'm not an expert on sailfish but I've been using Linux (Archlinux) for years.
[Moto G Android Development] Eurofighter_ty:
I will try it also beacuse you have a very solid point regarding clean and functional approach. I will flash it later to see how is it. BTW this is not off topic beacuse it's related to the OS.
[Moto G Android Development] scops:
the ui load and there is no output from the camera. i can't do anything. sfos just says, that the app is not responding.

yeah, but it's general. not specific for the moto g port :)
[Moto G Android Development] DFStorm:
I got a similar problem with the camera while I tested it after the first boot. The app start working after a reboot AND a "closing".. don't know why... What I did :

1- Fist boot, try camera. Don't work (UI with black background) and after a while shoot a "not responding".

2- Reboot the phone

3- Try it again... didn't work... Close the app from tiles by long-pressing it and then "X".

3- Restart the app... hanged a bit.. then eureka... It showed.. and now it show normally every time and load fast...

It's not really helpful... sorry... but that what I did ...

If the camera output don't show at all after that... maybe only the maintainer here will be able to help you because it's an "hardware" problem.

---------- Post added at 09:57 AM ---------- Previous post was at 09:52 AM ----------

You can try that too: An App that use the Camera : https://openrepos.net/content/steffenf/codereader . If it work... it's the camera App... if it don't.. then it's probably the hardware. :)
[Moto G Android Development] PiggZ:
Are you using the latest version 16? if so, i broke the camera and posted some instructions on how to fix it a few pages back ;)
[Moto G Android Development] PiggZ:
Another tip for you all ... if you open a terminal and do

pkcon install jolla-xt9 jolla-xt9-cp

then the keyboard will get an improvement ... predictions will work.

You can also install Okboard from openrepos to get a swipe style keyboard, and dolphin core and dolphin + english + emoji to get an emoji addon for the keyboard
[Moto G Android Development] scops:
hm it says: "Command failed: This tool could not find any available package: could not find jolla-xt9"

Thanks :) worked
[Moto G Android Development] PiggZ:
try a

pkcon refresh

?
[Moto G Android Development] scops:
Worked :) thanks
[Moto G Android Development] FernandoJjr:
Hey, i dont have understanded this ROM very well, so, this ROM can run on XT1033 ?
[Moto G Android Development] sub77:
afaik, but without msim maybe.
[Moto G Android Development] anvesh583:
[MENTION=455718]PiggZ[/MENTION] when will you add dual sim support ?
[Moto G Android Development] sub77:
the same way like with cm12
[Moto G Android Development] FernandoJjr:
Which are features have this ROM?
[Moto G Android Development] cdnron:
Hmmm. Trying to install this on my old XT1032 with no success. I've tried installing CM and immediately installing Sailfish (v16) afterward. I've also tried installing CM, reboot and let it settle, and then reboot into recovery and install Sailfish. Once I had it boot up to the language selection but then it rebooted and hung at the unlocked bootloader screen again. Any ideas?

EDIT: Nevermind, it works now. Looks slick so far!
[Moto G Android Development] cdnron:
[MENTION=455718]PiggZ[/MENTION] I'd like to get the camera working but I'm a noob when it comes to doing stuff like modifying the init.rc. Can you provide instructions or point me to a site with instructions on how to do so? I've Googled it but haven't found helpful info.
[Moto G Android Development] PiggZ:
you can telnet into the phone on 192.168.2.15:2323 and is the vi editor to edit the file, if you cant telnet in, you can use vi from fingerterm, but its a little more fiddly!
[Moto G Android Development] elfio:
[MENTION=455718]PiggZ[/MENTION] I'd like to know If you could help me to improve my battery performance. I'm currently using PGZ14 because last release didn't include any power modification.

I've found that the phone doesn't go into deep sleep aka suspend. Thanks to the unofficial edition of System Monitor I can see the phone behaviour. If you check the comments on the openrepos app's page, you'll see details about where does the app get the info. I've installed mce-tools and checked that the phone spends 0% of the time suspended. Taking this into account, with proper suspension battery life is going to be awesome!

Also I notice that the phone gets very warm, and here in Spain the temperature is already enough to feel unconfortable the phone in the hand.

I hope you can help. Honestly I don't know if this is port-wise or it's just me.

Edit: I don't use the phone for hard tasks; just sailorgram, webpirate, listen music (ogg files) and take a pic once in a while.
[Moto G Android Development] PiggZ:
Good find, I've installed it myself now. Have you installed powertop as that should identify programs causing wakeups etc...its what the Jolla guys run on apps submitted to the official app store to ensure apps dont affect the battery too much.
[Moto G Android Development] PiggZ:
It makes your moto g run a different OS, not android. Its features are in the first post.
[Moto G Android Development] celrau:
Battery is not great here also, overnight discharge with no data/wifi is about 20%.
[Moto G Android Development] elfio:
I installed PowerTop a while ago, but some entries whit high wakes doesn't show anything on description field and I cannot know what's making all this wakelocks: screenshot. Also I noticed that when I try to calibrate it show somethings like it was compillated for x86 hardware and use on X.org systems (it cannot change brightness and so) and at the end the calibration worth nothing, I think. Actually I'm trying to open it right now to get a SS, but it doesn't work at all.

Output when I try to open it:

Output when calibrating:

After calibrating every parameter state is 0 and it open powertop as usual.
[Moto G Android Development] dannyflax01:
I can install apk ?
[Moto G Android Development] elfio:
Not yet.
[Moto G Android Development] PiggZ:
Install this to get rotation/exif data working which fixes orientation of pics taken from the camera

https://www.piggz.co.uk/owncloud/index.php/s/qetxOM6frxtXFXN
[Moto G Android Development] BryanByteZ:
I really want to try this rom i am downloading to test with multirom thanks devs
[Moto G Android Development] FernandoJjr:
This ROM will work on xt1033 converted on gpe? And, if this ROM is not a Android, how to install apps like whatsapp or games.
[Moto G Android Development] PiggZ:
whatsapp is a No for the time being atleast .... and, whatever Sailfish games are available .... it comes with some awesome ones!
[Moto G Android Development] haldson.parente:
music, vids and pic are working?
[Moto G Android Development] elfio:
[MENTION=455718]PiggZ[/MENTION] any idea why it the falcon doesn't get to suspend state?
[Moto G Android Development] phatin:
They probably should all work.
[Moto G Android Development] sub77:
you mean lpm/offmode charging?
[Moto G Android Development] elfio:
I mean deep sleep.
[Moto G Android Development] grepped:
Whenever phone is rebooted, Preferences set in Settings->Cellular Network>Network mode is lost. (it moves to 3G Only by default).
[Moto G Android Development] sub77:
afaik its stored in a persist.radio.nitz prop., maybe the keys can be provided by a init script.
[Moto G Android Development] PiggZ:
Posted release 17

PGZ17: Based on newer sailfish release, fixed init/camera, fixed camera rotation

I havnt tested this myself yet, so youve been warned!
[Moto G Android Development] haldson.parente:
some musics, vids and pics are showing to me.

camera not working

wait 4 jolla store or android apps to install
[Moto G Android Development] PiggZ:
No, I've asked but didn't get a response. Tbh, I'm not sure it's supposed to, I see from powertop that the CPU idles a lot, is that not the correct behaviour?
[Moto G Android Development] elfio:
It should indeed, but I think powertop is not working fully ok on mobile.

The main indicator I trust is phone heating a lot when using, which means it's using a lot of energy. The second one (and this confirms that power drain is huge) is the system monitor unofficial app saying how battery is draining (%/h) and that the phone is not suspending as it should (if you ask rinigus, his nexus 4 does suspends). Those things lead me to think powertop is not working properly.

So, since cpu should be idle when the phone is sleeping, it must be something that is not working ok.
[Moto G Android Development] celrau:
I did and it works as advertised except you forgot to symlink /system/etc/media_codecs_ffmpeg.xml to /etc/ for video capture to work.
[Moto G Android Development] scops:
Updated to 17, only shows Bootloader-Warning at boot. i even done a full wipe, reinstalled cm and 17... nothing... it dosn't fully boot anymore :(

EDIT:

Boots... after about 10 reboots o.o

Edit 2:

Since i couldn't set the language - it always rebooted instantly. i formated anything and reinstalled. The Bootloader-Warning-Bug really sucks. it is the most annoying bug in this port. it takes ages - i doesn't count the reboots anymore - to see something on the screen...

Edit 3:

Ok, it seams, that if you charge the phone while booting, it fails much more often.

I got some Problems with warehouse after fresh install (" Could not configure normal mode"). If someone have the same Problem, this (use ssh ^^) helps:

devel-su

rm -rf /var/cache/zypp

rm -rf /var/cache/pk-zypp-cache

pkcon refresh
[Moto G Android Development] PiggZ:
yes, ive seen that cache problem before too .... no idea why

thx for testing and highlighting issues
[Moto G Android Development] PiggZ:
I have built the required packages for better suspend handling and are seeing how it goes ... next release will include them
[Moto G Android Development] PiggZ:
[MENTION=5762231]elfio[/MENTION] over the last 10 hours, over night, i didnt charge my battery ... the drop was from 95% to 59%. sysmon shows in suspend:success
[Moto G Android Development] elfio:
Well, it's more than I expected. This is the same drop I have with the older mce version.

Maybe rinigus has some idea?
[Moto G Android Development] PiggZ:
i shoukd also say, 3g and wifi were enabled . the drop on my

jolla tablet was ro 46%
[Moto G Android Development] elfio:
Then maybe it's not that wrong. Rinigus has some suggestions:

[08:04] <rinigus> elfio: OK, many possible reasons. it could depend on many things, such as: sync frequency of accounts, strength of the network, ... I suggest that you try the new setup as well and then observe if you see improvement.

[08:04] <rinigus> elfio: would be great to see sysmon graphs or at least what was the sleep time %

If you upload the build I'll be happy to test it

Thank you Piggz for trying to fix this :)
[Moto G Android Development] PiggZ:
i tweeted screenshot for you
[Moto G Android Development] elfio:
I see you're doing a lot of progress with suspension. If you need some testing (not only suspension-related) just let me know!
[Moto G Android Development] PiggZ:
Well, feel free to try out PGZ19.

Added missing link to ffmeg xml, and upgraded MCE and Lipstick for better power management. So you know, phone can now sleep, but will only sleep properly if WiFi is turned off, from the dmesg output it seems the wifi keeps waking up the cpu. Not sure how to fix yet.
[Moto G Android Development] elfio:
Downloading...!
[Moto G Android Development] FernandoJjr:
This ROM work on xt1033 converted to gpe?
[Moto G Android Development] PiggZ:
No idea, but its certainly untested
[Moto G Android Development] PiggZ:
openrepos.net for apps. No android apps.
[Moto G Android Development] PiggZ:
Added PGZ20 with hopefully better graphics startup
[Moto G Android Development] elfumondice:
What about the sfdroid? W.I.P? Something new? The only reason that prevent me from use the SailfishOS permanently is not al the apps but Whatsapp. Anyway... Great work with SailfishOS!
[Moto G Android Development] scops:
Upgraded to 20. All fine... but....

could you please add update packages or make wipe optional?

it is not nice that the hole home-dir, accounts, contacts,... are wiped with each update >.<
[Moto G Android Development] elfio:
While we don't have anything better I wrote this

https://github.com/helfio/sailfishbackup

It's far from perfect but better than nothing.
[Moto G Android Development] celrau:
Much improved, thanks
[Moto G Android Development] scops:
Thanks :) i will use this and syncthing for backups :)
[Moto G Android Development] grepped:
What has changed exactly? I couldn't observe anything.