Patch: restore swipe to lock

Rating: 
5
Your rating: None Average: 5 (18 votes)

Starting with Sailfish OS 2.0, Jolla removed the swipe to lock functionality. This patch restores it, without dropping the new "PowerKey/Top menu".

A full swipe from the top will work as usual (the menu remains accessible).

The behaviour is configurable from Settings -> System -> Gestures.

Latest version works on SailfishOS 3.0.0+.

GitHub project page.

If you like my work, you can buy me a beer :)

 

 

Screenshots: 
Changelog: 

- [data] patch: Updated patch to match Sailfish OS 3.0.0.5 Lemmenjoki

Comments

shults's picture

Still working under 4.6.0.13. Why not fully implemented in OS

fingus's picture

Good Working under 4.4.0.68

mz_i_norge's picture

The patch doesn't work on Jolla C after update to 3.3.0.16

Jordi's picture

Strange, it worked for me.

What about removing / reinstalling?

PawelSpoon's picture

Can not unapply it. (3.0.0.8) Am i the only ?

After uninstalling all other patches, i was able to uninstall..

babba22's picture

Hi, what about enabling this feature also in the home screen when dragging down the top menu staeting from the middle of the screen? Tell me if I didn't explained it clearly :D

monkeyisland's picture

Hi on Jolla C with EA 3
0.0.5 not working. :(

PawelSpoon's picture

Love you man for that must have patch!

sfbsfb's picture

This by far the best patch (wonder why they removed it from the ui in the first place.)
Thanks for the prompt update.

Jordi's picture

Unfortunately, this patch is not working with the last update.

Can you take a look on it?

Thanks.

Jordi's picture

In fact it's working: as I use a mix of patches (former patches and new ones in the web catalog) managed by Patchmanager3, I have to apply them in a certain order to ensure all are working properly.

lkdhf's picture

Enabling this patch now makes the Gestures option in Settings inaccessible. Could you take a look and fix this?

Alex's picture

@eugenio Unfortunately this patch is not working with the latest 2.0.2.48 Aurajoki release (early access yet). :(

eugenio's picture

Fixed ;)

Jordi's picture

Excellent, Thanks!

Beer money is coming...

eugenio's picture

Received, thank you :)

naytsyrhc's picture

Thanks for updating the patch so I can use Alinas powermenu patch alongside. I had the idea, if this patch could even be integrated with this powermenu such that I get 2 threshholds. One closes active app up to say 20% and up to 40% locks device (Alinas patch has a button for closing active app). If no app is open, first threshold also locks device. What do you think?

alina's picture

Hi eugenio,

Currently your patch is conflicting with my patch quick settings on power menu. I looked into the code and it's just because of one line: 112th in your diff file. Can you please remove it manually to make it compatible with that patch?

Unfortunately I can't do this, because I'm editing that line in the patch.

eugenio's picture

Sorry for the late response, for some reason I haven't got an e-mail about this comment.

I'm looking at my diff and that is only a context line. I can't remove it as I don't generate my diffs manually but I will put the lockIndication declaration further up so that it won't get included.

(I guess I'll wait until the 2.0.1 EA is released, so soon™)

alina's picture

Ok, thanks!

And seems, by the way, if you are online while somebody's making a comment for you, you won't get notified. The same often happens to me, no emails for comments because I'm keeping OpenRepos window (tab) open. No problem after all.

eugenio's picture

In the end it was "my" fault, they went into the spam folder (don't know why, previously I received them normally in my inbox).

Anyway, latest 1.1.9.28-6 removes the conflict with your patch :)

DameCENO's picture

Hello guys, just kind of stumbled on the patch, and installed the latest one, but there is no setting for it in gestures, and it refuses to apply, how do I get it working, I love the idea of the patch and already find it quite useful, I am on Saimaa (2.0.0.10)

eugenio's picture

You probably have some other patches that conflict with mine.

Valker's picture

Not sure what, but something went wrong. After installing and applying the patch, I can't enter Settings ->System -> Gestures page anymore – and the patch doesn't work.

If I unapply the patch and restart lipstick, the Gestures page is accessible again. It does, however, still have settings for Swipe to lock. Unistalling the patch and reinstalling lipstick-jolla-home-qt5 don't restore the original Gestures page.

Before installing this patch, I had Faster Pulley Menus and Allow Apps rotation installed and applied. The same very combo works on my other Jolla. The only difference is that the working phone has English UI while the other one is set to Finnish.

Any suggestions how the revert the Settings -> System -> Gestures back to system default and/or how to make the patch work?

eugenio's picture

The Gesture page is provided by jolla-settings-system: unapply every patch and then try reinstalling that package.

ajalkane's picture

Thank you, this is excellent patch and makes using the phone much more enjoyable!

eugenio's picture

Thanks to you :)

MoritzJT's picture

I had multiple patches installed that modified the lock mechanism. After unapplying both simultaneously I lost all my status bar entries. All blank space now. Any idea where to start looking?

eugenio's picture

Disable *every* patch that modify the homescreen, then fire up a terminal and:

pkcon install lipstick-jolla-home-qt5

Then restart lipstick with

systemctl --user restart lipstick.service

MoritzJT's picture

Got it fixed somehow, but thanks for that description. Might come in handy some other day as I imagine I'll run into similar issues out of carelessness.

Really nice would be a proper visual hint on what the threshold actually means. Maybe a grey overlay during configuration could help out?

Pages