# 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
# 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