slitaz-tools rev 564
tazx: force xorg resolution
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 20 13:01:00 2011 +0200 (2011-04-20) |
parents | e9c74b6c3c6f |
children | 2127ee92746b |
files | tinyutils/tazx |
line diff
1.1 --- a/tinyutils/tazx Tue Apr 19 19:19:34 2011 +0000 1.2 +++ b/tinyutils/tazx Wed Apr 20 13:01:00 2011 +0200 1.3 @@ -364,7 +364,12 @@ 1.4 wm_config 1.5 creat_xinitrc 1.6 creat_xsession 1.7 - xorg_conf_d ;; 1.8 + xorg_conf_d 1.9 + if grep -qs screen= /proc/cmdline ; then 1.10 + MODE="$(sed 's/.*screen=\([0-9]*x[0-9]*\).*/\1/' < /proc/cmdline)" 1.11 + sed -i "s/.*EndSubSection.*/\\t\\tModes\\t\"$MODE\"\\n&/" \ 1.12 + /etc/X11/xorg.conf.d/70-Screen.conf 1.13 + fi ;; 1.14 *) 1.15 # WM can be specified on cmdline. 1.16 if [ -n "$1" ]; then