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

Gestures stop working after trackpad re-connection #28

Closed
hw0603 opened this issue Aug 7, 2022 · 7 comments · Fixed by #49
Closed

Gestures stop working after trackpad re-connection #28

hw0603 opened this issue Aug 7, 2022 · 7 comments · Fixed by #49
Labels
bug Something isn't working

Comments

@hw0603
Copy link

hw0603 commented Aug 7, 2022

I'm using a Mac Mini M1, Monterey 12.5.

jitouch automatically launches successfully when I restart my Mac, but when the Magic Trackpad is disconnected and reconnected, the gestures set on jitouch do not work.

The only way to get the gestures to work again is to close the program and restart jitouch in preferences.
Is this an intended feature? If not, what can I do to fix this bug?

I've tried v2.79, v2.80, and v2.81, but no good

@aaronkollasch
Copy link
Collaborator

Yeah I've seen this issue as well recently. Jitouch should detect when the Magic Trackpad is attached/detached but perhaps the internal identifiers have changed.

Specifically, this code should add the listener:
https://github.com/aaronkollasch/jitouch/blob/9a8d9009a639254e447d6727a4785453eb12d362/jitouch/Jitouch/Gesture.m#L3006-L3019

I'll see about fixing it when I get the chance.

@aaronkollasch
Copy link
Collaborator

aaronkollasch commented Aug 9, 2022

In the mean time, you can also use the terminal command killall -HUP Jitouch to send a signal to Jitouch to reload its devices without quitting.
Or, killall Jitouch will quit Jitouch and then the LaunchAgent will restart it.

@aaronkollasch aaronkollasch added the bug Something isn't working label Oct 1, 2022
@shp7724
Copy link

shp7724 commented Oct 1, 2022

I've been experiencing this issue recently as well. The thing is, my magic trackpad is always connected to the mac via cable, and I saw it in the middle of active usage of the trackpad. So I don't think this happens only on reconnections.

@aaronkollasch
Copy link
Collaborator

Hmm, that's weird. What happens if you run killall -HUP Jitouch, does it start working again? Also, can you check the log at ~/Library/Logs/com.jitouch.Jitouch.log if that happens?

@shp7724
Copy link

shp7724 commented Oct 1, 2022

Yes I use the command killall -HUP Jitouch whenever it hangs, and it works quite well.

$ cat ~/Library/Logs/com.jitouch.Jitouch.log
2022-10-01 01:54:15.360 Jitouch[5098:34575971] Received SIGHUP.
2022-10-01 08:50:20.791 Jitouch[5098:35014413] Received SIGHUP.
2022-10-01 17:54:09.330 Jitouch[530:486650] Received SIGHUP.
2022-10-01 18:18:05.873 Jitouch[530:532459] Received SIGHUP.
2022-10-01 21:20:21.236 Jitouch[530:920796] Received SIGHUP.

@aaronkollasch
Copy link
Collaborator

In the Jitouch preferences > About, can you set the logging mode to "Info"? Then the log will report which devices it is reloading. If you can, send an example of reloading after Jitouch has stopped recognizing the trackpad.

@aaronkollasch
Copy link
Collaborator

aaronkollasch commented Nov 12, 2022

Hey, I've made a pull request that should fix this issue. Try out the debug build below and let me know how it goes.

Install-Jitouch.zip (updated 2022-11-13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants