01-17-2021, 12:44 PM
(01-16-2021, 08:14 AM)marcih Wrote: See if Ondřej's page on vibration motors can give you any clues. I'd start by looking through the input devices listed in /proc/bus/input/devices, the factory vibration motor on my 1.2b board is called "gpio-vibrator" and lists an "FF" field, presumably meaning force feedback.
Also, phosh vibrates lightly when pressing the "^" button, notification centre or typing on squeekboard.
I tried several distributions on the multi-boot image and none caused any vibration. Also I compiled the program on the page you linked to and ran it with no effect. (Looking at the source code it appears that it is supposed to create a "rumble" from the motor when it is run.) No errors were reported but there is no response. I put in a few printf() statements to trace program flow and it went through all the way. So - assuming the code is correctly finding and opening the correct device, the hardware is not working. I do see gpio-vibrator in /proc/bus/input/devices, and the program is opening "/dev/input/event5" which is the handler listed there.
Oh well, it's an annoyance but not a deal breaker. Although I was very careful installing the new USB-C board I assume that I must have damaged wiring to the vibrator during installation. (Either that or it is defective.) For $10 maybe I'll try yet another USB-C board next time I order something from Pine64. It's not worth paying overseas shipping just for the one small, non-essential part.