Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3lock not working with fingerprint reader when launched from TTY #1018

Closed
i3bot opened this issue May 6, 2013 · 6 comments
Closed

i3lock not working with fingerprint reader when launched from TTY #1018

i3bot opened this issue May 6, 2013 · 6 comments
Assignees
Labels

Comments

@i3bot
Copy link

i3bot commented May 6, 2013

[Originally reported by va@…]
(I'm use i3lock with systemd to run it before going to sleep.

$ grep ^Handle /etc/systemd/logind.conf 
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=ignore
HandleLidSwitch=ignore
$ cat /etc/systemd/system/suspend@…
[Unit]
Description=Starts i3lock at suspend time
Before=sleep.target

[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStartPre= 
ExecStart=/usr/bin/i3lock -d -c 272d2a -u

[Install]
WantedBy=sleep.target

When my laptop resume from sleep fingerprint reader not working. I must only enter password. This behavior also occurs when i3lock launched from TTY

Steps to reproduce:

  1. Switch to tty from X
  2. run i3lock by command $ DISPLAY=:0 /usr/bin/i3lock
  3. Return to X

I use fprintd 0.5.0 and libfprint from git

$ grep ^auth /etc/pam.d/system-auth 
auth      required    pam_env.so
auth      sufficient  pam_fprintd.so
auth      sufficient  pam_unix.so     try_first_pass likeauth nullok
auth      required    pam_deny.so

If combine i3lock with xautolock and run from tty DISPLAY=:0 /usr/bin/xautolock -locknow my fingerprint reader work fine.

@stapelberg
Copy link
Member

i3lock has no fingerprint-reader specific code, it just uses PAM. see also #852

@i3bot
Copy link
Author

i3bot commented May 7, 2013

[Original comment by va@…]

Replying to comment 1 @…:

i3lock has no fingerprint-reader specific code, it just uses PAM. see also #852

I tried to change /etc/pam.d/i3lock and left only

auth required pam_fprintd.so

But this doesn't solve the problem.

I also used slimlock in this case and it works fine.

@i3bot
Copy link
Author

i3bot commented Dec 1, 2013

[Original comment by TonyC]

Closing due to inactivity

@i3bot
Copy link
Author

i3bot commented Jan 10, 2014

[Original comment by moemoe <c+i3wm.org@…>]

I can confirm this behaviour, but it has to do nothing with where i3lock was launched from, at least neither starting from urxvt nor via i3 keybinding works.

This problem seems to be related to the switch pam-fprint -> pam-fprintd.

@i3bot
Copy link
Author

i3bot commented Jan 11, 2014

[Original comment by moemoe <c+i3wm.org@…>]

Okay, just digged a little bit further into the problem, and in fact it's thought to behave like this:

> grep -C1 allow /usr/share/polkit-1/actions/net.reactivated.fprint.device.policy
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
--
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
--
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>

No valid/active console kit session means no fingerprint, if I understand this correctly.

@Airblader
Copy link
Member

From what I can tell we don't believe this to be an i3lock issue. Given the inactivity and the fact that it belongs to the i3lock repository, I will close this issue. If there is reason to believe i3lock needs to be adapted for this, please open a new issue in the correct repository and link this issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants