Skip to content

Temporarily stop authentication on VT switch or screen blank#47

Open
kitsunyan wants to merge 1 commit into
prikhi:masterfrom
kitsunyan:feature/stop-on-inactivity
Open

Temporarily stop authentication on VT switch or screen blank#47
kitsunyan wants to merge 1 commit into
prikhi:masterfrom
kitsunyan:feature/stop-on-inactivity

Conversation

@kitsunyan
Copy link
Copy Markdown

Hi!

This patch allows to cancel authentication process on VT switch (Ctrl+Alt+Fx) or DPMS screen blank (I have configured xset dpms 0 0 15 in display-setup script). It will be resumed after switching VT back or screen unblank.

This might be helpful for those who use fingerprint reader for authentication. Fingerprint reader is activated by pam module and it remains taken over until authentication process ends. This leads to 2 problems:

  1. If I switch VT and try to authenticate there, I won't be able to use fingerprint reader for this.
  2. Fingerprint reader's LED is glowing all this time, which is extremely annoying. Of course the reader is active all this time, so it consumes power as well when session is locked.

This feature is optional and should be configured via new stop-on-inactivity configuration option which is disabled by default.

Mini-Greeter will require 2 additional libs: X11 (which actually isn't implied by gtk+-3.0) and Xss (allows to monitor screen blanking).

@kitsunyan kitsunyan force-pushed the feature/stop-on-inactivity branch from 03dd1f0 to fefff78 Compare July 25, 2019 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant