systemd-logind: Fix vt-enter not working when using a legacy video driver
authorHans de Goede <hdegoede@redhat.com>
Fri, 7 Mar 2014 09:59:47 +0000 (04:59 -0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 10 Mar 2014 08:07:39 +0000 (09:07 +0100)
commit749d25f6f0faed00a4cd906171ea6f96d76591e7
treeca97323c9aa51a5ccc6b2e1e405fd6be3ee4b83d
parentc6dea929a4951c3c048554a1ef54cf8143d9577a
systemd-logind: Fix vt-enter not working when using a legacy video driver

If there is only a single non kms video device (tested with the vesa driver),
then we will never get a resume signal for a drm node, so also call vtenter
when we get a resume for an input device.

Notes:
1) vtenter checks if it is ok to do the vtenter, so if there are kms video
devices the calls for input device resumes are a nop
2) This assumes that there will always be at least one server event fd
supporting input device. Since all non legacy input-drivers will be patched
to supported server fds this seems a safe assumption.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/os-support/linux/systemd-logind.c