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)

TheKit 2017-03-04 08:37

SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
This is a testing version port of SailfishOS to Motorola Droid 4 (maserati), based on CyanogenMod 11.0.

What works:
  1. Graphics
  2. Sound
  3. Mobile data and calls
  4. Wi-Fi
  5. Camera (for taking photos/videos)
  6. Hardware keyboard

Known issues:
  1. [s]Video recording doesn't work yet[/s]
  2. Bluetooth discovery works, but no proper connection
  3. CDMA networks are completely untested and probably don't work
  4. No FM radio

Installation:
It's intended to work with SafeStrap, due to device's non-unlockable bootloader. SailfishOS install/init scripts were modified to allow booting from secondary slots and safe rom slot.
  1. Boot to SafeStrap recovery and switch to the slot you want to use
  2. If it's not a new slot, please wipe data/system to avoid potential issues. [s]Don't install it to stock slot[/s]. Stock slot install is fixed now, but please be careful and have device fully charged.
  3. Flash cm-11-20160104-UNOFFICIAL-maserati.zip
  4. Flash sailfishos-maserati-release-2.1.0.11-test.zip on top of it

Photos:
https://puu.sh/utCpx/8bfa61de11.jpg
https://puu.sh/utCn9/77a26a13a1.jpg

Thanks to carepack, who initially started the port, and all the great people at #sailfishos-porters and SailfishOS community.

26.04.17 update:
New image with SailfishOS 2.1.0.11.
  • A lot of small but troublesome issues mentioned in the topic fixed.
  • Video recording works now.

08.04.18 update: SailfishOS 2.1.3.7

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

nthn 2017-03-04 11:35

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Getting a Bluetooth keyboard to work on a device with a keyboard built in is probably not very important anymore. Thanks for expanding the reach of Sailfish!

mautz 2017-03-04 13:26

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Nice work!

matemana 2017-03-04 14:53

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Great work!

m4r0v3r 2017-03-04 15:42

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
where did you buy the phone from?

TheKit 2017-03-04 16:04

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

Originally Posted by m4r0v3r (Post 1524739)
where did you buy the phone from?

Bought it from eBay (this seller) and used Russian forwarding company to send it from USA to Russia, since the seller doesn't send here and often it's actually cheaper than seller shipping directly.

m4r0v3r 2017-03-05 01:02

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

Originally Posted by TheKit (Post 1524741)
Bought it from eBay (this seller) and used Russian forwarding company to send it from USA to Russia, since the seller doesn't send here and often it's actually cheaper than seller shipping directly.

my days its $24.

matemana 2017-03-05 11:20

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

Originally Posted by m4r0v3r (Post 1524772)
my days its $24.

That's why they use prices like that. It's 25$ not 24!

That works pretty well. For only 299$ it's 300 not 200 and something :D

moodroid 2017-03-05 17:29

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Hi TheKit,

Thank you so much for this - excellent work, and great to have a new OS to try on my Droid 4.

Were you able to access the phone's internal storage or an external SD card at all? I'm not sure whether it's me not knowing what I'm doing, or something that hasn't been implemented yet?

Thanks

TheKit 2017-03-05 18:04

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

Originally Posted by moodroid (Post 1524834)
Hi TheKit,
Were you able to access the phone's internal storage or an external SD card at all? I'm not sure whether it's me not knowing what I'm doing, or something that hasn't been implemented yet?

Hasn't been implemented yet. Actually internal storage is mounted for SafeStrap to /ss folder. To access it as nemo user, set developer password, go to terminal and:
Code:

devel-su
usermod -a -G media_rw nemo
reboot

I will fix this in new build. As for external SD, it probably won't mount yet due to OS considering mmcblk0 (external SD) as internal storage and mmcblk1 (phone NAND) as external storage, since it's usually the other way around. I'll look for workaround for this.

moodroid 2017-03-05 20:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Excellent, thanks - that's that problem solved!
I know this is only a test version, so hope you don't mind me asking questions? Please ignore if you don't have time...
I can connect to my wifi fine, but when I try and use the included browser, it won't connect to anything, and I don't seem to be able to ping anything from the terminal - did that work for you?

TheKit 2017-03-06 06:25

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

Originally Posted by moodroid (Post 1524847)
Excellent, thanks - that's that problem solved!
I can connect to my wifi fine, but when I try and use the included browser, it won't connect to anything, and I don't seem to be able to ping anything from the terminal - did that work for you?

Please check what is inside /etc/resolv.conf. If it's empty or has 127.0.0.1 as nameserver, add your router DNS or Google DNS there (echo "nameserver 8.8.8.8" > /etc/resolv.conf).

moodroid 2017-03-06 09:04

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

Originally Posted by TheKit (Post 1524870)
Please check what is inside /etc/resolv.conf. If it's empty or has 127.0.0.1 as nameserver, add your router DNS or Google DNS there (echo "nameserver 8.8.8.8" > /etc/resolv.conf).

Hi, thanks, but still no joy, sorry. I should have been more clear in my original message. I couldn't ping 8.8.8.8 before or after changing resolv.conf, so don't think it's dns related?

