Locked in gear M-2. I tried manual shift and would not respond. on 2009 BMW 328i xDrive

Drove into my driveway and put car in reverse. The car reset and now drives in normal gear.

Note: I noticed for the past three weeks the car would pause for 1/10 second on occasion and then take off.

328xi sports wagon

Asked by for the 2009 BMW 328i xDrive