http://bugzilla.novell.com/show_bug.cgi?id=623250
http://bugzilla.novell.com/show_bug.cgi?id=623250#c2
--- Comment #2 from H. Hansen 2010-07-18 16:14:54 UTC ---
a little more info on this topic:
there is following code in /etc/X11/xdm/Xsetup:
#
# Check if the machine is a laptop and configure
# external output if XRANDR 1.2 is available
#
if xrandr | grep -q "^default connected" ; then
echo "Driver not XRANDR 1.2 capable, ignoring DISPLAYMANAGER_RANDR_MODE_*
settings"
else
if $halporp --key system.formfactor --string laptop ; then
mode_auto="$DISPLAYMANAGER_RANDR_MODE_auto"
else
mode_auto=""
fi
for ext in VGA DVI-I DVI-D DVI-A Composite S-Video Component LFP Proprietary
; do
var="DISPLAYMANAGER_RANDR_MODE_${ext//-/_}"
line="${!var}"
test "x$line" = xauto && line="$mode_auto"
mode="${line%% *}"
case "x$line" in
x) ;;
x*\ *)
echo "xrandr for $ext: new mode $line"
xrandr --newmode $line
xrandr --addmode $ext $mode
xrandr --output $ext --mode $mode
;;
x*)
echo "xrandr for $ext: known mode $line"
xrandr --output $ext --mode $mode
;;
esac
done
fi
This code cannot work for my laptop because my outputs are named "DVI1" and
"LVDS1". So the settings from yast-systemconfig for randr-defaults have no
effect.
I have now found a workaround (only for me), I pasted the following code into
Xsetup (switch internal screen off, when external connected):
EXTERNAL_OUTPUT="DVI1"
INTERNAL_OUTPUT="LVDS1"
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
$EXTERNAL_OUTPUT --auto $EXTERNAL_LOCATION) &
else
xrandr --output $INTERNAL_OUTPUT --auto
fi
now the kdm background is too small, but that does not hurt too much.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.