jitouch icon indicating copy to clipboard operation
jitouch copied to clipboard

Trackpad can't detect any additional Jitouch functions

Open shtareer opened this issue 3 months ago • 7 comments

When installing the latest Jitouch update on my Sonoma, I was able to work only the magic mouse. My trackpad can't detect any additional Jitouch functions.

Everything ok with the installation.

I disabled all the original multi touch functions of the trackpad to avoid conflicts.

shtareer avatar Mar 27 '24 19:03 shtareer

Hi, a few questions:

  • What model trackpad is it?
  • Jitouch can output debug logs for device connections if you switch Logging Mode to "Info" in Jitouch Settings -> About.
image

Set Logging Mode to Info and open the Jitouch logs at ~/Library/Logs/com.jitouch.Jitouch.log. When you turn the trackpad off and then on, you should see some messages like this:

│2024-03-26 11:52:19.370 Jitouch[2625:18808] Device removed: 288230377818686893 family 129                                                                                                               │
│2024-03-26 11:52:29.800 Jitouch[2625:18808] Adding device: 288230377818686893, try 0                                                                                                                    │
│2024-03-26 11:52:29.802 Jitouch[2625:18808] Stop device 1 288230377818686893 family 129 (running)                                                                                                       │
│2024-03-26 11:52:29.803 Jitouch[2625:18808] Device 1 288230377818686893 family 129 is not running                                                                                                       │
│2024-03-26 11:52:29.806 Jitouch[2625:18808] Start device 1 288230377818686893, family 129 (not running)                                                                                                 │
│2024-03-26 11:52:29.853 Jitouch[2625:18808] Device 1 288230377818686893 family 129 is running

In this example, a Magic Trackpad with familyID = 129 was disconnected and reconnected. Perhaps your trackpad has a different familyID that Jitouch doesn't recognize. Could you try that and report what messages you see?

aaronkollasch avatar Mar 27 '24 21:03 aaronkollasch

Hi, a few questions:

  • What model trackpad is it?
  • Jitouch can output debug logs for device connections if you switch Logging Mode to "Info" in Jitouch Settings -> About.
image Set Logging Mode to Info and open the Jitouch logs at . When you turn the trackpad off and then on, you should see some messages like this:`~/Library/Logs/com.jitouch.Jitouch.log`
│2024-03-26 11:52:19.370 Jitouch[2625:18808] Device removed: 288230377818686893 family 129                                                                                                               │
│2024-03-26 11:52:29.800 Jitouch[2625:18808] Adding device: 288230377818686893, try 0                                                                                                                    │
│2024-03-26 11:52:29.802 Jitouch[2625:18808] Stop device 1 288230377818686893 family 129 (running)                                                                                                       │
│2024-03-26 11:52:29.803 Jitouch[2625:18808] Device 1 288230377818686893 family 129 is not running                                                                                                       │
│2024-03-26 11:52:29.806 Jitouch[2625:18808] Start device 1 288230377818686893, family 129 (not running)                                                                                                 │
│2024-03-26 11:52:29.853 Jitouch[2625:18808] Device 1 288230377818686893 family 129 is running

In this example, a Magic Trackpad with familyID = 129 was disconnected and reconnected. Perhaps your trackpad has a different familyID that Jitouch doesn't recognize. Could you try that and report what messages you see?

Sorry if I wasn't clear.

The trackpad I'm referring to is from my Macbook Air M1.

When installing Jitouch, in the settings I was able to try some new functions on my magic mouse, however the macbook trackpad did not recognize any new multitouch functions.

shtareer avatar Mar 27 '24 22:03 shtareer

Ok - could you still try the instructions I sent? I want to check the device familyID for your trackpad.

Slight modification to the instructions since you can't turn off the internal trackpad - instead we will restart Jitouch:

  1. set Jitouch's Logging Mode to Info (in the About pane)
  2. open ~/Library/Logs/com.jitouch.Jitouch.log in Console (you can use the Terminal command open ~/Library/Logs/com.jitouch.Jitouch.log for this)
  3. restart Jitouch (one of the easiest ways is with the Terminal command killall Jitouch).

You should see some lines appear in Console - for example, here's mine:

