Manually trigger device lock?

Is there a way to manually lock the device?

Background: I like to keep the phone unlocked for a long time (60 min, the max value) as it lays on the table and nothing happens. But then when I say, go out, I’d like to lock it.

A workaround would be to set ‘Automatic locking’ to ‘No delay’ then. Thoughts?

1 Like

In /usr/share/applications create a file ‘lockdevice.desktop’ with the content below:

[Desktop Entry]
Type=Application
X-Nemo-Application-Type=no-invoker
Name=Lock Device
Icon=lockdevice
Exec=sh -c “dbus-send --system --type=method_call --dest=org.nemomobile.devicelock /devicelock org.nemomobile.lipstick.devicelock.setState int32:1 & dbus-send --system --dest=com.nokia.mce --print-reply --type=“method_call” /com/nokia/mce/request com.nokia.mce.request.req_display_state_off”

3 Likes

Or, more simple with built-in functionality:
double press the power button (when display is on).

4 Likes

what an elegant simple way. Thanks for telling and :heart: to Jolla for implementing this!