diff options
author | Simon Rettberg | 2022-09-08 17:30:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-09-08 17:30:25 +0200 |
commit | 77b00c2c7908e7397bb462d8b4e7b489c4b0a049 (patch) | |
tree | 2222ab969ae30167ac05b1cd8e99c81f6d6fae8b /core/modules/remote-access | |
parent | [remote-access] Source config again in bash subshell (diff) | |
download | mltk-77b00c2c7908e7397bb462d8b4e7b489c4b0a049.tar.gz mltk-77b00c2c7908e7397bb462d8b4e7b489c4b0a049.tar.xz mltk-77b00c2c7908e7397bb462d8b4e7b489c4b0a049.zip |
[remote-access] Force usage of modesetting_drv on newer intel chips
Diffstat (limited to 'core/modules/remote-access')
-rwxr-xr-x | core/modules/remote-access/data/opt/openslx/scripts/systemd-remote_x_config | 9 |
1 files changed, 9 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 ffa7caf2..dc28aa5a 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 @@ -4,6 +4,15 @@ [ -n "$SLX_REMOTE_VNC" ] || exit 0 # Nothing to do +# Force modesetting driver on newer intel models +vendor="$( < /proc/cpuinfo sed 's/\s//g' | awk -F: '$1 == "vendor_id" {print $2; exit}' )" +cpufamily="$( < /proc/cpuinfo sed 's/\s//g' | awk -F: '$1 == "cpufamily" {print $2; exit}' )" +model="$( < /proc/cpuinfo sed 's/\s//g' | awk -F: '$1 == "model" {print $2; exit}' )" + +if [ "$vendor" = "GenuineIntel" ] && [ "$cpufamily" -eq 6 ] && [ "$model" -gt 60 ]; then + rm -- "/usr/lib/xorg/modules/drivers/intel_drv.so" +fi + # Disable all input drivers cp "/opt/openslx/remote-access/xorg-noinput.conf" "/etc/X11/xorg.conf.d/16-remote-access-noinput.conf" |