Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Meganerd

Pages: [1]
1
Gemini PDA - Sailfish OS / ESC button to turn off display
« on: November 03, 2018, 01:32:02 pm »
Hello guys,

Does anyone know how to configure the Gemini PDA to turn off the display when I press the Escape button on 2.1.4.14? From my 2.1.3.7 build this was the case and I would prefer this!

Thanks,

2
Gemini PDA - Sailfish OS / Getting to SFOS 3.x on Gemini PDA
« on: November 02, 2018, 02:16:36 am »
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.
Code: [Select]
ssh-keygen -f "/home/meganerd/.ssh/known_hosts" -R 192.168.2.15
ssh nemo@192.168.2.15


Step 2)

Code: [Select]
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:
Code: [Select]
adaptation-community-common = http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_%(arch)/
to:
Code: [Select]
adaptation-community-common = http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_%(release)/

Quote
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:
Code: [Select]
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)

Code: [Select]
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)


Code: [Select]
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)

Code: [Select]
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

Code: [Select]
[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

Code: [Select]
[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)

Code: [Select]
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")

Code: [Select]
$ devel-su
    # cd /usr/lib/qt5/qml/Sailfish/Silica/
    # cp Page.qml Page.orig.qml
    # nano Page.qml

Modify this part:
Code: [Select]
    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:
Code: [Select]
    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.rpm

Other 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#2
https://www.oesf.org/forum/index.php?showto...mp;#entry290497

3
Gemini PDA - Sailfish OS / SFOS Whats working / What isn't
« on: June 17, 2018, 01:22:47 pm »
I have been testing SFOS 2.1.3.7 on my Gemini PDA for a little over a week now as my main OS.

I put my notes on my gitlab https://gitlab.com/Meganerd.eth/Sailfish-Development

Whats working:
* Audio
* Multi touch
* 4G Data
* SMS/MMS
* Receiving calls (To initiate calls you have to switch to 3g mode)
* Bluetooth (Pairing with headset works)
* WiFi
* USB tether
* USB transfer
* SDK working for development
* Front camera
* Notification LEDs (can be modified too but only from config file directly /etc/mce/20hybris-led.ini) Be carefull!
* The keyboard works fine

Whats not working:
* WiFi tether
* I heard GPS isnt working, I have not tested it
* Caps lock LED - Caps lock itself is working but the LED is always on
* Silver button does nothing - I have not checked if its not recognized in XEV, it simply just may not be mapped to any key

What I recommend doing if you flash SFOS:
* Lock the screen orientation otherwise the screen will rotate on you constantly during usage. The fix below worked for everything except Kodi and the native Terminal
* To fix the terminal rotation I just modified ThumbTerm source and compiled an RPM

Lock screen orientation
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']i) Backup Page.qml file
    $ devel-su
    # cd /usr/lib/qt5/qml/Sailfish/Silica/Page.qml
    # cp Page.qml Page.orig.qml
    # nano Page.qml

ii) Modify Page.qml (line 115)
    Original line: return Orientation.All
    Updated line: return Orientation.LandscapeInverted

    Other views: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted

iii) Reboot phone to apply changes
[/div]

Pages: [1]