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)

arkanoid 2018-01-18 14:26

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Guys, a stupid question: I am trying to run a simple desktop QtQuick app and for whatever reason it is stuck in portrait mode, even if I specify contentOrientation: Qt.LandscapeOrientation in qml file. However, if I do so, i get the famous libPVROGL.so not found warning. Are those issues related to one another? Is there a workaround? (there is a reason why I cannot try that in the emulator at the moment, unfortunately)

monkeyisland 2018-05-26 13:48

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
hi thera is there any chance to you use sailfish with full device (16 gb)?

mp107 2018-05-28 05:42

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Most probably - no.
The problem is related with lack of possibility to unlock the bootloader.
It does perform checks if the whole partition layout and types of filesystems on some of the partitions are untouched. The device won't boot if it detects any inconsistency. At least this is how it looked like when I've read about it on XDA some time ago.

merpl 2018-06-12 10:46

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

Originally Posted by TheKit (Post 1539646)
I can try to modify initramfs. In case of using kexecboot, as opposed to SafeStrap, what partitions are going to be used for /data and /system? The stock ones?

For anyone wishing to try in a separate SafeStrap slot, here is the new SailfishOS 2.1.3.7 build for Droid 4: http://sfos.scanf.su/maserati/sailfi....1.3.7-ota.zip

There were some issues with updated systemd due to old kernel, but otherwise I didn't find any new problems. If there are no major issues with this build, we could try to OTA update from 2.1.0.11, since the packages for port are now built on OBS.

This is great! Ctrl on right-OK and Alt on left-SYM. IRSSI IS LIKE ON MY PC NOW!

THANKYOUTHANKYOUTHANKYOU., This helps me very much because i cannot sit for long, and use the xt894 to chat while lying down.

However some regressions

1) Keyboard backlighting stopped working
2) Shift button persistence to next keypress stopped working - now shift has to be held to get a capital letter.

Everything else seems to be great.

My main goal now is to get a multi-console emulator (retroarch or emumaster). Running so we have amusement.

merpl 2018-07-12 08:47

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
No luck with emulation yet. On my todo liet.

merpl 2018-07-17 06:10

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Any of you got keyboard backlighting or persistent shift key working with TheKit's new image?

moodroid 2018-07-18 18:12

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

Don't know if this is a Droid 4 thing, or just a general Sailfish thing, but has anyone managed to turn their Droid 4 into a hotspot and connect to it?

It does work in Android, but in Sailfish, the wifi network appears on my computer and when I connect it asks for a password, but after entering the password it just say 'unable to connect'.

Cheers

Macros 2018-07-18 20:09

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Two Droid 4s are on the way to me to test out Sailfish and Leste
(and to have Android when I really need it)

I am very grateful already for the work of all porters and coders.
The droid 4 should go a long way with its 1GB of RAM.
Hopefully long enough for people and manifacturers to discover handsome keyboard phones again.

Wolda 2018-07-22 09:47

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

Originally Posted by merpl (Post 1546304)
Any of you got keyboard backlighting or persistent shift key working with TheKit's new image?

Hi, the sticky SHIFT key can be obtained by adding the following lines to the first block in "/usr/share/X11/xkb/symbols/us" :

Code:

    key <LFSH> {
        type[Group1]="ONE_LEVEL",
        symbols[Group1]=[ ISO_Level2_Latch]
    };
    modifier_map Shift { Shift_L, ISO_Level2_Latch};

Unfortunately, this seems to be buggy because it sends some escape character that makes crazy programs like vi or ssh when entering passphrases. Any ideas how to fix this?

PS: I've re-mapped CAPS->ESC, SHIFT+CAPS->'\' SHIFT+TAB -> '>' and SHIFT+ENTER -> '|' (the ';' and ':' are as the engraving on the keyboard says). I have most of my daily commands covered, although the lack of symmetry for '<' does annoy me a bit.

Wolda 2018-07-22 11:32

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

Originally Posted by Wolda (Post 1546435)
Hi, the sticky SHIFT key can be obtained by adding the following lines to the first block in "/usr/share/X11/xkb/symbols/us" :

Code:

    key <LFSH> {
        type[Group1]="ONE_LEVEL",
        symbols[Group1]=[ ISO_Level2_Latch]
    };
    modifier_map Shift { Shift_L, ISO_Level2_Latch};

Unfortunately, this seems to be buggy because it sends some escape character that makes crazy programs like vi or ssh when entering passphrases. Any ideas how to fix this?


Allright, a dirty hack that makes SHIFT sticky and doesn't do a mess in vim. We basically redefine CAPS_LOCK function to do the sticky SHIFT, and then assign the SHIFT key the CAPS_LOCK function.

