Thanks for the suggestions. After some more experiments I think that it's not a timeout/power problem, but it's probably a bug related to suspend/resume.