Files
xserver/include
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
..
2020-07-05 13:07:33 -07:00
2014-07-17 10:19:52 -07:00
2012-03-21 13:54:42 -07:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2015-06-30 12:17:51 +10:00
2021-09-06 21:19:46 +00:00
2014-11-12 10:25:00 +10:00
2018-02-14 17:04:48 -05:00
2017-06-20 16:37:24 -04:00
2020-09-15 11:43:16 +02:00
2014-11-12 10:25:00 +10:00
2017-03-17 15:14:42 -04:00
2018-01-22 17:28:12 -05:00
2020-07-05 13:07:33 -07:00
2021-05-30 13:26:42 +03:00
2021-09-15 21:49:17 +03:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2015-01-23 10:35:49 -08:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2012-03-21 13:54:42 -07:00
2019-04-12 21:53:03 +00:00
2012-03-21 13:54:42 -07:00
2014-11-12 10:25:00 +10:00
2020-07-05 13:07:33 -07:00
2019-01-10 18:40:20 +02:00
2014-11-12 10:25:00 +10:00