summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorSebastian Schmelzer2008-09-16 18:49:37 +0200
committerSebastian Schmelzer2008-09-16 18:49:37 +0200
commite56f4593cf14a7df2ee78a2f1f4fcc4d61bfaf30 (patch)
tree36e13c0183442bec8483a1f2229f2f05f04dd09c /os-plugins
parentAdded support for shutdown via sysrq for all kernels. (diff)
downloadcore-e56f4593cf14a7df2ee78a2f1f4fcc4d61bfaf30.tar.gz
core-e56f4593cf14a7df2ee78a2f1f4fcc4d61bfaf30.tar.xz
core-e56f4593cf14a7df2ee78a2f1f4fcc4d61bfaf30.zip
* added modes line for display to xorg.conf
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2221 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/xserver/XX_xserver.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh
index 4a8d0410..525041e2 100644
--- a/os-plugins/plugins/xserver/XX_xserver.sh
+++ b/os-plugins/plugins/xserver/XX_xserver.sh
@@ -238,12 +238,21 @@ a\ \ InputDevice\ \ "Synaptics TP"\ \ \ \ \ \ "SendCoreEvents"
sed 's|.*Model:\ ||;s|"||g')
size="$(grep -m 1 " Size: " /etc/hwinfo.display | \
sed 's|.*ize:\ ||;s|\ mm||;s|x|\ |')"
+ modes=$(grep -i "Resolution: .*@" /etc/hwinfo.display | \
+ awk '{print $2}'| awk -f '@' '{print $1}'| sort -unr| \
+ tr "\n" " ")
[ -n "$vert" -a -n "$horz" ] && \
sed -e "s|# Horizsync.*| Horizsync $horz|;\
s|# Vertrefre.*| Vertrefresh $vert|;\
s|# Modelname.*| Modelname \"$modl\"|" -i $xfc
[ -n "$size" ] && \
sed -e "s|# DisplaySi.*| DisplaySize $size|" -i $xfc
+ [ -n "$modes" ] && \
+ sed -e "s|# SubSection.*| Subsection \"Display\"|;\
+ s|# Depth 24.*| Depth 24|;\
+ s|# Modes.*| Modes $modes|;\
+ s|# EndSubSection.*| EndSubSection|;" -i $xfc
+
fi
# run distro specific generated stage3 script
[ -e /mnt/opt/openslx/plugin-repo/xserver/xserver.sh ] && \