maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS on Motorola Droid 4 XT894 (alpha port) (https://talk.maemo.org/showthread.php?t=99031)

QWERTY_Slider 2017-03-11 09:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1525188)
Booting from stock slot doesn't work, as it was found in the topic before, I should have updated the first post to say this explicitly. For modern phone I would connect it to charger and leave for some time even if it doesn't display anything on screen, but not sure if this phone will charge without OS running, need someone who is more familiar to it to confirm. In the worst case you can use universal battery charger like this one.

Sorry that it went this way for you.

I don't blame you. I know that there are risks. I'm happy that there even is Sailfish OS port :). I'm just wondering what went wrong?

My Droid 4 didn't charge during night so I already bought another Droid 4. I should get before end of this month. Then I have two units to play with ;). I'm sure I get the old one working again with fully charged battery.

t-b 2017-03-11 10:20

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
I always make sure my battery level is fully charged before flashing. Would be even better if safestrap checks battery level before flashing or at least warns you.

@TheKit I don't care that much for stock OS so will replace that for SFOS or Lineage OS anyway. Any chance you will make it possible to flash stock with SFOS later?

@QWERTY_Slider pretty sure you are not the first with an issue like this and is not SFOS specific. You can also post your problem at the XDA forum if TheKit's suggestion doesn't work.
https://forum.xda-developers.com/droid-4

mp107 2017-03-11 10:38

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by t-b (Post 1525195)
@TheKit I don't care that much for stock OS so will replace that for SFOS or Lineage OS anyway. Any chance you will make it possible to flash stock with SFOS later?

But why to remove installed stock ROM on stock slot when you can use safe slot to install Sailfish OS without any affecting the performance (in opposite to virtual slots 1-4)?
On my Droid 4 I currently have stock ROM (in case of problems), CM11 (in the safe slot - as the main used OS at the moment) and Sailfish OS on virtual slot 1 (for testing it out).

EDIT:
As I can see currently the fixboot.sh file inside ramdisk.img in the base CM11 build does not allow to install Sailfish OS in the safe slot. It recognizes only stock and virtual slots 1-4.
@TheKit Is it possible to include such a possibility in the next build?
It may be done as described here: http://www.internauta37.altervista.o...install-webtop
In case of problems I have encountered when following that - the block size must be equal before and after modification. Otherwise the OS won't boot.

t-b 2017-03-11 11:24

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by mp107 (Post 1525198)
But why to remove installed stock ROM on stock slot when you can use safe slot to install Sailfish OS without any affecting the performance (in opposite to virtual slots 1-4)

Well, basically only one reason. Not going to use it so keeping it is a waste of space.
In this case I agree it was my mistake to use stock slot initially though, I should have used a virtual slot because it is just an early port.

I blame lack of experience and lack of patience :)

mp107 2017-03-11 11:30

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by t-b (Post 1525201)
Well, basically only one reason. Not going to use it so keeping it is a waste of space.
In this case I agree it was my mistake to use stock slot initially though, I should have used a virtual slot because it is just an early port.

I agree - it wastes space. I haven't booted it at all since few months (~latest flashing).
But in case of problems might be useful.

Quote:

Originally Posted by t-b (Post 1525201)
I blame lack of experience and lack of patience :)

To be honest, shortly after I've bought the Droid 4 bricked it once or twice. :)

mp107 2017-03-11 18:34

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by QWERTY_Slider (Post 1525175)
Something went horribly wrong! First I wiped everything excluding internal storage. Then I flashed CM11 and SFOS. I tried to boot but got black screen for about 10min. Then I rebooted to safestrap and selected ROM slot 1 instead of stock ROM. Then I tried flashing again and got black screen for 10min.

After that I was not able to boot safestrap again. I was able to boot AP Fastboot so I tried to flash FXZ. After 5min FXZ failed because I was out power. My Droid 4 doesn't charge anymore. I guess that I need new Droid 4 with fresh battery so that I'm able to recover my old Droid 4.

