[C2] Predictive Text Input for Sailfish 5.0.0.21 missing?

Jost for refernce, on SFOS 4.4 aarch64, the resulting packages are:

-rw-r--r--    1 root     root          9037 Nov 14 00:15 feature-xt9-0.0.7-1.3.2.jolla.aarch64.rpm
-rw-r--r--    1 root     root       2321953 Nov 14 00:06 jolla-handwriting-0.1.5-1.3.2.jolla.aarch64.rpm
-rw-r--r--    1 nemo     nemo         40093 Nov 13 23:57 jolla-keyboard-settings-xt9-0.8.28.3-1.7.2.jolla.aarch64.rpm
-rw-r--r--    1 root     root         90161 Nov 14 00:07 jolla-xt9-0.5.19-1.5.2.jolla.aarch64.rpm
-rw-r--r--    1 root     root         81857 Nov 14 00:07 jolla-xt9-cp-0.2.12-1.3.2.jolla.aarch64.rpm
-rw-r--r--    1 root     root          8317 Nov 14 00:15 patterns-sailfish-xt9-0.0.7-1.3.2.jolla.aarch64.rpm
nemo@PGXperiiia10:~/Downloads/xt9-rpms $

Though I would never do this myself, a friend told me that simply adding the repos of a previous release to a 5.0 device, like

ssu ar xt9-4.5  https://store-repository.jolla.com/features/4.5.0.25/xt9/aarch64/
zypper ref
zupper up feature-xt9

may install predictive text for 5.0 devices.
The friend also sais that it actually does work.

6 Likes

Really loving the CYOA (cover your own arse - friend :wink: )

1 Like

ssh tells me:

[defaultuser@JollaC2 ~]$ pkcon search name xt9
Searching by name                                                                                                                                                                                                                                                              
Starting                                                                                                                                                                                                                                                                      
Finished                                                                                                                                                                                                                                                                      
Installed   	feature-xt9-0.1.1-1.3.1.jolla.aarch64 (installed)           	Feature for supporting xt9
Available   	jolla-keyboard-settings-xt9-0.9.10-1.13.1.jolla.aarch64 (jolla)	Settings snippet for xt9 specific configuration
[defaultuser@JollaC2 ~]$ pkcon search name handwriting
Searching by name                                                                                                                                                                                                                                                              
Starting                                                                                                                                                                                                                                                                      
Finished                                                                                                                                                                                                                                                                      
[defaultuser@JollaC2 ~]$
[defaultuser@JollaC2 ~]$ devel-su pkcon install jolla-keyboard-settings-xt9
Password: 
Resolving                                                                                                                                                                                                                                                                      
Testing changes                                                                                                                                                                                                                                                                
Finished                                                                                                                                                                      [                                                                                      ] (0%)  
The following packages have to be installed:
 jolla-keyboard-settings-xt9-0.9.10-1.13.1.jolla.aarch64	Settings snippet for xt9 specific configuration
Proceed with changes? [N/y] y

                                                                                                                                                                                                                                                                              
Testing changes                                                                                                                                                                                                                                                               
Installing                                                                                                                                                                                                                                                                     
Starting                                                                                                                                                                                                                                                                       
Installing packages                                                                                                                                                                                                                                                           
Downloading packages                                                                                                                                                                                                                                                          
Installing packages                                                                                                                                                                                                                                                           
Finished                                                                                                                                                                                                                                                                      
[defaultuser@JollaC2 ~]$ 

Your friend did a typical typo! zypper with an u
 :wink:

zupper up feature-xt9

Can someone upload a working german Presage-Keyboard?

I did try to follow the instruction of sailfishos-presage-predictor/utils/keyboard/README.md at master · sailfish-keyboard/sailfishos-presage-predictor · GitHub

but end up here:

[root@JollaC2 layouts]# ls
bg.qml                    el.qml                    gu.qml                    layout_tt.conf            lt.qml                    pa.qml                    sl.qml
bn.qml                    emojis.qml                hi.qml                    layouts_emojis.conf       lt_std.qml                package-keyboard.sh       sv.qml
cs.qml                    en.qml                    hu.qml                    layouts_en.conf           lv.qml                    pl.qml                    ta.qml
da.qml                    es.qml                    it.qml                    layouts_indian.conf       ml.qml                    pt.qml                    te.qml
de.qml                    et.qml                    keyboard-presage-XX.spec  layouts_kk.conf           mr.qml                    ro.qml                    tr.qml
deutsch-presage.conf      fi.qml                    kk.qml                    layouts_ru.conf           nl.qml                    ru.qml                    tt.qml
deutsch-presage.qml       fr.qml                    kn.qml                    layouts_western.conf      no.qml                    sk.qml                    uk.qml
[root@JollaC2 layouts]# sh package-keyboard.sh Deutsch de_DE 1.0.0 deutsch-presage.qml deutsch-presage.conf
tar: can't execute 'xz': No such file or directory

Or as an alternative, make xt9 for c2 great again

Thank you all for your help regarding predictive text input!

So I did run the following on my daily driver Sony Xperia 10 III:

mkdir xt9-rpms; for i in $(pkcon -p search name xt9 | tr -s ' ' | cut -s -f 2 -d ' ' | grep '\.jolla\.' | rev | cut -s -f 3- -d '-' | rev | tr '\n' ' '); do pkcon download xt9-rpms $i; sleep 1; done

