Yup, I had the same issue with 5.1.1 lately.
What you can do, though, is install an app called "Proximity Fix" and your problem shall be solved. Do note that your android ought to be rooted for this.
There are a couple of non root apps too, but I'm not positive about them as I haven't...