xserver/hw/xfree86/drivers/modesetting
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
..
Makefile.am modesetting: Fix broken manpage in autoconf build 2019-10-04 10:29:23 +02:00
dri2.c modesetting: Use EGL_MESA_query_driver to select DRI driver if possible 2019-11-26 01:36:10 -08:00
driver.c modesetting: check the kms state on EnterVT 2020-09-25 16:13:56 +03:00
driver.h modesetting: Allow users to opt-in VRR support 2020-09-08 08:00:20 +00:00
drmmode_display.c modesetting: check the kms state on EnterVT 2020-09-25 16:13:56 +03:00
drmmode_display.h modesetting: check the kms state on EnterVT 2020-09-25 16:13:56 +03:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
meson.build xfree86: Link fb statically 2019-07-23 14:24:00 -04:00
modesetting.man modesetting: Document Option "DoubleShadow" in the man page 2018-09-10 14:47:06 -04:00
pageflip.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
present.c modesetting: Lay the foundation for enabling VRR 2020-09-08 08:00:20 +00:00
vblank.c xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00