My plan was to copy the resulting rpm packages to the C2 and install there.

However, after rebooting my Xperia 10 III it the keyboard is completely gone. It should not have been affected / deleted by above command?

I’ve tried to restart the keyboard from within the “Utils”, and I’ve tried to (re)install the rpm packages resulting from the command, rebooting etc.

The keyboard is gone, and this is my daily driver


Any idea on how to get my keyboard back?

Your help is very much appreciated!!

Try doing devel-su pkcon install xz and then try again.

1 Like

As you suspect, unless you installed one or more of the files, that command can’t be related to your keyboard being gone.
Something else must be the reason.

Did you install or uninstall any other software?

What do the following commands say?

systemctl --user status maliit-server
systemctl --user status xt9-server.service

But I guess in order to revert the installation, so something like:

devel-su
for pkg in  feature-xt9 jolla-keyboard-settings-xt9 jolla-xt9 jolla-xt9-cp  jolla-xt9-server patterns-sailfish-xt9
do
pkcon remove $pkg
done
pkcon install  feature-xt9
2 Likes

My humble input
 the above extracted from my X10III (SFOS 4.6.015), and manually copied and installed to to my X10V (SFOS 4.6.015) worked perfectly well. I now have perfectly working word prediction on my X10V. :boom: :smiley:

4 Likes

systemctl --user status maliit-server => green active OK
systemctl --user status xt9-server.service => green active OK

I then used your command to revert the installation, it removed the packages but then it says:

Package not found: feature-xt9
Command failed: This tool could not find any available package.

I then check the services:

systemctl --user status xt9-server.service
Unit xt9-server.service could not be found.

Your kind help is highly appreciated!

To be more precise:

$ systemctl --user status maliit-server
● maliit-server.service - The Maliit server
Loaded: loaded (/usr/lib/systemd/user/maliit-server.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2024-11-14 21:40:18 CET; 1min 45s ago
Main PID: 4935 (invoker)
CGroup: /user.slice/user-100000.slice/user@100000.service/maliit-server.service
└─4935 /usr/bin/invoker --type=qt5 /usr/bin/maliit-server

and

$ systemctl --user status xt9-server.service
● xt9-server.service - Jolla Xt9 integration server
Loaded: loaded (/usr/lib/systemd/user/xt9-server.service; disabled; vend>
Active: active (running) since Thu 2024-11-14 21:39:32 CET; 3min 18s ago
Main PID: 2886 (xt9-server)
CGroup: /user.slice/user-100000.slice/user@100000.service/xt9-server.ser>
└─2886 /usr/libexec/xt9/xt9-server

Okay and is your keyboard back or not?

No, the keyboard is gone and missing. I’ve rebooted, used the “Utils” to reset keyboard, it’s all not working


I’ve backed up most of the device (Signal seems difficult or not possible to backup, the Android App backup function doesn’t work), and as a next step I’d try to re-flash Sailfish in the hope to get my daily driver back.

Or do you have any other ideas how I could try to fix the keyboard?

Thank you very much!!

Then i got this:

[defaultuser@JollaC2 layouts]$ sh package-keyboard.sh Deutsch de_DE 0.1.0 deutsch-presage.qml deutsch-presage.conf
package-keyboard.sh: line 53: rpmbuild: not found
[defaultuser@JollaC2 layouts]$ devel-su pkcon install rpmbuild
Password:
Auflösen [ ] (0%) Paket nicht gefunden: rpmbuild
Paket nicht gefunden: rpmbuild
AusfĂŒhrung des Befehls fehlgeschlagen: This tool could not find any available package.

The package name may be rpm-build.

1 Like

After Building it does not work:

[defaultuser@JollaC2 layouts]$ ls
RPMS deutsch-presage.qml fr.qml kn.qml layouts_western.conf no.qml sk.qml uk.qml
bg.qml el.qml gu.qml layout_tt.conf lt.qml pa.qml sl.qml
bn.qml emojis.qml hi.qml layouts_emojis.conf lt_std.qml package-keyboard.sh sv.qml
cs.qml en.qml hu.qml layouts_en.conf lv.qml pl.qml ta.qml
da.qml es.qml it.qml layouts_indian.conf ml.qml pt.qml te.qml
de.qml et.qml keyboard-presage-XX.spec layouts_kk.conf mr.qml ro.qml tr.qml
deutsch-presage.conf fi.qml kk.qml layouts_ru.conf nl.qml ru.qml tt.qml
[defaultuser@JollaC2 layouts]$ cat deutsch-presage.conf
[deutsch-presage.qml]
name=Deutsch (Presage)
languageCode=de_DE
handler=PresageInputHandler.qml

Keyboard with presage was selected and Keyboard-Service restarted. Keyboard is shown but no Presage working.

Have you installed “stock emoji keyboard with colors” patch?

2 Likes

is this:
https://openrepos.net/content/sailfishkeyboard/german-keyboard-layout-presage-based-text-prediction
not working for you?
I tried it on 4.6 (32 bit) and it worked

I take the newer build from:

and this does not work (keyboard yes, presage no)

1 Like