Comment 12 for bug 949296

Revision history for this message
Bryce Harrington (bryce) wrote :

James has a good point that desktops don't get lid closed events. The patch in comment #1 is an interesting way to use that fact. Does the code in question only occur within the context of a lid close event? If so, then it might be a contender to work around the problem.

The patch in comment #11 is simpler; it simply treats all "default" (unknown) monitors as laptops. I'm not sure that's reliably true in all cases (I suspect monitors with corrupt or missing edid might show up as default). The patch would be better if it only tested for "default" if the RANDR level was <1.2 (which is the case for -nvidia; all other common X drivers provide 1.2 or 1.3 support).

Ideally upstream would provide a fix for this, but it is a serious regression so think we need to consider working around it in the distro for the release.