xserver-multidpi/hw
Martin Peres 293cf660c9 modesetting: check the kms state on EnterVT
Normally, we would receive a uevent coming from Linux's DRM subsystem,
which would trigger the check for disappearing/appearing resources.
However, this event is not received when X is not master (another VT
is selected), and so the userspace / desktop environment would not be
notified about the changes that happened while X wasn't master.

To fix the issue, this patch forces a refresh on EnterVT by splitting
the kms-checking code from the uevent handling into its own (exported)
function called drmmode_update_kms_state. This function is then called
from both the uevent-handling function, and on EnterVT right before
restoring the modes.

Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Kishore Kadiyala <kishore.kadiyala@intel.com>
Tested-by: Kishore Kadiyala <kishore.kadiyala@intel.com>
2020-09-25 16:13:56 +03:00
..
dmx Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
kdrive Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
vfb Revert https://gitlab.freedesktop.org/xorg/xserver/merge_requests/235 2019-10-14 12:48:24 +02:00
xfree86 modesetting: check the kms state on EnterVT 2020-09-25 16:13:56 +03:00
xnest Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xquartz Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xwayland xwayland: Remove pending stream reference when freeing 2020-09-22 19:23:52 +00:00
xwin hw/xwin: Update for renames in xserver/output API 2020-07-29 20:36:35 +01:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00