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

Vibration on tap stopped to work after update #910

Open
6 of 7 tasks
geck093 opened this issue May 19, 2024 · 12 comments
Open
6 of 7 tasks

Vibration on tap stopped to work after update #910

geck093 opened this issue May 19, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@geck093
Copy link

geck093 commented May 19, 2024

Steps to reproduce

I updated from the 3.0.0 to the last version 3.1.7 and the vibration stopped to work. I then downgraded one version at the time until 3.1.0 when the vibration returned to work

Expected behavior

Vibration on tap

Actual behavior

No vibration on tap

version of the program

3.1.1 to 3.1.7

Android version

Android 13

Device

Samsung Galaxy A52

Other details

I checked the program and system configuration to confirm nothing changed and tried other keybords, that worked fine.
The sound on tap worked fine on all version 3.1.0 to 3.1.7

Acknowledgements

  • I have written a short but informative title.
  • I have updated the app to the latest version.
  • I have searched the existing issues and this is a new one, NOT a duplicate or related to another open issue.
  • This is not a question or a discussion, in which case I should have gone to lemmy.ml/c/thumbkey
  • This is a single bug report, in case of multiple bugs I will open a separate issue for each one (they can always link to each other if related)
  • I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements. 🤡
  • I have filled out all of the requested information in this form.
@geck093 geck093 added the bug Something isn't working label May 19, 2024
@dessalines
Copy link
Owner

We switched to a shorter tap vibrate length, but its still the exact same vibrate, and its working for mine. Are you sure you have touch feedback enabled in your system settings?

@geck093
Copy link
Author

geck093 commented May 23, 2024

The touch feedback was enabled both in the app and in the system settings, even changing the vibration intensity has no effect. However, using the Samsung keyboard, the vibration works correctly. I am currently using version 3.1.0 which does not give me any problems.

@dessalines
Copy link
Owner

This is the only PR that changed anything to do with vibration since then: #863 . I don't know what I can do about this, as it should've only changed the vibration length.

@geck093
Copy link
Author

geck093 commented May 24, 2024

Is it possible that the vibration is too short for my phone to start the motor? In this case is it possible to add a parameter in the settings to change the vibration length?

@dessalines
Copy link
Owner

I'm not sure. I'd rather use android's default for touch length above than make this configurable. If someone wanted to add it I wouldn't be opposed, but it seems overkill to me.

I'm wondering if any other devices are experiencing this bug.

@ondrachwiedziuk
Copy link
Contributor

Vibrations have also stopped working on my device (Samsung Galaxy A22 5G) in the current version (3.2.1). I guess there might be a problem with Samsung devices, where the vibration length is shorter than Samsung's minimum length.

@KraXen72
Copy link
Contributor

KraXen72 commented Jul 7, 2024

I am also experiencing vibrations not working on Thumb-key 3.2.6
Samsung Galaxy M21 Android 12 OneUI 4.2
Regardless of the vibration strength in settings, even if vibrate on touch feedback is enabled. DND is off, system sounds, ringtone, alarm and media are all at maybe 70%.
Vibrations are working on Gboard.

@dessalines
Copy link
Owner

You can look at #863 , I'm guessing its for samsung devices then, they won't start the motor with the KEYBOARD_TAP vibration length.

@KraXen72
Copy link
Contributor

KraXen72 commented Jul 7, 2024

sorry, what am i supposed to do with the pr?
fyi, gboard allows customising vibration length in ms with a slider with a 1ms step, so i think adding vibration length customization wouldn't be out of place.

there could be some preset buttons that would move the slider, but otherwise you can adjust it freely.

this could solve the problem for samsung devices if they can simply increase the vibration duration.

@dessalines
Copy link
Owner

I don't think I'd want to add custom vibration length. Here's the specific line that changed this. The possible ways forward for this are:

  • Open up an issue on why samsung isn't supporting the KEYBOARD_TAP_LENGTH above.
  • Open up an issue for jetpack compose to support a short haptic feedback tap length, not just LongPress
  • Create a PR to add a setting that switches which type of feedback we do, based on these two conflicting and incompatible ways to do haptic feedback.

@KraXen72
Copy link
Contributor

KraXen72 commented Jul 8, 2024

i tested the foss futo keyboard that just came out, and it's a fork of AOSP latinIME, and it supports vibration (i set it to 30ms) could you possibly check if they are using some different method/api?

@dessalines
Copy link
Owner

You should've done this work as it's samsung weirdness workaround, but I did it for you.

https://github.com/futo-org/android-keyboard/blob/dd0ba32804411863e61d166d355c3ec953a61383/java/src/org/futo/inputmethod/latin/AudioAndHapticFeedbackManager.java#L121

They seem to be using the same thing we are, but also adding a most likely deprecated custom vibrate function in addition to the standard.

Reach out to samsung support about this issue and link it here.

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

No branches or pull requests

4 participants