My technique was to write tons of notes during the lecture. In college, I would have many pages of notes for each lecture and because writing is more of an active process than just sitting or spacing out for an hour, I rarely had to study for an exam.