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

Fn-toggle stops working after some time #5

Closed
dieterdemeyer opened this issue Nov 6, 2016 · 14 comments
Closed

Fn-toggle stops working after some time #5

dieterdemeyer opened this issue Nov 6, 2016 · 14 comments

Comments

@dieterdemeyer
Copy link

Hello,

I've been using the app for a few hours now during the weekend and I noticed that the Fn toggle stops working after a certain period of time.
When reenabling the "On-Screen Touch Bar" from the menu bar, it seems to be working again.

Anything I can do to help debug this ?

@AndreasVerhoeven
Copy link
Contributor

Hi Dieter,

Can you easily reproduce this behavior?

My best bet is that the "key presses" detection function is sometimes missing a "key up", event, which makes the app thinks another key is always pressed (in which case it won't pop up the Touch Bar - only single Fn presses will do).

@dieterdemeyer
Copy link
Author

Hello,

I have the TouchBarServer application running non stop.
Then after some time, pressing the Fn key doesn't show the TouchBar anymore.
The solution is to reenable it from the menubar, or as it turns out, wait some more and then it just works again for a period of time.

Is there any logging behind the scenes that we can look at to find out where the problem is ?

@AndreasVerhoeven
Copy link
Contributor

There's no logging by default, but if you have Xcode it's fairly easy to add it yourself:
TouchBarDelegate.m, line 262: add NSLog(@"Key event: %@ (%ld)", event, (unsigned long) pressedKeySet.count);

@juststevede
Copy link

Hi guys,

I have the same behavior. It is working great for some time but stops working and need to be disabled and enabled in the menubar to make it work again.

Steve

@AndreasVerhoeven
Copy link
Contributor

Not sure what's going on yet, but we're trying to track this. Difficulty is caused by the time it takes for it to stop working

@juststevede
Copy link

I will try to narrow it down and provide more information.

Anyway thank you so much for sharing your awesome work!

@dieterdemeyer
Copy link
Author

Hi,

I can't seem to find the file TouchBarDelegate.m, only AppDelegate.m.
I assume that's the one you mean ?

This time, it stopped working coming out of sleep mode. After opening XCode, it worked again. But it seems very random, both in the moment it stops working as well in opening other applications where the functionality returns..

@AndreasVerhoeven
Copy link
Contributor

@robbertkl
Copy link
Member

@dieterdemeyer @juststevede We've just released v1.2 which handles the Fn key in a completely different (and hopefully more reliable) way. Could you install this version and see if the issue is now gone?

@juststevede
Copy link

I already downloaded the new version and will keep you posted. Again, thanks for sharing your work!

@dieterdemeyer
Copy link
Author

Same here.
Installed new version and I will let you know..

@dieterdemeyer
Copy link
Author

I've been running the new version on 2 MacBooks for a few hours now without any issues.

@juststevede
Copy link

I didn't have any issues anymore too. Well done!

@robbertkl
Copy link
Member

Awesome, I'll consider this resolved and close the issue. If ever it's coming back after all, just reopen or submit a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants