xserver/hw/xfree86/os-support
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
..
bsd compiler.h: don't define inb/outb and friends on mips 2021-01-27 19:29:35 +00:00
bus xfree86: Move DRICreatePCIBusID to xf86Pci.h 2017-06-22 10:53:08 -04:00
hurd Fix old-style definition warning for xf86OSInputThreadInit() 2019-04-17 13:57:20 +01:00
linux xf86/logind: Fix drm_drop_master before vt_reldisp 2021-12-03 00:46:11 +00:00
misc Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
shared Remove check for useSIGIO option 2020-12-08 11:23:31 -05:00
solaris Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
stub Fix old-style definition warning for xf86OSInputThreadInit() 2019-04-17 13:57:20 +01:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
meson.build Remove BSD APM support. 2020-06-03 17:33:10 +02:00
xf86OSpriv.h xfree86: Remove xf86LinearVidMem 2014-09-16 11:58:53 -04:00
xf86_OSlib.h os, xfree86: Stop being so weird about <limits.h> 2017-05-12 09:49:07 -04:00
xf86_OSproc.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00