I have exactly the same problem in my M30 and I visited the service centre 2 times.
At first, when I went, it start working fairly when I was waiting for my turn so I came back home.
Second time, when I told all stuff,he factory reset my phone and it...