I don't know what I did wrong :confused: :(

It looks like you need a special cable (buy it or make it) to be able to bring it back to life without battery replacement.
https://docs.google.com/document/d/1...FBR9VBa80/edit
https://forum.xda-developers.com/sho....php?t=1077414

I haven't tested it on my own, though.

QWERTY_Slider 2017-03-12 08:33

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1525188)
Booting from stock slot doesn't work, as it was found in the topic before, I should have updated the first post to say this explicitly. For modern phone I would connect it to charger and leave for some time even if it doesn't display anything on screen, but not sure if this phone will charge without OS running, need someone who is more familiar to it to confirm. In the worst case you can use universal battery charger like this one.

Sorry that it went this way for you.

I don't blame you. I know that there are risks so this is my own fault. I'm just happy that there is Sailfish OS port for Droid 4 :).

My Droid 4 didn't charge during night so I bought another Droid 4. I should get it before end of this month. Then I have two units to play with ;). I'm sure that I will get the old one working again. I'm just wondering what went wrong in the first place. Was it that I used stock ROM slot at first?

Quote:

Originally Posted by mp107 (Post 1525232)
It looks like you need a special cable (buy it or make it) to be able to bring it back to life without battery replacement.
https://docs.google.com/document/d/1...FBR9VBa80/edit
https://forum.xda-developers.com/sho....php?t=1077414

I haven't tested it on my own, though.

Yeah, I already searched over the net and found that thread. I don't mind to have two droid 4. I believe that it is the easiest method. Can't just wait to receive it :rolleyes:.

PS: For some reason moderators blocked my previous post yesterday :confused:

mp107 2017-03-15 18:38

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
@TheKit
Where can/should I report bugs?

TheKit 2017-03-16 12:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by mp107 (Post 1525480)
@TheKit
Where can/should I report bugs?

Here in topic, or create issues at https://github.com/NotKit/droid-config-maserati/issues.

Quote:

Originally Posted by mp107 (Post 1525198)
EDIT:
As I can see currently the fixboot.sh file inside ramdisk.img in the base CM11 build does not allow to install Sailfish OS in the safe slot. It recognizes only stock and virtual slots 1-4.
@TheKit Is it possible to include such a possibility in the next build?
It may be done as described here: http://www.internauta37.altervista.o...install-webtop
In case of problems I have encountered when following that - the block size must be equal before and after modification. Otherwise the OS won't boot.

Missed your edit before. Safe slot should be supported in current (old) build. fixboot.sh isn't used by SailfishOS directly, but I integrated parts of it into SailfishOS ramdisk init script.

matemana 2017-03-16 15:16

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1525188)
Booting from stock slot doesn't work, as it was found in the topic before, I should have updated the first post to say this explicitly. For modern phone I would connect it to charger and leave for some time even if it doesn't display anything on screen, but not sure if this phone will charge without OS running, need someone who is more familiar to it to confirm. In the worst case you can use universal battery charger like

Sorry that it went this way for you.


Thr phone will not charge without os on it. One way to fix this is to take out the battery find its + and - terminals and charge it with 5 v for about 10-15 minutes. This will revive the battery.

juiceme 2017-03-16 17:05

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by matemana (Post 1525519)
Thr phone will not charge without os on it. One way to fix this is to take out the battery find its + and - terminals and charge it with 5 v for about 10-15 minutes. This will revive the battery.

No, don't do that.
There are dedicated Li-Ion chargers that do it without destroying the battery in the process and cost maybe 2 euros on ebay.

pichlo 2017-03-17 10:13

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by juiceme (Post 1525524)
No, don't do that.
There are dedicated Li-Ion chargers that do it without destroying the battery in the process and cost maybe 2 euros on ebay.

Before I got myself one of those, I just used the charger that came with my camera. I had to make improvised leads out of aluminium foil from e.g. a chocolate wrapping and a way to fix them to the battery with my daughter's hair band but it worked fine.

