answered
2019-04-18 21:03:06 +0200
Manual device lock using the power key seems to work when modifying
/usr/share/jolla-settings/pages/devicelock/devicelock.qml.
The value "-1" for "Automatic device lock not in use" has to be set to "-2".
EDIT: Same as the other work around - it's limited to 254 minutes before the device gets locked automatically.
For that change
MenuItem {
//% "Not in use"
text: qsTrId("settings_devicelock-me-off")
visible: deviceLockSettings.maximumAutomaticLocking === -1
onClicked: lockingCombobox.setAutomaticLocking(-1)
}
to
MenuItem {
//% "Not in use"
text: qsTrId("settings_devicelock-me-off")
visible: deviceLockSettings.maximumAutomaticLocking === -1
onClicked: lockingCombobox.setAutomaticLocking(-2)
}
and
function updateIndex(value) {
if (value === -1) {
return 0
to
function updateIndex(value) {
if (value === -2) {
return 0
and restart the device.
I didn't check yet if the device gets locked automatically after a certain time. Seems to work on Jolla C with SF3.0.2.8.
Because the vibration indicating a power key double press is quite short and weak I also did:
mcetool --set-display-on-double-powerkey-press-actions=tklock,devlock
[strike]
mcetool --set-blank-from-lockscreen-timeout=5
This way a power key double press shows the lock screen for 5 seconds before blanking the display.
[/strike]
This way a power key double press shows the lock screen and another single power key press blanks the screen.
should also lock device when using a swipe from the top on the home screen, considering it shows a padlock icon on the gesture.
r0kk3rz ( 2014-12-21 18:46:49 +0200 )editAgreed on both
simo ( 2014-12-21 19:09:06 +0200 )editIndeed. I only lock device when I leave it somewhere (ie. the dressing room - this step could be automated easily with a smart watch..) so it is annoying to need to use the code along the day when just picking it out from my pocket.
flux ( 2015-02-26 18:09:39 +0200 )editany help on this one? alternatively, does anybody know where the timeout value is stored? I guess setting a high-enough value (e.g. 1 day, 1 month or 1 year..) for the timeout would effectively provide this feature.
reinob ( 2015-09-25 14:26:34 +0200 )editThis is still present in 3.0.0.8. As the fingerprint sensor is not yet implemented in XA2, it would be great if this bug would be resolved.
speactra ( 2018-12-08 23:36:06 +0200 )edit