-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Can't type after resuming from suspend #101
Comments
I've the same issue, after suspend I cannot type my password anymore... |
same here |
Same issue here |
I would like to add that for me, the textbox types 3 dots for each character typed after waking from suspend. |
this is fixed. build from source... |
bump |
I'm sorry but why is this closed as completed? I'm still experiencing the issue on latest git for hyprland, hypridle and hyprlock. |
I assumed "this is fixed" and 3 likes meant this is fixed. Are you sure you're on latest git? no duplicate binaries? |
I can also confirm that I had this issue on the latest git this morning when I woke up to wake up my computer from sleep. It wouldn't take in any input, also if I remember correctly, the mouse cursor was also showing which isn't supposed to be showing. However, after this issue was closed, I looked around at other issues and ran across #76. In that issue it was mentioned that the crashing only occurs when running I think the "this is fixed" was referring to a side tangent of "the textbox types 3 dots for each character typed after waking from suspend" which isn't what it looks like the first post was talking about. |
I'm pretty sure he was replying to the person who pointed to another adjacent issue (typing three dots for each character). The original problem from suspending is still present here. |
Can you clarify what running "suspending by hypridle" means? The only way I was aware of running suspend without writing to system files is directly from systemd. |
So if I run On the other hand if I add a listener in hypridle to I also did a quick test earlier today running |
Yes. The three dots is fixed. The other problem I don't know. Never a good idea to add other issues in an issue. |
So I suspect, that hypridle is running multiple times for you guys. That way I was able to reproduce it (happened to myself by accident, because in nix you don't have to exec it since hypridle starts when That would cause hyprlock to be launched twice and one instance would receive the |
So, a simple solution would be running PS: I do not use the home-manager module/service. I just add |
You could try this patch and see if you are still able to repro. |
I've tried the patch and the issue persists. But oddly enough running
|
If your |
There is probably also something else going on. If you start it with |
Upon further investigation, spawning an identical child seems to be a perk of the way if I do before_sleep_cmd = hyprlock I don't see two processes with the same input when running
I can't replicate this. I can wait as long as I want, I cannot type if I resume from suspend. |
Non nvidia user here with the same problem. But other NixOs users have a similar problem with swaylock and swayidle. swaywm/swaylock#344
I searched NixOs options unstable and couldn't find it. Where is that service? |
The option is in the hm-module contained in this repo :) As described in #190 I ran into this issue. But it is good to check that there aren't multiple hyprlock instances running. Can lead to similar symptoms. |
That's really cool, how can I use it? Is it with a flake? |
Yup. You add |
happened again to me, but I don't see anything wrong in hyprlock when it happens. |
I am still facing this issue on the latest git |
patch.txt |
|
thats hyprland |
I applied the patch to the latest git of Hyprland and the issue still persists. |
I can confirm, I'm experiencing this issue on nixOS too. |
Same here. Applied to commit |
And are you guys sure that hyprlock has not been launched multiple times? |
Pretty sure, since it happens only sometimes. Manly when the laptop is on sleep, locked, and I unplug the monitor, before I wake the laptop up. |
Ok yeah that sounds like hyprlock loosing focus. Have not experienced that since hyprwm/Hyprland#5117 |
Here's some logs from Hyprland (latest git) after I replicated the issue again: Oddly enough it seems like hyprlock is spawning after resume even if I specify as the |
I also have this issue. Doing I am 100% sure that the issue is from hyprlock losing focus. When I focus kitty before suspending and then wake up, I am able to run commands in the still open terminal (I can see them in the bash history later). I am on the latest git. I use NixOS and nvidia. On my amd laptop I have none of these issues. |
Also have this. Launching hyprlock with
When hyprlock is triggered by timeout or launched directly, this doesn't happen. Any suggestions what to do or workarounds? |
Actually, just checked:
So I suspect it is a hypridle thing 🙃 |
Also seeing this issue although not consistently. Perhaps it's a race condition? |
I have the issue with swayidle + hyprlock, on a non-systemd setup (elogind). Quickly reproducible by power cycling my monitor in a lock state. Also, power cycling the monitor in an unlocked state changes the workspace, which I can't help but feel is related. Also breaks with waylock, and IIRC swaylock. |
I find it rather peculiar that there's no issue unlocking hyprlock if I lock the session manually, say, by set
And this issue is not present if I enter the password right after the locking timeout, but only after certain amount of time passed from this timeout (such behavior presents both on my laptop and desktop pc), this very same issue also appears when I use swaylock instead... |
I am having the same issue. Works fine after hibernation, not using suspend. |
Same issue. Ubuntu 24.04. Works fine after hibernate, not when using suspend. |
I did some more experimentation. When I have
and do a It seems to me like my issue is caused by not giving hyprlock time to launch before suspending. Any delay between the two fixes the issue. But my current issue is different than the one I reported back in april. Back then I just couldn't focus hyprlock to log back in after a suspend, everything else was fine. Now I get a black screen and my pc becomes completely unresponsive. The caps lock light doesn't work but audio that played before the suspend keeps playing. |
@SebastianStork can you try this patch for hyprIDLE? |
Is there an easy way to apply the patch on NixOS? |
Maybe kill your running instance of hypridle first as well. |
I get the same result result with the patch: a black screen after wake, all keybinds are unresponsive, caps lock light is unresponsive, audio keeps playing |
Ok and this? Please also report if you see hyprlock start up, before the system suspends and monitors go dark. |
|
Strangely, if I first lock the screen using There seems to be an issue with |
Thanks for testing @SebastianStork. I am a bit surprised that I cannot reproduce that. But it seem like going through dbus via
Obviously, since first lock is triggered by |
I'm using
hypridle
to triggerhyprlock
before suspending. After resuming, I can move my mouse and the clock updates, which signals thathypridle
is working fine, but keyboard input won't work in the password box.hypridle.conf
:lock.sh
:hyprland.log
:hyprlock_out.txt
The text was updated successfully, but these errors were encountered: