prashantgupta24 / automatic-mouse-mover

a minimalistic go library/app to keep your mac active and alive
MIT License
306 stars 34 forks source link

When frozen, will prevent keyboard input #22

Open jorisw opened 3 years ago

jorisw commented 3 years ago

Today I clicked the AMM menu icon and it beachballed on me.

Side effect of this was that my Mac would no longer accept keyboard input, while mouse clicks were accepted.

Going into the Activity Monitor and hitting Force Quit on AMM, made keyboard input work again.

macOS 11.2.3 2016 MacBook Pro Apple wireless keyboard Apple wireless trackpad BInary version downloaded from GitHub today (no version specified in app's Get Info)

prashantgupta24 commented 3 years ago

Hmm. That's weird. I've been using this for over a year now, never faced that issue. I'm on mac OS 10.15.

Also AMM should not have any effect on keyboard input at all. It's only concerned with mouse movements.

A console log would be really helpful if you face this issue again.

hsiraaH commented 2 years ago

Same thing happened to me today. I was testing out whether AMM was working as intended after installing it today. I have set my Screen to turn off after 2 Mins of inactivity. So I performed two cases to check whether AMM is working or not.

Case 1 - Turned AMM On and was idle. After 2 mins, the screen did not turn off. Case 2 - Turned AMM Off and was idle. After 2 mins, the screen did turn off. I had to use my fingerprint sensor to unlock my Macbook and resume my work.

So after Case 2, I was unable to use my keyboard. I tried to increase my screen brightness by pressing F1 but I was not able to do that. Turning AMM Off fixed it and my keyboard input was being recognised, then turning AMM On once again did not interfere with keyboard input (i.e. it was working as intended).

This is the setting which turns my screen off after 2 mins.

Screenshot 2022-04-12 at 1 34 22 PM

macOS 12.3.1 2020 MacBook Air M1 Apple in-built keyboard Apple in-built trackpad Lenovo 600 Bluetooh 5.0 Mouse Automatic-mouse-mover app v1.1.0 downloaded today

BTW, this is a great piece of software, thanks for developing it and continuing to provide support for it. You are awesome !

prashantgupta24 commented 2 years ago

Thanks for the kind words @hsiraaH! And also for the great information... It's so hard to debug such random errors, that's why I haven't been able to look into it. I can't imagine why AMM would interfere with the keyboard.

PRs for such fixes are always welcome if you have any idea what is causing it :)