On 2010-07-04 14:59 +0200, Andre Majorel wrote:
> /opt/ltsp-5/i386/usr/share/ltsp/screen-session.d/XS80-x-modes
> assumes that X_MODE_{0,1,2} are set to just a mode name (E.G.
> X_MODE_0 = 640x480).
>
> When an X_MODE_[012] parameter is set to a mode name and modeline,
> only the first word should go into Screen.Display.Modes. The
> rest should go into Monitor.Modeline.
A version of XS80-x-modes that fixes the bug is attached.
--
André Majorel http://www.teaser.fr/~amajorel/
# if X_MODE_* are set and xrandr is disabled, generate a Display subsection
# with the defined modes
modes=
modelines=
if boolean_is_true "$XRANDR_DISABLE"; then
for s in "$X_MODE_0" "$X_MODE_1" "$X_MODE_2"; do
read -r mode modeline <<EOF
`printf '%s' "$s"`
EOF
test -n "$mode" || continue
CONFIGURE_X="True"
modes="$modes \"$mode\""
test -n "$modeline" || continue
modelines=`cat <<EOF
"$mode" $modeline
$modelines
EOF`
done
if test -n "$modes"; then
eval "set_x_modes() { printf ' Modes %s\\n' '$modes'; }"
display_hacks="$display_hacks set_x_modes"
fi
if test -n "$modelines"; then
xorg_conf_src=`printf '%s\n' "$modelines" | sed 's/.*/ Modeline &/'`
eval "set_x_modelines() { printf '%s\n' '$xorg_conf_src'; }"
monitor_hacks="$monitor_hacks set_x_modelines"
fi
fi
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net