modesetting: allow enabling atomic mode.
The Linux kernel has long had code preventing Xorg from using atomic modesetting due to various bugs in it's implementation, some of these issues have since been fixed but some issues remain namely with DPMS and other smaller things, we should allow users to opt-in by setting "Option 'Atomic' 'True'" This shouldn't cause any issues as the feature remains disabled by default. Co-authored-by: Daniel Abrecht <public@danielabrecht.ch> Signed-off-by: notbabaisyou <though-went-some-simple@proton.me>
This commit is contained in:
parent
25c002c54b
commit
461411c798
|
@ -1306,7 +1306,7 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
|||
ms->atomic_modeset_capable = (ret == 0);
|
||||
|
||||
if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_ATOMIC, FALSE)) {
|
||||
ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 1);
|
||||
ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 2);
|
||||
ms->atomic_modeset = (ret == 0);
|
||||
if (!ms->atomic_modeset)
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Atomic modesetting not supported\n");
|
||||
|
|
Loading…
Reference in New Issue