Hello fellow Linux bros,
I saw this thread today Sailfish OS 3.0.0 released to early adopters today
(
https://www.oesf.org/forum/index.php?showtopic=35592&st=0&#entry290497)
I have to keep type this up quick since it is literally 2:00 AM for me and I am recovering from recent sickness with work tomorrow- so I apologize for the formatting.
Also thanks to Depscribe and Yoram for the thread, it also had some useful information and links for me to get this done.
I was on SFOS 2.1.3.7 initially, but flashed the SFOS 2.1.4.14 build since I wanted to triple boot.
So these are the steps I performed from a fresh install on that build.
Step 0)Enable early access to SFOS releases at
https://account.jolla.com/(Requires Jolla account; Not sure if required but I enabled it)
Step 1)I enabled SSH under developer options.
I used SSH for this next task.
ssh-keygen -f "/home/meganerd/.ssh/known_hosts" -R 192.168.2.15
ssh nemo@192.168.2.15
Step 2)devel-su
vi /usr/share/ssu/features.d/adaptation-community-common.ini
(Press 'i' to enter insert mode, modify text, ESC, then enter :wq)
change this line:
adaptation-community-common = http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_%(arch)/
to:
adaptation-community-common = http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_%(release)/
If do not change from devel: (state: unstable) to testing: (state: testing) you get trouble with your sensorfw (sensors not working, only a software problem). Before next step you can verify that the change is done with:
ssu lr
You must go to 2.2.0.29 before going to 3.x
So start the update to 2.2.0.29:
Step 3)ssu re 2.2.0.29
ssu lr
pkcon refresh
version --dup
sync
reboot
(if you get "Fatal error: File ... not found" on you made a typo on the adaptations file)
megaman@machine:~$ ssh nemo@192.168.2.15
nemo@192.168.2.15's password:
Last login: Fri Nov 2 00:59:21 2018 from 192.168.2.4
NOTICE: Env value ignored HYBRIS_LD_LIBRARY_PATH=/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib
,---
| SailfishOS 2.1.4.14 (Lapuanjoki)
'---
[nemo@Sailfish ~]$ devel-su
Password:
[root@Sailfish nemo]# vi /usr/share/ssu/features.d/adaptation-community-common.ini
[root@Sailfish nemo]# ssu lr
[D] unknown:0 - "No carrier"
Enabled repositories (global):
- adaptation-community ... http://repo.merproject.org/obs/nemo:/testing:/hw:/planet:/geminipda/sailfishos_2.2.0.29/
- adaptation-community-common ... http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_2.2.0.29/
- apps ... https://releases.jolla.com/jolla-apps/2.2.0.29/armv7hl/
- hotfixes ... https://releases.jolla.com/releases/2.2.0.29/hotfixes/armv7hl/
- jolla ... https://releases.jolla.com/releases/2.2.0.29/jolla/armv7hl/
Enabled repositories (user):
- store ... https://store-repository.jolla.com/geminipda/armv7hl/?version=2.2.0.29
Disabled repositories (global, might be overridden by user config):
Disabled repositories (user):
- home ... https://download.jollamobile.com/home:/honeybadger/latest_armv7hl/
[root@Sailfish nemo]# ssu re 2.2.0.29
Changing release from 2.2.0.29 to 2.2.0.29
Your device is now in release mode!
[D] unknown:0 - "No carrier"
[root@Sailfish nemo]# pkcon refresh
Refreshing cache
Starting
Refreshing software list
Finished
[root@Sailfish nemo]# version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
Finished transaction (status=1, runtime=321682ms)
UPGRADING SYSTEM
Finished transaction (status=1, runtime=373457ms)
FINISHING
After reboot, and attempting to boot into SFOS the device looks like it is in a powered off state.
But I can hear the USB sound from SFOS when I plug it in... so I SSH in to the device. This works.
(Eventually the screen started working so you can SSH or wait)
megaman@machine:~$ ssh nemo@192.168.2.15
nemo@192.168.2.15's password:
Last login: Fri Nov 2 01:37:50 2018
,---
| Sailfish OS 2.2.0.29 (Mouhijoki)
'---
[nemo@Sailfish ~]$ devel-su
Password:
[root@Sailfish nemo]#
Step 4)Modify these 2 files to the following using vi
/usr/share/ssu/features.d/adaptation-community-common.ini[adaptation-community-common]
repos = adaptation-community-common
pattern = Feature adaptation community common
description = Common packages needed by community's HW adaptation
[repositories-release]
adaptation-community-common = http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_%(arch)/
/usr/share/ssu/features.d/adaptation-community.ini[adaptation-community]
repos = adaptation-community
pattern = Feature community adaptation
description = Enable ssu for community ports
[repositories]
adaptation-community = http://repo.merproject.org/obs/nemo:/devel:/hw:/planet:/geminipda/sailfish_latest_%(arch)/
Step 5)ssh nemo@192.168.2.15
ssu re 3.0.0.5
pkcon refresh
version --dup
sync
reboot
Finished! What now?Patch orientation file: /usr/lib/qt5/qml/Sailfish/Silica/Page.qml
(You can use nano or vi; Install nano via "pkcon install nano")
$ devel-su
# cd /usr/lib/qt5/qml/Sailfish/Silica/
# cp Page.qml Page.orig.qml
# nano Page.qml
Modify this part:
property int _allowedOrientations: {
var allowed = allowedOrientations & __silica_applicationwindow_instance.allowedOrientations
if (!allowed) {
// No common supported orientations, let the page decide
allowed = allowedOrientations
}
return allowed
}
To this:
property int _allowedOrientations: {
var allowed = allowedOrientations & __silica_applicationwindow_instance.allowedOrientations
if (!allowed) {
// No common supported orientations, let the page decide
allowed = Orientation.LandscapeInverted
}
return Orientation.LandscapeInverted
}
Terminal with orientation patched:
https://gitlab.com/Meganerd.eth/Sailfish-De...0-1.armv7hl.rpmOther problems I notice (currently)* App drawer icons are too large and overlap after I patch orientation
* On/ESC key does not turn off display
* Wake from sleep is significantly slower than before (This is actually bothering me the most, sometimes its very slow to wake from sleep)
* USB tether not working
* WLAN0 hotspot not working (even on previous builds I could get it working with connmanctl from CLI)
Some screenshots[img]https://preview.ibb.co/nCsztL/Screenshot-20181102-001.png\" border=\"0\" class=\"linked-image\" /]
[img]https://preview.ibb.co/hzHM7f/Screenshot-20181102-004.png\" border=\"0\" class=\"linked-image\" /]
[img]https://preview.ibb.co/n3XztL/Screenshot-20181102-005.png\" border=\"0\" class=\"linked-image\" /]
[img]https://preview.ibb.co/fZ24Sf/Screenshot-20181102-006.png\" border=\"0\" class=\"linked-image\" /]
Sources:
OESF>Yoram
OESF>Depscribe
https://together.jolla.com/question/186471/...anet-computers/https://jolla.zendesk.com/hc/en-us/articles/201836347#2https://www.oesf.org/forum/index.php?showto...mp;#entry290497