We have moved to a new Sailfish OS Forum. Please start new discussions there.
33

[wiki] Fxtec Pro1 - Sailfish OS tips and tricks

asked 2019-12-29 21:20:33 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-05-20 03:17:59 +0200

Kabouik gravatar image

Useful sources

official

unofficial, community driven

Useful Information

If you are not using the latest SFOS version and see a billion of Samsung partitions in Settings > Storage, do not mess with them.

Hardware Keyboard Layouts

RU, US and DE default layouts are now included since 3.2.x. Below links serve as examples to debug if the correct layout is not automatically selected when selecting your language in Sailfish OS. The links also show how to create your own layout, or use some more specific layouts made by the community (i.e., dead keys and such).

Tips and Tricks

edit retag flag offensive close delete

Comments

2

in general this device is quite modern and strong. Only the apn (photo part) is something poor I think...

cemoi71 ( 2020-01-23 01:29:17 +0200 )edit
1

Ideally would be fine if a brother could be done without the hard keyboard...

cemoi71 ( 2020-01-23 01:30:42 +0200 )edit

Does double tap to wake display working under sailfish os?

Jk ( 2020-03-11 17:13:09 +0200 )edit

@Jk, no. It did in first releases of the port but needed to be disabled to circumvent a total screen freeze issue it caused.

mosen ( 2020-05-19 21:07:34 +0200 )edit

15 Answers

Sort by » oldest newest most voted
13

answered 2019-12-29 21:44:34 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-05-19 19:24:56 +0200

mosen gravatar image

Latest available Sailfish OS version

3.3.0.16 works like a charm and is necessary to avoid SIM card issues when updating packages.

devel-su
ssu re 3.3.0.16
version --dup
reboot

Note 1:

boot image update might be required after "OTA" update:

devel-su
dd if=/boot/hybris-boot.img of=/dev/block/bootdevice/by-name/boot_a

Note 2:

The landscape orientation of homescreen will be disabled by default after an OTA update unless you run the command in this comment.

Source: https://community.fxtec.com/topic/2467-community-build-sailfish-os-32-for-fxtec-pro1/?do=findComment&comment=37630

Note 3:

Pro1 adaptation repo is "rolling release" actually, so it worth doing version --dup from time to time at the same version.

To change from "devel" into "testing" branch follow this guide.

edit flag offensive delete publish link more

Comments

1

To enable landscape homescreen:

sed -e "s/return allowed/return Orientation.All/" -i  /usr/lib/qt5/qml/Sailfish/Silica/Page.qml

I think people who were already running a previous version of SFOS and upgraded using ssu re should also update the kernel, right? Can you confirm?

Source for both points.

Kabouik ( 2019-12-29 23:58:14 +0200 )edit
1

not a kernel. boot image. only @TheKit know that. and for first one i'm using Patchmanager :D

coderus ( 2019-12-30 00:08:12 +0200 )edit

Sorry, yes, boot image, my bad. I use Patchmanager too but it's always good to have the information available here for newcomers! Thanks for your edit. :]

Kabouik ( 2019-12-30 00:19:37 +0200 )edit

@Kabouik You can repost as answer and add to first post :)

coderus ( 2019-12-30 09:00:35 +0200 )edit

Is it possible to run Android apps on it? I asked over at fxtec, and they seemed to believe you could install apk:s under Sailfish on it (because of the chipset, apparently). Would that let us install gapps and use the google store even if there is no Android support from the Jolla store for it?

00prometheus ( 2020-01-14 22:53:36 +0200 )edit
10

answered 2019-12-29 22:32:53 +0200

mosen gravatar image

updated 2020-03-10 21:49:55 +0200

coderus gravatar image

GUI application available: https://openrepos.net/content/coderus/splashscreen-changer

Thanks to coderus help, i could change the Pro¹ boot screen myself using only Linux commands and the Gimp:

All operations are done with root privileges, be careful!

devel-su

You might want to make a copy of your splash partition for the case something goes wrong.

dd if=/dev/block/bootdevice/by-name/splash of=splash.img

You can than anytime restore the unaltered stock partition with

dd if=splash.img of=/dev/block/bootdevice/by-name/splash