TheKit 2017-03-06 11:50

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

Originally Posted by moodroid (Post 1524882)
Hi, thanks, but still no joy, sorry. I should have been more clear in my original message. I couldn't ping 8.8.8.8 before or after changing resolv.conf, so don't think it's dns related?

Hi. That's weird, Wi-Fi or mobile data connection works on mine device. Can you please check the output of ip addr and ip route?

moodroid 2017-03-06 12:52

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Thanks. I think I've managed to fix this now by changing the entries in /etc/group to:

inet:x:3003:root
net_raw:x:3004:root

...and doing:

gpasswd -a nemo inet

...then rebooting.

No idea what I was doing and just followed some instructions! Will carry on testing, thanks.

moodroid 2017-03-06 16:19

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Sorry again for all the questions...
Were you able to install anything from the store at all? Whatever I try, I just get 'problem with store: could not install <whatever>'?
Many thanks

matemana 2017-03-06 16:25

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

Originally Posted by moodroid (Post 1524921)
Sorry again for all the questions...
Were you able to install anything from the store at all? Whatever I try, I just get 'problem with store: could not install <whatever>'?
Many thanks

did you try 'devel-su pkcon refresh'

moodroid 2017-03-06 16:36

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Thanks - I hadn't. Just tried, and get:
Fatal error: Authentication failed (is SSU set up correctly?)

TheKit 2017-03-06 16:44

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

Originally Posted by moodroid (Post 1524921)
Sorry again for all the questions...
Were you able to install anything from the store at all? Whatever I try, I just get 'problem with store: could not install <whatever>'?
Many thanks

Store needs to be enabled for ported devices on per port basis, so it's not enabled on server side yet. Try Warehouse for now.

moodroid 2017-03-06 19:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Excellent, thanks.

- WebPirate browser seems pretty good
- LLS Video Player also seems good (had to do 'ssu dr home' and 'ssu dr adaptation0' in order to be able to do 'pkcon install python')
- harbour-file-browser seems ok too

I know this is a bit off topic, but do you (or anyone else) know what I'd need from the Warehouse (or an rpm) to run Android apps?

Although, with the above I think I might be able to manage without Android apps altogether. Many thanks again - this is already good enough to use as my main OS!

moodroid 2017-03-07 11:37

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Sorry for yet another question...
Obviously very low priority...
The cursor keys seem to be mapped a bit funny with left and right being up and down and vice versa. Any way to change them?
Thanks

elros34 2017-03-07 12:02

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
I had the same problem with cursors on photon q. Swap them in /usr/share/X11/xkb/keycodes/evdev.

carepack 2017-03-07 14:22

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
@TheKit
oh no, you're out with the port? damn. Hey good job man! I hope a lot of people enjoy it. What about an xda thread? Already up?

moodroid 2017-03-07 14:34

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

Originally Posted by elros34 (Post 1524974)
I had the same problem with cursors on photon q. Swap them in /usr/share/X11/xkb/keycodes/evdev.

Excellent, thanks - sorted! (114, 111, 113, 116 for reference)

This is now totally usable for me except for the headphone socket not working.

Don't suppose anyone knows of anyway of routing sound to the headphone socket, even if it's a manual process rather than automatic?

Many thanks

elros34 2017-03-07 14:49

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
journalctl is your friend :) You can try to create /etc/ohm/plugins.d/accessories.ini with appropriate values taken from evdev_trace (mce-tools package).

TheKit 2017-03-07 15:20

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

Originally Posted by carepack (Post 1524984)
@TheKit
oh no, you're out with the port? damn. Hey good job man! I hope a lot of people enjoy it. What about an xda thread? Already up?

Heh, sorry for getting ahead of train, didn't see you on #sailfishos-porters lately. There are still issues to fix, as you see, so I wanted the port to become more stable before posting on XDA, but to get some initial feedback and testing.

moodroid 2017-03-07 16:51

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

Originally Posted by elros34 (Post 1524988)
journalctl is your friend :) You can try to create /etc/ohm/plugins.d/accessories.ini with appropriate values taken from evdev_trace (mce-tools package).

Thanks anyway, but it's beyond me! I can't even identify which event I need to use. I guess I'll wait until somebody who knows what they're doing has time to look, i.e. @TheKit

Thanks everybody for the help so far, and especially to TheKit for even making this possible.

mp107 2017-03-07 19:30

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Glad to see a port for the Droid 4.
Might count me in as a tester. :)

t-b 2017-03-07 20:14

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Bought a Droid 4 a while ago (they are dirt cheap and the keyboard seems to be nice) but never used it.
This port sparked my interest though so rooted the device and installed safestrap yesterday.

After installing Sailfish and rebooting the screen turned black (lit) and didn't show any error message.
I didn't turn it off this night (not knowing how long it takes to boot the first time) but this morning still a black screen.

Wiped the phone and tried again. Same result.
Wiped the phone and only installed CM11 and booted CM11 - that worked fine.
I used ROM slot 'stock'

