My dog gets that crap as well. I finally got some ear wash from the vet. Whenever he would start shaking his head at night, I'd get it out and flush his ears with it. In accordance with what the vet said.
My lab is eight now. Kinda fat and out of shape. Much like me. I'd still like to get him out for a couple of hours this year.