File "/usr/share/X11/xkb/compat/caps" :
Code:

interpret Caps_Lock { action = LatchMods(modifiers = Shift);}
File "/usr/share/X11/xkb/symbols/us" :
Code:

key <LFSH> { [Caps_Lock] };
key <BKSP> { [BackSpace, Delete ] };
key <RTRN> { [Return, bar] };
key <CAPS> { [Escape, backslash] };
key <TAB> { [Tab, greater] };
key <SPCE> { [ space, less] };

I bet there is a less lopsided way of doing this, but since I live and die with vi, I'm currently being happy with the solution.

Macros 2018-07-26 21:15

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
So I have flashed my Droid 4 with the following steps:
Rooted Android
Installed the latest Safestrap Recovery
Selected Safe slot
Flashed cm11->Sailfish 2.1.3.7 failed
Wiped
Flashed cm11->Sailfish 2.1.0.11->Sailfish 2.1.3.7 worked

I can confirm moodroids problem: The hotspot does not work.
I also checked everything mentioned in the first post. I can confirm most of it, except Video recording: It actually works :)

I see this mentioned in the thread, but maybe the post should be updated.

Bluetooth does pair, but does not work otherwise.

Wifi worked after the first reboot

Pin is curious: At first boot I entered it "Wrong Pin",
entered it again "Wrong Pin", pressed cancel and saw that the pin actually worked.
After the third boot it now still displays "Wrong Pin" but closes the pin requester a second later by itself.

And finally I have the 100% battery problem. Its horrible. I have made many reboots and its still stuck at 100%, having the phone shut of at "random" times is very bad. Also it seems like the phone doesn't charge in that state, or does it? I don't know.

Finally: Sailfish is awesome! So much more fluid than the stock rom! I love it.

Macros 2018-07-29 09:10

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Further testing results:

After about 15 reboots I got the battery working. After about 100 I can say, the chance for my device is about 20% that it works, this really needs to be fixed.

GPS is not working:
I get accurate speed and height, but the location is not accurate. Sometimes its exact to the town (2km), sometimes only to the state. This also seems to be reboot dependent.
The compass is not picked up.

After seeing the bad state of the drivers: Would it maybe be possible to use open source drivers which have been mainlined?
http://elektranox.org/droid4/

The keyboard backlight can be manually controlled via /sys/class/leds/keyboard-backlight/brightness. 255 is maximum brightness.


I want to help getting Sailfish fully running on the droid 4, but I have no experience at all in developing for Linux and porting. Only with programming. Feel free to show me where I can contribute.

TheKit 2018-07-29 14:06

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

Originally Posted by Macros (Post 1546698)
Further testing results:
After about 15 reboots I got the battery working. After about 100 I can say, the chance for my device is about 20% that it works, this really needs to be fixed.

The way battery level is calculated on Droid 4 is weird compared to newer devices. Basically it depends on closed userspace daemon. I tried to fix it and supposed I've fixed it before (the conditions when it starts and when it fails are pretty uncertain), but going to look again then with newer SailfishOS build.

Quote:

Originally Posted by Macros (Post 1546698)
Further testing results:
After seeing the bad state of the drivers: Would it maybe be possible to use open source drivers which have been mainlined?
http://elektranox.org/droid4/

The mainlining work for Droid 4 is pretty cool and I'm aware of it, however, the issue is there is no 3D acceleration support, and SailfishOS UI would be painfully useless with software rendering. If any way to port PowerVR kernel driver to mainline and use PowerVR blobs is found, Maemo Leste will benefit from this as well, see for details: https://leste.maemo.org/Motorola_Droid_4/PowerVR

hispeedimagins 2018-08-21 05:22

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Hello,
I have been using the builds for a while but did not make an account. I like, nice work.

For some reason the email app does not accept my credentials, they work everywhere else. The sd card does not mount, I read that I should Mount it manually but I do not know how. Am a noob.

Can someone please tell me the command and where I have to enter it.

Also is there an office application available in jolla or through android or something else? The sd card is the priority though.

Somewhere on an xda thread it is written that I should change my device resolution. Should that be done?

Thank you, and amazing work , thkit.

moodroid 2018-09-08 10:08

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Is there any way to start /system/bin/battd manually?
When I run it, it just exits. Even if we had to manually restart it when the 100% battery problem occurs, it'd still be a major improvement over rebooting several times.
Thanks, as always, to TheKit for making this excellent rom available.

GalaxyNinja66 2018-09-10 05:02

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

