maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

minimec 2016-09-11 22:13

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Lipstick freeze workaround

I do also encounter UI freezes from time to time (once a day seems accurate and NOT during calls). My workaround is the Powermenu2 app in combination with a launcher I created, which basically restarts the lipstick UI. So when the screen is 'on' I can simply 'long press' the power button and lipstick will restart.

Install Powermenu2 from from openrepos.net. 2.0.1.11 Taalojärvi users like me need version 1.0.7-1 (https://openrepos.net/sites/default/...-1.armv7hl.rpm)

I use the nano editor ... ;)
Code:

devel-su pkcon install nano
Create the launcher file
Code:

nano .local/share/applications/liprestart.desktop
Content of liprestart.desktop
Code:

[Desktop Entry]
Type=Application
Name=Run LipRestart
Icon=icon-launcher-component-gallery
Exec=/home/nemo/.local/scripts/liprestart.sh
Comment=Terminal application

Create the 'scripts' directory
Code:

mkdir .local/scripts
Create a file liprestart.sh
Code:

nano .local/scripts/liprestart.sh
Content of liprestart.sh
Code:

#!/bin/bash
systemctl --user restart lipstick

Make it liprestart.sh executable
Code:

chmod +x .local/scripts/liprestart.sh
In the Powermenu2 app, you can now bind 'event3' to the launcher you created and bind the 'long press (display on)' option to 'event3'.

m4r0v3r 2016-09-11 22:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1514897)
Lipstick freeze workaround

I do also encounter UI freezes from time to time (once a day seems accurate and NOT during calls). My workaround is the Powermenu2 app in combination with a launcher I created, which basically restarts the lipstick UI. So when the screen is 'on' I can simply 'long press' the power button and lipstick will restart.

Install Powermenu2 from from openrepos.net. 2.0.1.11 Taalojärvi users like me need version 1.0.7-1 (https://openrepos.net/sites/default/...-1.armv7hl.rpm)

I use the nano editor ... ;)
Code:

devel-su pkcon install nano
Create the launcher file
Code:

nano .local/share/applications/liprestart.desktop
Content of liprestart.desktop
Code:

[Desktop Entry]
Type=Application
Name=Run LipRestart
Icon=icon-launcher-component-gallery
Exec=/home/nemo/.local/scripts/liprestart.sh
Comment=Terminal application

Create the 'scripts' directory
Code:

mkdir .local/scripts
Create a file liprestart.sh
Code:

nano .local/scripts/liprestart.sh
Content of liprestart.sh
Code:

#!/bin/bash
systemctl --user restart lipstick

Make it liprestart.sh executable
Code:

chmod +x .local/scripts/liprestart.sh
In the Powermenu2 app, you can now bind 'event3' to the launcher you created and bind the 'long press (display on)' option to 'event3'.

isn't there a restart HS option in powermenu anyways?

minimec 2016-09-11 23:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by m4r0v3r (Post 1514900)
isn't there a restart HS option in powermenu anyways?

There seems to be an option, but it is bound to the 'reboot icon' of the Powermenu2 menu. I did not find a 'lipstick restart' option to bind to the power button.

Bundyo 2016-09-12 05:00

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Now that PowerMenu was mentioned, I don't recall UI freezing before installing it (I installed it several weeks ago)... Need to test.

mautz 2016-09-12 05:17

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@minimec

I'm using the same method as you since a few weeks...seems like we had the same idea :D ...forgot to write about it here, shame on me.
I just added the vibrate option to the restart lipstick event, so that you not accidently shut down your phone.
But sometimes even this method doesn't work anymore, but i can live with that.

mautz 2016-09-12 06:13

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Anyone had success on rooting sfdroid? I'm using Sailfish as my secondary rom with multiboot. Enabling Root in the developer options did not work and flashing supersu with twrp also doesn't give me root access in sfdroid? Any hints?

nh1402 2016-09-12 08:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1514907)
Anyone had success on rooting sfdroid? I'm using Sailfish as my secondary rom with multiboot. Enabling Root in the developer options did not work and flashing supersu with twrp also doesn't give me root access in sfdroid? Any hints?

Can you provide a logcat log when you try accessing a root-enabled app?, and when trying to enable root in the developer options?

I'll have a look into it but after I've done the other sfdroid thing I'm working on ;)

m4r0v3r 2016-09-12 09:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1514901)
There seems to be an option, but it is bound to the 'reboot icon' of the Powermenu2 menu. I did not find a 'lipstick restart' option to bind to the power button.

theres a home screen restart, seems to work well.

mautz 2016-09-12 09:28

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by nh1402 (Post 1514912)
Can you provide a logcat log when you try accessing a root-enabled app?, and when trying to enable root in the developer options?

I'll have a look into it but after I've done the other sfdroid thing I'm working on ;)

Here is the cat log after enabling root in developer options:
http://pasted.co/2226222d

And here after starting AdAway:
http://pasted.co/5d292d7f

Thank you.

nh1402 2016-09-12 10:24

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1514915)
Here is the cat log after enabling root in developer options:
http://pasted.co/2226222d

And here after starting AdAway:
http://pasted.co/5d292d7f

Thank you.

I think I know why it's not working, I believe we've moved sfdroid from "/system/" to "/usr/libexec/sfdroid/system/", If you can make a note of which files go where via the update-binary file in the SuperSU zip, and then find the appropriate folder under "/usr/libexec/sfdroid/" and move them there then it might work.

EDIT: I think this should be the case for the latest version of sfdroid with CM12.1 base


All times are GMT. The time now is 13:44.

vBulletin® Version 3.8.8