-
Notifications
You must be signed in to change notification settings - Fork 403
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 do unlock without passphrase ! #311
Comments
I can’t reproduce this issue. It works as expected for me. Can you please:
|
HI, I found this messages in journalctl
I'm running i3lock as standalone application, I'm not using i3 in total? I was quit sure I can reproduce it at once, but at the moment I can not reproduce. I am surprised that i3lock just clears the screen lock when it runs into a problem. below the debug output, maybe it show some details. Feb 24 21:13:25 Latitude i3lock[42823]: [i3lock-debug] device = 3 |
That error means i3lock isn't able to, well, lock, which it tries a thousand times or so if I remember correctly. There's really no alternative to just giving up at this point—making it look like it's locked when it's not wouldn't be a good idea for obvious reasons. Is it possible you had a context menu of some sort open when you locked the screen? That's the most common issue that prevents the grab from succeeding. If you absolutely want to protect against this case, you can wrap i3lock such that a non-zero exit code is followed with an immediate shutdown (or at least logout). |
I do not think so In fact, I am not very enthusiastic when my laptop is suddenly openly accessible in case of error [addition] |
When i3lock prints You can provoke this state by running There are 2 pieces to the puzzle to integrate i3lock into your environment and prevent suspending without a properly locked screen:
It’s point 2 that’s the problem in your case. I was originally going to write that you need to change My recommendation remains to use But, unfortunately, You’d need to change
No.
I’d recommend starting it automatically. I don’t know which desktop environment you use, so I can’t link to more specific instructions. Just start it like you’d start any other program automatically.
No, the password buffer in your logs actually had different contents:
vs.
Note that the first buffer has an unprintable character as the first byte. I don’t know why you only run into this problem when the unlock indicator is disabled. I can reproduce it with or without the unlock indicator when using pinentry to enforce that i3lock can’t grab the screen. |
thanks again for your very helpful informations :-) I had already read about this on the Internet and my experience so far also confirms this. |
Yeah, this is why I recommend |
Ok, you are right, I should switch to xss-lock. After I wanted to set up i3lock myself now, I thought systemd is more up to date and so I tried it like this |
looks like starting over xss-lock is much faster and more secure. i3lock used as systemd service lockscreen was set after wakeup 👎 |
after some days using i3lock with xss-lock I can confirm i3lock lock screen faster and before suspend. But unfortunately, my original problem is not solved. Every now and then i3lock cannot grab pointer/keyboard and my laptop is not locked :-( |
You'll need to figure out what is holding the grab when i3lock fails to grab. So the question is what programs are running, and especially which ones are the active / focused ones at that point in time. |
Thanks for the hint, that gives me an idea |
You can use |
xdotool I did not know until now I think I now know the cause, but unfortunately I have too little experience how to work around this. Thanks for the tip with xdotool, this could possibly be the solution. |
Ah, you could have mentioned VMware to begin with — yes, it is known to grab input. I don’t know what other VMware users do as workaround, if any. You could try asking on the i3-discuss mailing list, too. |
Minor comment: that is indeed the case with i3lock, xtrlock, and slock. It is also the case with xscreensaver (when using However, xsecurelock, with option I know this is a closed issue, but I found this issue and its detailed and very helpful discussion (and the very easy to reproduce |
I'm submitting a…
[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)
Current Behavior
i3lock is set up as a systemd unit, which locks the screen before a suspend and only opens it again with a password.
This works smoothly when I put the system itself into standby mode.
The system is set to suspend to ram after 15 minutes of inactivity. If the computer is now woken up again from this case, the lock screen is visible, but disappears immediately when any key is pressed.
Problem is reproducable.
Problem seems to be option "--no-unlock-indicator ", if this disabled problem seems to be gone.
I did not use i3, I only installed i3lock from debian repository for bullseye
Environment
i3lock: version 2.13 © 2010 Michael Stapelberg
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
cat /etc/systemd/system/i3lock.service
[Unit]
Description=Lock the screen on resume from suspend
Before=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
User=dagobert
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3lock --no-unlock-indicator --ignore-empty-password --image=/screen.png --color=111286
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
The text was updated successfully, but these errors were encountered: