summaryrefslogtreecommitdiffstats
path: root/core/modules/remote-access
diff options
context:
space:
mode:
authorSimon Rettberg2022-02-23 23:12:35 +0100
committerSimon Rettberg2022-02-23 23:12:35 +0100
commit4d08d1fea3045eec42b8e7e179560f58cc42aa89 (patch)
tree1ea1af55f4a9b148e7a52c85ddd31664dd755a9c /core/modules/remote-access
parent[evdi] Fix module path (diff)
downloadmltk-4d08d1fea3045eec42b8e7e179560f58cc42aa89.tar.gz
mltk-4d08d1fea3045eec42b8e7e179560f58cc42aa89.tar.xz
mltk-4d08d1fea3045eec42b8e7e179560f58cc42aa89.zip
[remote-access] Load evdi for virtual display
Diffstat (limited to 'core/modules/remote-access')
-rwxr-xr-xcore/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config b/core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config
index b2be43e6..b77ca5d8 100755
--- a/core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config
+++ b/core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config
@@ -38,8 +38,15 @@ rpc-port = 7551
END
if [ "$driver" = "intel" ]; then
+ # This only works for very old i915 chips that don't support modesetting
sed "s/%DRIVER%/${driver}/g" "/opt/openslx/remote-access/xorg-virtual.conf" > "/etc/X11/xorg.conf.d/16-remote-access-${driver}-virtual.conf"
fi
+# For everything else, we use th evdi kernel module to add a virtual output
+if insmod "/lib/modules/$(uname -r)/kernel/extra/evdi.ko" || modprobe evdi; then
+ echo "evdi virtual display interface loaded"
+else
+ echo "evdi not found. virtual display not available."
+fi
# Currently the zaphod head solution on intel can create a mysterious
# problem where the cursor turns into an X and everything stops working