xserver/hw/xfree86/os-support/linux
Jocelyn Falempe 8eb1396d3e xf86/logind: Fix drm_drop_master before vt_reldisp
When switching to VT, the ioctl DRM_DROP_MASTER must be done before
the ioctl VT_RELDISP. Otherwise the kernel can't change the modesetting
reliably, and this leads to the console not showing up in some cases, like
after unplugging a docking station with a DP or HDMI monitor.

Before doing the VT_RELDISP, send a dbus message to logind, to
pause the drm device, so logind will do the ioctl DRM_DROP_MASTER.

With this patch, it changes the order logind will send the resume
event, and drm will be sent last instead of first.
so there is a also fix to call systemd_logind_vtenter() at the right time.

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit da9d012a9c)
2021-12-03 00:46:11 +00:00
..
int10 xfree86: Remove xf86InterceptSignals 2017-12-13 11:11:38 -05:00
Makefile.am agp: Make the legacy AGP interface optional 2019-01-16 19:50:15 +00:00
linux.h linux: Add a may_fail paramter to linux_parse_vt_settings 2015-06-03 11:31:41 +02:00
lnx_acpi.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
lnx_agp.c hw/xfree86/os-support/linux/lnx_agp.c xf86GetAGPInfo(): free(info) in an error path, caught by cppcheck. 2019-05-01 15:22:02 -07:00
lnx_apm.c hw/xfree86: Support ACPI without APM. 2020-04-30 18:45:35 +00:00
lnx_bell.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
lnx_ev56.c xfree86: Remove MMIO_ONB* and friends 2014-07-28 12:19:01 -07:00
lnx_init.c Fix old-style definition warning for xf86OSInputThreadInit() 2019-04-17 13:57:20 +01:00
lnx_kmod.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
lnx_platform.c xfree86: Fix potentially NULL reference to platform device's PCI device 2021-06-23 14:29:10 +03:00
lnx_video.c xfree86: NUL-terminate strings in hwEnableIO 2021-09-10 11:20:47 -07:00
systemd-logind.c xf86/logind: Fix drm_drop_master before vt_reldisp 2021-12-03 00:46:11 +00:00