│2024-03-27 18:56:27.961 Jitouch[93172:7930451] Initializing.                                                                                                                                            │
│2024-03-27 18:56:27.962 Jitouch[93172:7930451] Start device 0 288230378143585336 family 129 (not running)                                                                                               │
│2024-03-27 18:56:27.962 Jitouch[93172:7930451] Device 0 288230378143585336 family 129 is running                                                                                                        │
│2024-03-27 18:56:27.962 Jitouch[93172:7930451] Start device 1 144115188075855923 family 105 (not running)                                                                                               │
│2024-03-27 18:56:27.962 Jitouch[93172:7930451] Device 1 144115188075855923 family 105 is running

family 105 is the built-in trackpad on my M1 MBP, family 129 is an external Magic Trackpad 2.

Let me know if you have any questions

aaronkollasch avatar Mar 27 '24 23:03 aaronkollasch

2024-03-27 20:17:07.306 Jitouch[8013:268938] Initializing.
2024-03-27 20:17:07.307 Jitouch[8013:268938] Start device 0 288230377282611446 family 112 (not running)
2024-03-27 20:17:07.722 Jitouch[8013:268938] Device 0 288230377282611446 family 112 is running
2024-03-27 20:17:07.722 Jitouch[8013:268938] Start device 1 144115188075855913 family 106 (not running)
2024-03-27 20:17:07.722 Jitouch[8013:268938] Device 1 144115188075855913 family 106 is running
2024-03-27 20:17:07.801 Jitouch[8013:268938] Could not create CGEventTap. Allow Jitouch in System Preferences -> Privacy -> Accessibility.
2024-03-27 20:17:44.085 Jitouch[8013:269383] Gesture "Four-Swipe-Down" for trackpad took 0.082331 s

The Jitouch application has permissions ok in 'accessibility'

shtareer avatar Mar 27 '24 23:03 shtareer

Thanks for sending - familyID 106 isn't an ID we've seen before so it's not in the builtin trackpad IDs list: https://github.com/JitouchApp/Jitouch/blob/f8e8d6713f6c71c0af037feb6406bb990c47d5c7/jitouch/Jitouch/Gesture.m#L30-L38

However, it doesn't explain why trackpad gestures aren't working since Jitouch has a fallback to adding a trackpadCallback for unknown IDs anyway: https://github.com/JitouchApp/Jitouch/blob/f8e8d6713f6c71c0af037feb6406bb990c47d5c7/jitouch/Jitouch/Gesture.m#L3235-L3238

Perhaps it's a permissions issue? Can you try removing Jitouch from the "Accessibility" permissions list, then restart Jitouch with killall Jitouch, and re-enable it in the Accessibility permissions? Or you could try restarting your system? Sometimes the permissions can be finicky on first installation.

aaronkollasch avatar Mar 28 '24 00:03 aaronkollasch

Ok, I managed to give the appropriate permission just by removing it from the accessibility list and then adding it again.

Everything is ok now, thank you for your patience.

shtareer avatar Mar 28 '24 01:03 shtareer

Ah, great! Glad it's working now, and thanks for sharing the familyID info.

aaronkollasch avatar Mar 28 '24 14:03 aaronkollasch

Thanks for sending - familyID 106 isn't an ID we've seen before so it's not in the builtin trackpad IDs list:

https://github.com/JitouchApp/Jitouch/blob/f8e8d6713f6c71c0af037feb6406bb990c47d5c7/jitouch/Jitouch/Gesture.m#L30-L38

However, it doesn't explain why trackpad gestures aren't working since Jitouch has a fallback to adding a trackpadCallback for unknown IDs anyway:

https://github.com/JitouchApp/Jitouch/blob/f8e8d6713f6c71c0af037feb6406bb990c47d5c7/jitouch/Jitouch/Gesture.m#L3235-L3238

Perhaps it's a permissions issue? Can you try removing Jitouch from the "Accessibility" permissions list, then restart Jitouch with killall Jitouch, and re-enable it in the Accessibility permissions? Or you could try restarting your system? Sometimes the permissions can be finicky on first installation.

permissions issue!thats my trouble too,thx a looooooot!

CherieRyoma avatar May 08 '24 06:05 CherieRyoma