All Li-Ion batteries are the same; they only differ in the capacity, which will only affect how long the charging would take.

maegon9y00 2017-03-17 18:56

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
@TheKit, thanks for this alfa port!


I want to experience Sailfish OS, and the cheaper way (actually the only one, given my location and circumstances) is test it on Motorola Droid 4 XT894

I don't have a Motorola Droid 4 XT894 yet, and I know this is an alpha, but I wonder if:

-Both cameras (Primary 8mp and secondary 1.3mp) are working to take photos?
-HDMI port it works?
-Bluetooth doesn't work at all? (i.e to send a file to a laptop or another phone)
-It is possible to record audio?

TheKit 2017-03-18 15:21

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by maegon9y00 (Post 1525570)
@TheKit, thanks for this alfa port!


I want to experience Sailfish OS, and the cheaper way (actually the only one, given my location and circumstances) is test it on Motorola Droid 4 XT894

I don't have a Motorola Droid 4 XT894 yet, and I know this is an alpha, but I wonder if:

-Both cameras (Primary 8mp and secondary 1.3mp) are working to take photos?
-HDMI port it works?
-Bluetooth doesn't work at all? (i.e to send a file to a laptop or another phone)
-It is possible to record audio?

Honestly I wouldn't recommend it if your goal is to experience Sailfish OS, since the port is still in early stage. You might be able to get Nexus 4 for cheap, for example, which has better hardware and mature port. But to answer your questions:
  • Both cameras work for taking photos.
  • HDMI is untested, but likely it won't work, since SailfishOS doesn't have support for secondary outputs, and there was no HDMI on Jolla Tablet.
  • Bluetooth can scan and detect the devices, but something prevents it from making actual connection, so no.
  • You mean like a sound recorder? Yes, there is an application to record sound from mic in warehouse. If you mean voice calls recording, I didn't try it yet, but it might need more work.

elros34 2017-03-18 19:34

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
There is old slimport branch in qt5-qpa-hwcomposer-plugin so maybe it is possible to add support for regular hdmi.
https://bugs.nemomobile.org/show_bug.cgi?id=765

TheKit 2017-03-20 20:44

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
@mp107 here is local_manifest.xml: https://gist.github.com/NotKit/95ec7...53ae467f613cbe

TheKit 2017-04-09 20:32

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quick update: got video recording fixed thanks to mal at #sailfishos-porters.

Currently I switched to SailfishOS 2.1.0.11 and there is no browser scaling issue anymore, everything else seems to work more or less the same. The main issue is Bluetooth now.

Unfortunately I'm still unable to contact sledges to add device to OBS, which is required for OTA updates. I'm waiting for this to make new image, otherwise reflashing is needed.

ThePhxRises 2017-04-15 03:43

Software keyboard not showing up.
 
When I tap a text field, the software keyboard does not show up. Someone has posted this bug on the github with this log:
Code:

Mar 16 21:40:51 Sailfish dbus-daemon[603]: Activating via systemd: service name='org.maliit.server' unit='maliit-server.service'
Mar 16 21:40:56 Sailfish dbus-daemon[603]: Successfully activated service 'org.maliit.server'
Mar 16 21:40:56 Sailfish invoker[731]: WARNING: bool MIMPluginManagerPrivate::loadPlugin(const QDir&, const QString&) Error loading plugin from "/usr/lib/maliit/plugins/libmaliit-keyboard-plugin.so" "The shared library was not found."

[root@Sailfish nemo]# ls -l /usr/lib/maliit/plugins/
total 24
-rw-r--r-- 1 root root 21814 Jan  1  2000 jolla-keyboard.qml

I would assume the log is likely the same for my phone, but I haven't checked.

Edit: I seem to be getting the issue where APN settings do not save after a reboot as well. I remember having this issue back on the Nexus 5, but I can't remember how I fixed it, and I can't find whatever I read on it before.

