Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Vibrate on keypress is too weak #32

Closed
NeoTheThird opened this issue May 27, 2017 · 4 comments
Closed

Vibrate on keypress is too weak #32

NeoTheThird opened this issue May 27, 2017 · 4 comments
Labels
bug device: bacon OnePlus One device: FP2 Fairphone 2

Comments

@NeoTheThird
Copy link
Member

I know that many people prefer their phone without haptic feedback, but I'm one of the loons who loves it.

On the keyboard (and possibly in other places, such as the Dash) there should be a vibration every time that a key is pressed. It seems that this event fires, but it is far too weak to be noticed. If you put your ear right up to the phone, you can hear the motor clicking.

It seems that this is configurable via the /sys filesystem on some devices: http://askubuntu.com/questions/422518/disable-vibration-when-pressing-key-on-ubuntu-touch

However, the /sys/class/timed_output/vibrator/ folder does not contain the 'amp' file on this phone.

Reported by https://launchpad.net/~universalsuperbox.

@giiba
Copy link

giiba commented May 4, 2019

I don't know if this helps or not, but...

I've been annoyed by the lack of haptic feedback on the 1+1 I recently flashed to UT. I've been using a Nexus 5 and everything works fine as far as vibrations goes so I figured this wasn't a hardware issue as the 1+1 does vibrate, sometimes.

I started digging in the keyboard files:
/usr/share/maliit/plugins/com/ubuntu

and in KeyboardContainer.qml I found lines 85-93: 'HapticsEffect'

and... changing 'duration' from 10 to 25 and rebooting, I now have a reasonable haptics feedback for the keyboard.

So, perhaps all of these missing vibrations are from individual components using too small a duration for the device in question?

@Flohack74
Copy link
Member

Yes thats true, the motor of the OPO is too small/slow to actually start vibrating for short durations. I would however love to have a "vibration ratio" per device, rather than increasing the timer for all devices. I was already looking into this a bit but were not sure how to place that ratio.

@Flohack74 Flohack74 added the device: bacon OnePlus One label Dec 11, 2019
@Flohack74
Copy link
Member

This has been fixed in ubports/android_device_oneplus_bacon-1#20

@Flohack74
Copy link
Member

@NeoTheThird are you sure the vibration is too weak on teh FP2? I find it quite usable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug device: bacon OnePlus One device: FP2 Fairphone 2
Projects
None yet
Development

No branches or pull requests

3 participants