Created attachment 87002 [details] dmesg before hang When booting with DPM enabled the machine hard hangs when switching from AC to battery power or when booting without AC connected as soon as GDM starts. I can't reach it via ssh after the hang, so only dmesg before hang provided. Kernel is 3.12-rc2 with agd5f/linux/drm-fixes-3.12 merged in.
Created attachment 87003 [details] Xorg.0.log
Created attachment 87006 [details] [review] possible fix Does this patch help? Seems like maybe your system isn't getting ac events properly. Can you attach the dmesg output of this patch?
Yes, the patch fixes the immediate lockup. But it seems your analysis on why it fails isn't correct as I can now see your printks toggling between AC and DC when plugging in/out external power.
Created attachment 87033 [details] [review] force battery state on DC Does this patch also fix the problem?
Created attachment 87044 [details] [review] better patch Improved patch. Please try this one instead.
No this patch (v2) does not solve the problem.
Already fixed in 3.12 final.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.