Now to the juicy bits.

  1. Edit one of the below attached Bitmap files in Gimp to your liking or jump to 2. if you want to use one of them like they are.

    • After editing, use "Export As" to save and give a name with .bmp suffix so Gimp pops-up the Bmp-Export settings next.
    • Select "advanced options" in Bmp-Export settings window and select "24Bit R8 G8 B8", then export.
  2. Copy the .bmp file to your Pro¹

  3. From the folder you copied your bitmap file into, execute following dd command that writes your .bmp back to the splash partition starting at byte 16384.

Replace "YOURBITMAP.bmp" with the actual name of your bitmap.

dd if=YOURBITMAP.bmp of=/dev/block/bootdevice/by-name/splash bs=1024 seek=16

After the copy process, you can reboot your device and should see the edited boot screen.

Notes:

  1. For landscape bootscreens just rotate the bitmap 90° left in gimp to edit, and 90° back before exporting.

  2. the original bmp and some samples of mine:

Original, F(x)logo + Android Logo Meme, Sailfish OS F(x)logo + SFOS Logo Meme, All OS Logos

Meme, All OS Logos   Landscape - SailfishOS

(free stock photo by Archie Pryke hosted on Pexels)

edit flag offensive delete publish link more

Comments

1

Thanks for the post, worked like a charm.

Can you please add that this will take quite a while, 45 seconds in my case. While I expected this with a block size of 1 byte, some users might worry and interrupt prematurely. Sadly the dd on SFOS does not support status=progress :-/

[root@Pro1 ~]# dd if=002-fxtec-sailfish.bmp of=/dev/block/bootdevice/by-name/splash bs=1 seek=16384 status=progress
dd: invalid status flag: `progress'
Try `dd --help' for more information.
[root@Pro1 ~]# ll
total 40260
-rw-r--r-- 1 root root  6998522 Feb  1 17:03 002-fxtec-sailfish.bmp
-rw-r--r-- 1 root root 34226176 Feb  1 17:00 original-splash.img
[root@Pro1 ~]# dd if=002-fxtec-sailfish.bmp of=/dev/block/bootdevice/by-name/splash bs=1 seek=16384
6998522+0 records in
6998522+0 records out
6998522 bytes (7.0 MB) copied, 47.1093 s, 149 kB/s
pcfe ( 2020-02-01 18:17:46 +0200 )edit

Now this can be easily performed at the GUI per
https://openrepos.net/content/coderus/splashscreen-changer

olf ( 2020-02-03 01:50:48 +0200 )edit

Done, thx for the hint @pcfe!

mosen ( 2020-03-10 19:46:46 +0200 )edit
7

answered 2019-12-30 00:15:20 +0200

Kabouik gravatar image

updated 2020-01-09 14:57:29 +0200

HW Keyboard US-international with dead keys or with AltGr dead keys (several layouts available) [QWERTY model]

Follow instructions here.

Beware: dead keys are properly recognized (they work when running a distribution with XFCE4 using chroot for instance), but do not seem work in SFOS so far. Help welcome.

edit flag offensive delete publish link more
6

answered 2019-12-29 21:38:15 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-01-09 14:57:58 +0200

Kabouik gravatar image

HW Keyboard Russian Layout [QWERTY model]

  • Download and unzip file pro1.zip
  • Copy file to /usr/share/X11/xkb/symbols/ru /usr/share/X11/xkb/symbols/fxtec_vndr
  • Execute following commands

as nemo user:

dconf write /desktop/lipstick-jolla-home/layout \"fxtec_vndr/pro1\(us\),fxtec_vndr/pro1\(ru\)\"
dconf write /desktop/lipstick-jolla-home/options \"grp:alt_space_toggle\"
dconf write /desktop/lipstick-jolla-home/model "'fxtecpro1'"
  • Then reboot or execute: systemctl --user restart lipstick
edit flag offensive delete publish link more

Comments

How to switch between languages and layouts?

ilievdh ( 2020-01-30 20:11:51 +0200 )edit

alt + space

coderus ( 2020-03-13 11:33:37 +0200 )edit
5

answered 2019-12-30 00:21:18 +0200

mosen gravatar image

updated 2020-01-09 14:58:18 +0200

Kabouik gravatar image

