Skip to content

Commit

Permalink
[settings] Fingerprint wakeups are disabled by default. JB#42135
Browse files Browse the repository at this point in the history
How well fingerprint wakeups work while device is allowed to suspend and
how much battery drain is induced from keeping the scanner active varies
from one device to another.

Make it so that fingerprint wakeups are disabled by default.

Device specific configuration files can be used to override this built-in
default when appropriate, and users can always opt in via execting from
command line:

- mcetool --set-fingerprint-wakeup-mode=proximity
    Fingerprint scanner is activated and used for waking up device when
    the scanner is not used for authentication purposes and proximity
    sensor is not covered.

- mcetool --set-fingerprint-wakeup-mode=always
    Fingerprint scanner is activated and used for waking up device when
    the scanner is not used for authentication purposes.

- mcetool --set-fingerprint-wakeup-mode=never
    Fingerprint scanner is not used for waking up device.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 18, 2018
1 parent c529743 commit 1fa8a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mce-setting.h
Expand Up @@ -47,7 +47,7 @@ typedef enum

/** When fingerprint wakeup is allowed */
# define MCE_SETTING_FPWAKEUP_MODE MCE_SETTING_FINGERPRINT_PATH "/mode"
# define MCE_DEFAULT_FPWAKEUP_MODE 2 // = FPWAKEUP_ENABLE_NO_PROXIMITY
# define MCE_DEFAULT_FPWAKEUP_MODE 0 // = FPWAKEUP_ENABLE_NEVER

/** Delay between policy change and activating fingerprint daemon [ms] */
# define MCE_SETTING_FPWAKEUP_ALLOW_DELAY MCE_SETTING_FINGERPRINT_PATH "/allow_delay"
Expand Down

0 comments on commit 1fa8a68

Please sign in to comment.