Skip to content

Commit

Permalink
Merge branch 'jb43914_fpwakeup_disables_leds' into 'master'
Browse files Browse the repository at this point in the history
De-activate  sms/email led patterns on fingerprint wake-up

See merge request mer-core/mce!120
  • Loading branch information
spiiroin committed Jun 12, 2019
2 parents f3d5ba9 + 1df7179 commit c3a54b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/fingerprint.c
Expand Up @@ -25,6 +25,7 @@
#include "../mce-log.h"
#include "../mce-dbus.h"
#include "../mce-setting.h"
#include "../evdev.h"

#include <linux/input.h>

Expand Down Expand Up @@ -2651,6 +2652,20 @@ fpwakeup_trigger(void)

/* Exit from lockscreen */
mce_datapipe_request_tklock(TKLOCK_REQUEST_OFF);

/* Deactivate type=6 led patterns (e.g. sms/email notifications)
* by signaling "true user activity" via synthetized gesture
* input event. (The event type ought not matter, but using
* double tap event is somewhat logical and does not cause side
* effects in the few places where the event type is actually
* checked.)
*/
const struct input_event ev = {
.type = EV_MSC,
.code = MSC_GESTURE,
.value = GESTURE_DOUBLETAP | GESTURE_SYNTHESIZED,
};
datapipe_exec_full(&user_activity_event_pipe, &ev);
}
}

Expand Down

0 comments on commit c3a54b3

Please sign in to comment.