Taking pictures with headphone jack
Check your volume sliders, it sounds [see what i did there? xD ] like
it's your notification volume that triggers the mechanism. At least that what i got when you said pushing on the volume button did the trick. 
Unlock/unlink your volume sliders if they're locked/linked, also if your rom has safe earphone volume feature, disable it.