diff options
author | Simon Rettberg | 2022-02-22 16:57:24 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-02-22 16:57:24 +0100 |
commit | ad615a8b8b27110ee2dd3700414afa220b73f36c (patch) | |
tree | 0901f2071f06ad52e377e8bb7c5dd64245925f94 /core/modules/remote-access | |
parent | [remote-access] Validate vnc_port is in range (diff) | |
download | mltk-ad615a8b8b27110ee2dd3700414afa220b73f36c.tar.gz mltk-ad615a8b8b27110ee2dd3700414afa220b73f36c.tar.xz mltk-ad615a8b8b27110ee2dd3700414afa220b73f36c.zip |
[remote-access] Explicitly add virtual output on intel cards
It seems that in the past, a virtual output was added automatically
when no screen was connected. This isn't the case anymore, so let's
see if adding an xorg config fixes the issue.
Diffstat (limited to 'core/modules/remote-access')
-rw-r--r-- | core/modules/remote-access/data/opt/openslx/remote-access/xorg-virtual.conf | 6 | ||||
-rwxr-xr-x | core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/remote-access/data/opt/openslx/remote-access/xorg-virtual.conf b/core/modules/remote-access/data/opt/openslx/remote-access/xorg-virtual.conf new file mode 100644 index 00000000..7b5f40cf --- /dev/null +++ b/core/modules/remote-access/data/opt/openslx/remote-access/xorg-virtual.conf @@ -0,0 +1,6 @@ +Section "Device" + Identifier "Device0" + Driver "%DRIVER%" + Option "VirtualHeads" "1" + Option "ModeValidation" "AllowNonEdidModes" +EndSection 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 e977ffd5..b2be43e6 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 @@ -37,6 +37,10 @@ cat > /etc/lightdm/qt-lightdm-greeter.conf.d/13-loginrpc.conf <<END rpc-port = 7551 END +if [ "$driver" = "intel" ]; then + sed "s/%DRIVER%/${driver}/g" "/opt/openslx/remote-access/xorg-virtual.conf" > "/etc/X11/xorg.conf.d/16-remote-access-${driver}-virtual.conf" +fi + # Currently the zaphod head solution on intel can create a mysterious # problem where the cursor turns into an X and everything stops working # disable any warnings and just let the screen enter standby |