Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas.ks
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@marcopg.org>2008-12-17 14:10:24 (GMT)
committer Marco Pesenti Gritti <marco@marcopg.org>2008-12-17 14:10:24 (GMT)
commit919a734072c39f74df46c3fc8b9da2544bc319d7 (patch)
tree3a07d9615d075d38cf36bd5bef5b0da1bab5445b /soas.ks
parent1c72cf86cfce916633a91493e9d2566a64bbc71c (diff)
xorg.conf for QEMU
Diffstat (limited to 'soas.ks')
-rw-r--r--soas.ks41
1 files changed, 41 insertions, 0 deletions
diff --git a/soas.ks b/soas.ks
index 9f59916..2f3e91e 100644
--- a/soas.ks
+++ b/soas.ks
@@ -91,6 +91,47 @@ echo "sugar" > /home/liveuser/.Xclients
chmod a+x /home/liveuser/.Xclients
chown liveuser:liveuser /home/liveuser/.Xclients
+if [ \`grep -c QEMU /proc/cpuinfo\` -ne 0 ]; then
+ cat > /etc/X11/xorg.conf <<FOE
+Section "ServerLayout"
+ Identifier "Default layout"
+ Screen 0 "Screen0" 0 0
+ InputDevice "Keyboard0" "CoreKeyboard"
+EndSection
+
+Section "InputDevice"
+ Identifier "Keyboard0"
+ Driver "kbd"
+ Option "XkbModel" "pc105+inet"
+ Option "XkbLayout" "us"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ ModelName "Monitor 1024x768"
+ HorizSync 31.5 - 61.0
+ VertRefresh 50.0 - 75.0
+ Option "dpms"
+EndSection
+
+Section "Device"
+ Identifier "Videocard0"
+ Driver "cirrus"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Videocard0"
+ Monitor "Monitor0"
+ DefaultDepth 24
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+FOE
+fi
+
EOF
%end