Originally Posted by moodroid (Post 1548170)
Is there any way to start /system/bin/battd manually?
When I run it, it just exits. Even if we had to manually restart it when the 100% battery problem occurs, it'd still be a major improvement over rebooting several times.
Thanks, as always, to TheKit for making this excellent rom available.

battd, as far as I know, is just middleware for an actual battery read daemon. And again, as far as I know, the issue isn't with battd but rather the actual root battery daemon not sending battery information to battd to show in the actual UI without very specific circumstances that TheKit has had trouble recreating. Again take what I say with a grain of salt, I don't have much experience with OMAP devices and porting because the PowerVR graphics that usually accompany them are a nightmare to work with.

moodroid 2018-09-10 17:14

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Thanks for the info. I don't know anything about it. I'd just observed that whenever the % was wrong, that /system/bin/battd was no longer running. For me, pretty much whenever I reboot this occurs. Still love this rom though!

merpl 2019-04-30 07:30

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
One of my xt897's turned itself on this morning, so i modded it for hardware-off.
https://geekhack.org/index.php?topic=100460.0

https://abload.de/img/fuphon046rkt7.jpg

teroyk 2019-09-14 09:50

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

Originally Posted by TheKit (Post 1524716)
This is a testing version port of SailfishOS to Motorola Droid 4 (maserati), based on CyanogenMod 11.0.

08.04.18 update SailfishOS 2.1.3.7[/URL]

Is there coming any update? I might give chance to SailfishOS, when waiting that Maemo Leste will be more ready.

sicelo 2019-09-14 19:34

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Possibly silly question - is it possible to have SFOS on a memory card for example, so that you can dual boot to Android on ROM, as well as SFOS on SD?

Seems to me that the current installation method overwrites Android? Or I missed something?

mp107 2019-09-15 06:12

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
@sicelo:
No, it doesn't oblige you to overwrite anything.
You can use Safestrap - modified TWRP recovery - in order to manage so called slots where Android OS ROMs and Sailfish OS can be installed.
You install the Safestrap from stock ROM but after installing it you can get rid of stock ROM.

There are several types of ROM slots available in Safestrap recovery.
Firstly, there is the stock ROM slot which uses partitions used by stock ROM by default.
Secondly, there are 4 slots which use loopback devices located on internal memory (in /sdcard/safestrap directory on any Android ROM).
Thirdly (or rather - sixtly), in modified by @Internauta37 Safestrap recovery available here there is the 6-th slot available. It uses "abandoned" webtop related partitions. Webtop was a Linux desktop environment available when using stock ROM in version 2.3. Later, at Android 4.0.4 upgrade, this feature has been removed by Motorola but the mentioned partitions are still available and it would be kind of waste of to not be able to use them. ;) But be aware this slot is not supported by CyanogenMod/LineageOS by default and you have to modify ramdisk.img file in order to install ROM here.
In recovery modified by @timangus the 6-th slot is called altpart. This slot uses /webtop partition as /system and rest of partitions are the same as in stock ROM slot (it means it conflicts with stock ROM slot so you cannot install ROMs on both of them at the same time). It was created as /webtop partition is bigger than /system and installing for example LineageOS 14.1 leaves few space for installing gapps on stock /system partition. But be aware this slot is not supported by CyanogenMod/LineageOS by default and you have to modify ramdisk.img file or install mentioned on the website zip file in order to install ROM here.

So, in total there are 6 ROM slots available. You can have 6 ROMs installed at once (including SailfishOS) and use Safestrap recovery to switch between them.

Although, I am not sure how installing Maemo Leste affects Safestrap etc.

deutch1976 2019-09-21 16:54

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
Hi there. Is it still worth it to buy a used Droid 4 nowadays? Thanks

Macros 2019-09-21 21:16

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
In my opinion: No

I bought one because of the keyboard and announced Sailfish port. But the experience is bad (I still carry it with me because Android is often needed today, but also have a N9, N900 and N808)

Pros:
- is rootable
- has 1GB of RAM
- has hardware keyboard
- supports multiboot
- is small
- has Sailfish port
- may get working Leste port

Cons:
- Sailfish port is not in usable state. Charge is only readable in one of 10 boots. Can only be charged if Charge is readable. GPS does not work, Bluetooth does not work, Android support trick stops working, keyboard leds do not work...
- Battery life is bad if not in Sailfish port. Its somewhat ok under Android 4.4 Images, but most apps do not support it anymore. Android 7.1 eats the battery in two hours of use or 20 of standby.
- Keyboard has no control key, also keymaps have errors in multiple system images.
- For Android it is too slow for today's expectations of app developers.
- General phone specs do not excel in any way.