Maybe I am missing one obvious step - I am not very experienced in flashing custom roms for Android phones and never used safestrap before.

TheKit 2017-03-07 20:22

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

Originally Posted by t-b (Post 1525003)
...
I used ROM slot 'stock'

Maybe I am missing one obvious step - I am not very experienced in flashing custom roms for Android phones and never used safestrap before.

Please try non-stock ROM slot (for example ROM slot 1). I didn't actually know that "stock" slot can be used for installing custom ROMs in SafeStrap, going to fix this in init scripts. If it takes more than a few minutes for initial boot, something went wrong and it probably won't boot.

Quote:

Originally Posted by elros34 (Post 1524988)
journalctl is your friend :) You can try to create /etc/ohm/plugins.d/accessories.ini with appropriate values taken from evdev_trace (mce-tools package).

Thanks for mentioning this. The kernel didn't transmit EV_SW events expected by ohm though, so I needed to modify it.

As a quick fix, extract files from the this archive, then do:
Code:

devel-su
mount -o remount,rw /system
cp kernel /system/etc/kexec/
cp accessories.ini /etc/ohm/plugins.d/

I plan to do a new build to fix this and some other issues from the thread later.

t-b 2017-03-07 20:58

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

Originally Posted by TheKit (Post 1525005)
Please try non-stock ROM slot (for example ROM slot 1). I didn't actually know that "stock" slot can be used for installing custom ROMs in SafeStrap, going to fix this in init scripts. If it takes more than a few minutes for initial boot, something went wrong and it probably won't boot.

Thanks for the prompt reply. Installed without problems this time. Only walked through the tutorial and used the phone app, but that all works flawless.

moodroid 2017-03-08 09:43

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

Originally Posted by TheKit (Post 1525005)
As a quick fix, extract files from the this archive, then do:
Code:

devel-su
mount -o remount,rw /system
cp kernel /system/etc/kexec/
cp accessories.ini /etc/ohm/plugins.d/

I plan to do a new build to fix this and some other issues from the thread later.

Marvellous, thank you - working perfectly.
For my purposes, at least, this is now fully usable.
The only other little thing I've noticed, which I'm not really going to miss, is that the keyboard doesn't light up.
Thanks again.

elros34 2017-03-08 12:27

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Create ini file in /etc/mce/
[KeyPad]
BrightnessDirectory=/sys/class/leds/keyboard-backlight // or similar path

t-b 2017-03-08 20:25

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
I've spent a few minutes navigating Sailfish and selected Landscape mode. It did change apps behaviour but very inconsistent in the GUI. Sailfish issue?

The OS is pretty snappy and touchscreen responds very well. Battery life seems to be not too bad as well. Now 60% so -40% in 1 day. Not played around with it very long though, without WIFI connection.

moodroid 2017-03-09 14:53

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Hi TheKit,

I couldn't seem to get Windows to recognise my phone when I connected via USB to transfer files? But then I realised I could just use WinSCP over WiFi which is miles better anyway, so I can't think of any reason, personally, to use USB again.

I can't believe how little attention this has got, given that CM/Lineage 13 and 14 aren't that stable at the moment, and this is very stable and fast. I reckon that once you post on XDA this could be quite popular - I'm certainly sticking with it!

If you do make any more improvements, it would be wonderful if you could post the commands required for existing users (like me) to save a reinstall, but I appreciate that's a lot to ask.

Many thanks again

juiceme 2017-03-10 05:55

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

Originally Posted by moodroid (Post 1525096)
I can't believe how little attention this has got, given that CM/Lineage 13 and 14 aren't that stable at the moment, and this is very stable and fast. I reckon that once you post on XDA this could be quite popular - I'm certainly sticking with it!

IMHO nobody on XDA will really care about this. They are so Android-centric they don't even want to know SFOS exists... :eek:

matemana 2017-03-10 06:11

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

Originally Posted by juiceme (Post 1525134)
IMHO nobody on XDA will really care about this. They are so Android-centric they don't even want to know SFOS exists... :eek:

Nexus 4 & 5 have their threads on XDA and they have much more pages then in here :)

https://forum.xda-developers.com/goo...2841266/page79
https://forum.xda-developers.com/nex...2969823/page78

I think some people think that this is another custom rom for their devices. :D

I love this OS and i'm never gonna use android on nexus 4 or nexus 5. From now on i'll be choosing smartphone based on if it can run or not SFOS. It's great sony will support it officialy on their xperia devices, that makes it easy to buy a smartphone with decent hardware and camera and play with SFOS.

NX500 2017-03-10 07:47

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

Originally Posted by juiceme (Post 1525134)
IMHO nobody on XDA will really care about this. They are so Android-centric they don't even want to know SFOS exists... :eek:

I miss the real XDA- aka windows-mobile-days of XDA-DEV, without all these cyanogenmod repackers and the lack of interest in anything besides android..

QWERTY_Slider 2017-03-10 21:57

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
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: :(

TheKit 2017-03-11 07:43

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: :(

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.


All times are GMT. The time now is 00:55.

vBulletin® Version 3.8.8