HW Keyboard German [QWERTZ model]

Follow instructions here.

edit flag offensive delete publish link more
5

answered 2019-12-31 15:58:48 +0200

Kabouik gravatar image

updated 2020-01-02 19:14:25 +0200

Allow landscape orientation in homescreen

It should work out of the box when installing SFOS from a CI image, but may not after an OTA update. Either use the appropriate patch in Patchmanager, or run:

sed -e "s/return allowed/return Orientation.All/" -i  /usr/lib/qt5/qml/Sailfish/Silica/Page.qml
edit flag offensive delete publish link more

Comments

I thought we explicitly allowed landscape on the homescreen anyway?

pigg ( 2020-01-01 17:27:40 +0200 )edit

@pigg, you did, and that was a pleasant surprise when I first installed SFOS! But does it work even after OTA updates?

Kabouik ( 2020-01-02 19:13:02 +0200 )edit

I can confirm this works out of the box with sailfishos-t5-release-3.2.1.20-devel-20200122.zip will try to remember updating this reply once I got my first OTA update. (I flashed yesterday)

pcfe ( 2020-02-01 17:59:49 +0200 )edit
5

answered 2020-01-03 17:20:26 +0200

Kabouik gravatar image

updated 2020-05-19 21:18:14 +0200

mosen gravatar image

Keyboard backlight (automatic using mce)

(Obsolete since feature is included since 3.3.x. Just for educational purpose now)

We now have full keyboard backlight support on the Pro¹ with mce thanks to Elros34. However, it is not included in the SFOS port yet, so just run this in terminal to fetch the mce config file from elros34's repository:

devel-su curl -L -o /etc/mce/91-keyboard-backlight.ini https://raw.githubusercontent.com/elros34/droid-config-moto_msm8960_jbbl/master/sparse/etc/mce/91-keyboard-backlight.ini

reboot

Keyboard backlight (manually using a cover action)

Thanks to Wolda on TMO who found how to enable keyboard backlight from command line, it is now possible to create cover actions for toggling it on and off. Instructions here.

edit flag offensive delete publish link more
4

answered 2019-12-30 04:27:54 +0200

mosen gravatar image

ESC key on HW Keyboard wakes up the screen

If the screen times out and goes blank while the keyboard is unfolded, press the ESC key to wake it back up.

edit flag offensive delete publish link more
3

answered 2020-01-22 15:04:44 +0200

Kabouik gravatar image

updated 2020-05-20 02:53:56 +0200

Hardware decoding of h.264 and h.265 (hevc) videos in native SFOS applications

[Update 2020-05-19] This has been merged into the port around 3.2.x and the manual cooking below is no longer required, just update SFOS.

Until it is merged in the SFOS port, here are the instructions to get hardware decoding working:

devel-su curl -L -o /etc/gst-droid/gstdroidcodec.conf https://raw.githubusercontent.com/mer-hybris/droid-config-sony-ganges-pie/master/sparse/etc/gst-droid/gstdroidcodec.conf

rm ~/.cache/gstreamer-1.0/registry.*

Source.

edit flag offensive delete publish link more
2

answered 2020-01-28 02:27:33 +0200

mosen gravatar image

updated 2020-01-28 02:33:34 +0200

Activate "off-mode-charge" eg. Standby/Powered Off Charge via fastboot

Fire up your fastboot setup on your computer. Shutdown the Pro¹, then hold the volume-down button while plugin in the usb cabel.

fastboot oem off-mode-charge "1"

Check that the output says

OKAY [  0.003s]
finished. total time: 0.003s

Plug out the cable and the Pro¹ might (re)boot.
To try you can then shut it down again and plug in the cabel.
The boot logo should show for 12 seconds and then go to blank screen with white led indicating the charging process. For me it was not possible to then boot with holding the power button only. It vibrated after 5 seconds but did not boot.
A hard restart with volume down + power button for more than 8 seconds and then option "restart" in fastboot did the trick. Maybe there is even a way to fix that behaviour, but it works ok if you know the work around. Or simply pull the usb cable and then start up.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
26 followers

Stats

Asked: 2019-12-29 21:20:33 +0200

Seen: 28,394 times

Last updated: Sep 16 '20