elros34 2017-04-15 07:21

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
chown -R radio:radio /var/lib/ofono should help with APN.

ThePhxRises 2017-04-15 18:48

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by elros34 (Post 1526875)
chown -R radio:radio /var/lib/ofono should help with APN.

That did it, but even with my APN set up, I'm not getting service in the same places I do on android, or any places for that matter. I'm on verizon and I'm using vzwinternet as my APN. Does this port utilize CDMA properly?

EDIT: And my protocol is set to Dual.

TheKit 2017-04-15 19:50

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by ThePhxRises (Post 1526891)
That did it, but even with my APN set up, I'm not getting service in the same places I do on android, or any places for that matter. I'm on verizon and I'm using vzwinternet as my APN. Does this port utilize CDMA properly?
EDIT: And my protocol is set to Dual.

Are you from the USA? I wonder how to debug this, since in my area I don't have CDMA/needed LTE bands. Try to make logs with https://openrepos.net/content/slava/ofono-logger.

ThePhxRises 2017-04-15 23:27

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1526893)
Are you from the USA? I wonder how to debug this, since in my area I don't have CDMA/needed LTE bands. Try to make logs with https://openrepos.net/content/slava/ofono-logger.

Yep, live in semi-rural US. Unfortunately, since neither mobile data, WiFi or MTP work, I don't have any way to install that logger...

moodroid 2017-04-16 09:27

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by ThePhxRises (Post 1526905)
Yep, live in semi-rural US. Unfortunately, since neither mobile data, WiFi or MTP work, I don't have any way to install that logger...

It sounds like wifi works for most people, but I had to do some extra steps to get it working (described on page 2) - don't know if that was just me or I did something wrong.
But if all else fails, you could download the rpm to the internal storage using Android, then follow the steps TheKit described on page 1 to access your internal storage in Sailfish.

ThePhxRises 2017-04-16 13:29

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by moodroid (Post 1526909)
It sounds like wifi works for most people, but I had to do some extra steps to get it working (described on page 2) - don't know if that was just me or I did something wrong.
But if all else fails, you could download the rpm to the internal storage using Android, then follow the steps TheKit described on page 1 to access your internal storage in Sailfish.

I didn't think about doing that, I'll give it a shot sometime today.

And about the wi-fi, how would I go about changing those entries without the file manager?

moodroid 2017-04-16 18:35

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by ThePhxRises (Post 1526915)
I didn't think about doing that, I'll give it a shot sometime today.

And about the wi-fi, how would I go about changing those entries without the file manager?

Hi. I used the terminal emulator app, and used vi/vim to edit the files.

mp107 2017-04-16 19:17

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Same me.
Only, at first, I would recommend fixing the keyboard mapping because it might be a bit irritating to use vi with misconfigured arrows.

TheKit 2017-04-16 20:04

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
New image with SailfishOS 2.1.0.11.
A lot of small but troublesome issues mentioned in the topic fixed.
Video recording works now.

There is no update path from older image yet, I'm still waiting for OBS to be set up for the device.

@ThePhxRises please try this image, Wi-Fi should work without extra steps.

ThePhxRises 2017-04-16 20:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Thanks, it's downloading now.
I'll update this post as soon as I get it flashed.

UPDATE: After way too many corrupted downloads, I got it install and it's working great. The keyboard is working now, along with WLAN. I haven't got the chance to test mobile network yet, but I'll update when I do.

Also, weird thing, has anyone else noticed the battery indicator only moves in 10s?

t-b 2017-04-17 20:10

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1526925)
A lot of small but troublesome issues mentioned in the topic fixed.
@ThePhxRises please try this image, Wi-Fi should work without extra steps.

Thanks for the update. Gave it a try and have the following issues with the image.

WLAN isn't picking up any network. Ifconfig shows wlan0 without ip address.

/etc/resolv.conf:
nameserver 127.0.0.1
nameserver ::1

Keyboard isn't backlit.

