[PATCH installer] fix #3817: Xorg configuration

Maximilian Hill mhill at inett.de
Tue Apr 19 11:53:13 CEST 2022


Automatic actions taken before xinit:
- Disable glx and glamoregl
- Replace driver modesetting by fbdevfix Xorg configuration

Signed-off-by: Maximilian Hill <mhill at inett.de>
---
 unconfigured.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/unconfigured.sh b/unconfigured.sh
index 5123c96..6b22733 100755
--- a/unconfigured.sh
+++ b/unconfigured.sh
@@ -201,6 +201,12 @@ chronyd || echo "starting chrony failed ($?)"
 echo "Starting a root shell on tty3."
 setsid /sbin/agetty -a root --noclear tty3 &
 
+echo "Patch Xorg Configuration"
+Xorg -configure
+sed -i -re "s/^(\s+)Load(\s+)\"glx\"/\1Disable\2\"glx\"\n\1Disable\2\"glamoregl\"\n/g" xorg.conf.new
+sed -i -re 's/^(\s+Driver\s+)"modesetting"/\1"fbdev"/g' xorg.conf.new
+cp xorg.conf.new /etc/X11/xorg.conf
+
 echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..."
 xinit -- -dpi "$DPI" >/dev/tty2 2>&1
 
-- 
2.35.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20220419/30f6bf1a/attachment.sig>


More information about the pve-devel mailing list