11-02-2012 10:10 PM
I'm playing around with vibrations in my Webworks application and using "navigator.webKitVibrate" with various arrays holding on/off time values. Everything is working great.... Except....
When I run my app on the Dev Alpha A, sometimes I get strange screen "anomalies" coinciding with the vibration pattern, such as flickering or jittering. This stops as soon as the vibration stops, screen is normal. When the vibration is on again, the screen does some strange rapid jittering along with the vibrations (like an old VCR movie that is having issues syncing the frame).
And to make it worse....The screen will go off after a few seconds of vibration patterns, even if I have the backlight set to 5 minutes! I can usually get my screen back on if I hit the power button or try to swipe-UP. However, as long as the vibration is going on... it is a struggle.
So I am wondering...
Is the vibration motor sending out some interference or a signal simulating a "holster" which may be turning the device screen off? What about the screen jitter? Is this due to the motor drawing too much power or also some internal interference?
Please somebody try this out on a Dev Alpha A and let me know what happens..... Use Webworks and use the navigator.webKitVibrate([200,100,200,500,20,500,10
Very strange indeed!