Skip to content

Commit

Permalink
Adding basic xrandr support for lenny to enforce a particular resolut…
Browse files Browse the repository at this point in the history
…ion through bootparameter.
  • Loading branch information
kaihendry authored and daniel-baumann committed Jan 29, 2009
1 parent 5f62377 commit 849a3d4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/live-bottom/21xvidemode
Expand Up @@ -30,6 +30,8 @@ then
exit 0
fi

[ -n "$XVIDEOMODE" ] || exit

. /scripts/live-functions

log_begin_msg "Configuring X video modes"
Expand All @@ -38,8 +40,15 @@ log_begin_msg "Configuring X video modes"

. /live.vars

if [ -n "$XVIDEOMODE" ]
if [ $(cat /root/etc/debian_version | sed 's|\..*$||') -ge 4 ]
then
# lenny or newer
if [ -x "$(which xrandr 2>/dev/null)" ]
then
echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode
fi
else
# etch
mount -o bind /sys /root/sys
mount -o bind /proc /root/proc
mount -o bind /dev /root/dev
Expand Down

0 comments on commit 849a3d4

Please sign in to comment.