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
2013-11-11 15:16:07 -08:00
2014-07-17 10:19:52 -07:00
2012-03-21 13:54:42 -07:00
2014-01-12 10:24:11 -08:00
2014-11-12 10:25:00 +10:00
2015-07-08 16:40:57 -04: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
2014-11-12 10:25:00 +10:00
2016-02-29 16:28:57 -05:00
2009-01-30 16:36:45 -08:00
2021-02-01 16:21:39 -08:00
2021-09-06 21:19:46 +00:00
2012-03-21 13:54:42 -07:00
2012-05-14 13:31:00 +01:00
2018-10-25 12:32:48 -04:00
2016-07-18 15:25:59 -04:00
2021-05-30 13:26:32 +03:00
2018-03-08 14:12:36 -05:00
2021-05-30 13:26:30 +03:00
2021-05-30 13:26:31 +03:00
2021-05-30 13:26:31 +03:00
2021-05-30 13:26:32 +03: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
2018-02-14 17:04:48 -05:00
2020-07-05 13:07:33 -07:00
2014-07-17 17:10:48 -07:00
2021-05-30 13:26:42 +03:00
2021-05-30 13:26:39 +03:00
2021-05-30 13:26:42 +03:00
2018-02-12 08:09:53 +10:00
2021-11-06 21:22:23 +02:00
2021-09-15 21:49:17 +03:00
2019-11-09 23:05:13 -05:00
2014-11-12 10:25:00 +10:00
2015-03-16 16:56:17 +00:00
2019-10-30 16:17:04 +00:00
2012-03-21 13:54:42 -07:00
2019-05-18 14:59:38 +00:00
2020-07-10 06:17:44 +10:00
2020-07-10 06:17:44 +10:00
2021-08-31 16:56:28 +00:00
2019-08-27 17:38:59 -04:00
2021-07-30 08:36:35 +00:00
2014-11-12 10:25:00 +10:00
2021-06-07 17:28:05 +02:00
2012-05-16 10:59:35 +10:00
2014-11-12 10:25:00 +10:00
2015-01-23 10:35:49 -08:00
2014-09-22 12:00:46 -07:00
2019-10-15 14:06:21 -04:00
2014-11-12 10:25:00 +10:00
2018-10-30 12:21:41 -04:00
2020-07-10 06:17:44 +10:00
2014-11-12 10:25:00 +10:00
2015-05-07 14:03:50 -04:00
2015-07-08 16:40:57 -04:00
2015-07-08 16:40:57 -04:00
2021-12-03 00:46:11 +00:00
2012-03-21 13:54:42 -07:00
2009-04-14 10:35:44 -04:00
2016-03-01 11:25:59 -05:00
2016-02-22 13:26:31 -05:00
2019-04-12 21:53:03 +00:00
2012-03-21 13:54:42 -07:00
2011-12-05 14:32:45 -08:00
2014-11-12 10:25:00 +10:00
2014-02-04 10:53:59 +10:00
2017-10-24 15:53:28 -04:00
2020-07-05 13:07:33 -07:00
2018-08-02 10:27:37 -04:00
2018-08-02 10:27:37 -04:00
2018-03-28 09:54:17 -04:00
2018-03-28 09:54:22 -04:00
2012-05-03 14:59:23 +10:00
2019-01-10 18:40:20 +02:00
2012-10-30 15:11:10 +10:00
2019-08-27 17:38:54 -04:00
2014-11-12 10:25:00 +10:00
2014-06-02 13:07:46 +01:00
2017-06-02 09:32:35 -07:00