add HW v-sync support

kanged from KonstaT (thanks!)
Merge remote-tracking branch 'upstream/jellybean' into jellybean