TheKit 2017-04-17 21:26

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by t-b (Post 1526963)
WLAN isn't picking up any network. Ifconfig shows wlan0 without ip address.

Could you please elaborate on that? Does it connect ti Wi-Fi network, but doesn't have internet connection, or it doesn't even show up after scanning?

mp107 2017-04-17 21:40

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
For me WLAN didn't work only on first boot.
After reboot works well.

I confirm lack of the keyboard's backlight.

t-b 2017-04-17 21:54

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1526967)
Could you please elaborate on that? Does it connect ti Wi-Fi network, but doesn't have internet connection, or it doesn't even show up after scanning?

I just rebooted (as suggested by mp107) and tried again and now it works. First time I tried it it didn't show any network.

Flash-A-Holic 2017-04-18 11:58

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Thanks @TheKit! Latest build SailfishOS 2.1.0.11 seems to work good on stock slot. I'm just struggling to get landscape rotation working in home screen and not supported apps by stock. Is there any updated guide? I tried to install a patch from Warehouse but it gives me error.

EDIT: I found this guide: Howto auto-rotate homescreen and all other apps

However, I don't know how to install Zypper. Is there any other way or good guide for Zypper?

mp107 2017-04-18 14:34

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
I did:
1. Downloaded "Warehouse for Sailfish" rpm file
2. Installed it by
Code:

# rpm -i file.rpm
3. Most of the applications I have installed later using Warehouse (it almost doesn't hang up on installing packages on Sailfish OS 2.1.0!)
4. Some apps (f.e. nano) I have installed through Terminal using pkcon instead of zypper
Code:

# pkcon install nano

moodroid 2017-04-18 15:17

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
There's quite a few patches in the warehouse for rotation, so if one doesn't work, I'd try some of the others. For zypper, I think you can use pkcon to install it, like mp107 mentioned.

Flash-A-Holic 2017-04-18 15:21

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by mp107 (Post 1526993)
I did:
1. Downloaded "Warehouse for Sailfish" rpm file
2. Installed it by
Code:

# rpm -i file.rpm
3. Most of the applications I have installed later using Warehouse (it almost doesn't hang up on installing packages on Sailfish OS 2.1.0!)
4. Some apps (f.e. nano) I have installed through Terminal using pkcon instead of zypper
Code:

# pkcon install nano

Thanks for helping. I figured out what was wrong. I needed to write these lines via terminal:
Code:

devel-su
Code:

ssu dr home
ssu dr adaptation0
zypper refresh

After that I was able install patches from Warehouse. However "Patch: Homescreen rotate and eventsview sidebar" wasn't working for me but this patch is working:

moodroid 2017-04-21 10:00

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
I decided to try 2.1 in another slock out of curiosity, and can see all the great improvements already mentioned, like video recording, sailfish browser working and warehouse not locking up.

But mobile data just seems to be permanently disabled in 2.1, whereas it works in 2.0. Anyone else having a problem with that?

TheKit 2017-04-21 12:41

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by moodroid (Post 1527115)
But mobile data just seems to be permanently disabled in 2.1, whereas it works in 2.0. Anyone else having a problem with that?

Just got the same, weird. Try installing https://openrepos.net/content/slava/ofono-logger and select "Fix mobile data" from top menu.

moodroid 2017-04-21 14:08

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Quote:

Originally Posted by TheKit (Post 1527132)
Just got the same, weird. Try installing https://openrepos.net/content/slava/ofono-logger and select "Fix mobile data" from top menu.

Thanks, TheKit. That worked for me - in case it helps anyone else...

Flash-A-Holic 2017-05-26 05:51

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
My battery stuck to 100% (I took Droid off from the charger) and reboot won't fix it. This happened couple times before but reboot fixed it earlier, weird :confused:

Do you guys think that I need reflash? I didn't install any modifications before this issue. I'm on the latest 2.1.0.11 version.


All times are GMT. The time now is 17:19.

vBulletin® Version 3.8.8