aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-24 22:20:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-24 22:20:46 -0300
commit48264a119be031a7f880cdf14d9e3729cb51a60f (patch)
treed92aa339dd8a05dfbc11dfe00bcfe52cf5a64d93
parent0b16c07fcefad66e780f4664f2100eff50cf532d (diff)
downloadkvmx-48264a119be031a7f880cdf14d9e3729cb51a60f.tar.gz
kvmx-48264a119be031a7f880cdf14d9e3729cb51a60f.tar.bz2
Provision: fixes QLX KMS issues on desktop-basic
-rwxr-xr-xshare/provision/desktop-basic6
-rw-r--r--share/provision/files/desktop-basic/home/user/.custom/xsession12
2 files changed, 12 insertions, 6 deletions
diff --git a/share/provision/desktop-basic b/share/provision/desktop-basic
index 38d69e3..d87aff0 100755
--- a/share/provision/desktop-basic
+++ b/share/provision/desktop-basic
@@ -29,6 +29,12 @@ APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
# Provision the basic stuff
$DIRNAME/development $HOSTNAME $DOMAIN $MIRROR
+# QLX
+# See https://labs.riseup.net/code/issues/11518
+# https://bugs.mageia.org/show_bug.cgi?id=14607
+echo 'options qxl modeset=0' | sudo tee /etc/modprobe.d/qxl-no-kms.conf
+sudo update-initramfs -v -u
+
# Ensure we are in the user home folder
cd
diff --git a/share/provision/files/desktop-basic/home/user/.custom/xsession b/share/provision/files/desktop-basic/home/user/.custom/xsession
index 97ef73d..3d75e76 100644
--- a/share/provision/files/desktop-basic/home/user/.custom/xsession
+++ b/share/provision/files/desktop-basic/home/user/.custom/xsession
@@ -2,21 +2,21 @@
# Custom X11 session config
#
WINDOW_MANAGER="ratpoison"
-PROGRAMS="\$PROGRAMS terminal"
+PROGRAMS="$PROGRAMS terminal"
+DISPLAY_DEVICE="qxl-0" # or maybe Virtual-0
#
# Set screen size
#
-# On stretch onwards Virtual-0 was renamed to Virtual-0
# Modeline determined by running "cvt 1280 780"
xrandr --newmode "1280x780_60.00" 81.50 1280 1352 1480 1680 780 783 793 810 -hsync +vsync
-xrandr --addmode Virtual-0 1280x780_60.00
+xrandr --addmode $DISPLAY_DEVICE 1280x780_60.00
# Modeline determined by running "cvt 1368 748"
xrandr --newmode "1368x748_60.00" 83.00 1368 1440 1576 1784 748 751 761 777 -hsync +vsync
-xrandr --addmode Virtual-0 1368x748_60.00
+xrandr --addmode $DISPLAY_DEVICE 1368x748_60.00
# Set default modeline
-#xrandr --output Virtual-0 --mode 1368x748_60.00
-xrandr --output Virtual-0 --mode 1280x780_60.00
+#xrandr --output $DISPLAY_DEVICE --mode 1368x748_60.00
+xrandr --output $DISPLAY_DEVICE --mode 1280x780_60.00