@trividar yes, and yes.

I start the motion program as part of the little script to start mm.

Short term just type

sudo motion &