After some real-life testing, accelerometer mode works only in very low light, as the accelerometer produces values at maximum 100Hz. Thus when the shutter speed is fast enough, the difference between two consecutive frames returns zero and the photo is snapped right away. I will try to fix that.