I imported two from US to have spare one, the spare works and only has a slightly broken USB port. Cables do not stay put but work as long as they are in the correct position. After my experiences I am sure I will not need it, so I will gladly send it to any active member here and only request shipping costs. (I live in Munich)

deutch1976 2019-09-22 07:18

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

Originally Posted by Macros (Post 1560509)
In my opinion: No

I bought one because of the keyboard and announced Sailfish port. But the experience is bad (I still carry it with me because Android is often needed today, but also have a N9, N900 and N808)

Pros:
- is rootable
- has 1GB of RAM
- has hardware keyboard
- supports multiboot
- is small
- has Sailfish port
- may get working Leste port

Cons:
- Sailfish port is not in usable state. Charge is only readable in one of 10 boots. Can only be charged if Charge is readable. GPS does not work, Bluetooth does not work, Android support trick stops working, keyboard leds do not work...
- Battery life is bad if not in Sailfish port. Its somewhat ok under Android 4.4 Images, but most apps do not support it anymore. Android 7.1 eats the battery in two hours of use or 20 of standby.
- Keyboard has no control key, also keymaps have errors in multiple system images.
- For Android it is too slow for today's expectations of app developers.
- General phone specs do not excel in any way.

I imported two from US to have spare one, the spare works and only has a slightly broken USB port. Cables do not stay put but work as long as they are in the correct position. After my experiences I am sure I will not need it, so I will gladly send it to any active member here and only request shipping costs. (I live in Munich)

How much would it cost shipping to Portugal?

Macros 2019-09-22 11:07

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
It costs about 5€. I may get lower rates by smuggling it among our company packages. I can tell you the precise price on Monday by PM.

t-b 2019-09-22 15:48

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

Originally Posted by Macros (Post 1560509)
- Its somewhat ok under Android 4.4 Images, but most apps do not support it anymore. Android 7.1 eats the battery in two hours of use or 20 of standby.
- For Android it is too slow for today's expectations of app developers.

I've got two Droids, one with Lineage OS 13 and one with 14
The 13 version gets me through the day, and the 14 version needs to be charged at least twice a day.
It was a lot better in the past, so I am not sure how much of the difference is the battery itself or the Lineage version.

If you only need a phone for whatsapp and occasional browsing, the Droid 4 with Lineage without gapps is absolutely fine.
My main and still preferred phone is a N900 - I use the Droids mainly for whatsapp (one for business, one for private conversations).

Quote:

Originally Posted by Macros (Post 1560509)
- may get working Leste port

There is already a port that kinda works. I need one that can make and receive reliable calls (esp. my business phone) and capable of dual booting in Android for Whatsapp. So not suited for my needs yet (but hopefully the team will bring us there)

mp107 2019-09-22 17:22

Re: SailfishOS on Motorola Droid 4 XT894 (alpha port)
 
For me the worst "battery drainer" on Motorola Droid 4 (on LineageOS 14.1) is low 3G signal. Not medium but low, on the edge of signal drop.
Recently I was in place where signal coverage was really poor and I had to workaround battery drain by switching to 2G only. I still was able to browse most of websites using Opera Mini (although I switched its connection mode from HTTP/socket to HTTP as I found it working better on 2G).
Beside these "extreme" conditiions my screen on time is in between 4-5 hours and I charge battery every ~24h.

@Macros @t-b
Have you tried disabling zRAM and enabling SWAP on sdcard instead (not sure if it's enabled in SailfishOS) and enabling GPU rendering in programmer settings?
These "tweaks" significantly reduced lags on my device (of course keeping its low CPU power in mind).

Macros 2019-11-09 14:14

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

Thanks for your hints. I tried to implement them.
Switching to 2G only helps sometimes, but I already did that. Sometimes the battery is drained even in flight mode.

Disabling zram made the device nearly unusable and it crashed often. Also the constant swaping put additional strain on the battery.

Forcing GPU rendering was a good hint. Several Apps crash less often and run more quickly, also using less power.


I just got good news that one of my Droid 4s is now safe in the hands of deutch1976. I wish him fun exploring Sailfish and Leste with the device and of course I secretly hope he finishes the Sailfish port, so that I can use it as daily driver ;)

teroyk 2019-11-19 12:59

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

Originally Posted by Macros (Post 1560509)
In my opinion: No
Pros:
- may get working Leste port
Cons:
- Sailfish port is not in usable state.

Although your opinion I bought Droid4. Now it's waiting what OS is first ready to install.


All times are GMT. The time now is 15:06.

vBulletin® Version 3.8.8