Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
Add setdpi to cope with small fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
lcapriotti committed Mar 11, 2012
1 parent b48e5b7 commit d5c570b
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -73,7 +73,6 @@ if [ "$GPUTYPE" = "NVIDIA" ]; then

if [ "$xbmcParams" != "${xbmcParams%setdpi*}" ] ; then
echo "--set DPI" >> /tmp/debugInfo.txt
/usr/bin/nvidia-xconfig --no-use-edid-dpi # --mode-list="1024x768 800x600"
sed -i -e 's%Section \"Monitor\"%&\n Option \"DPI\" \"120 x 120\"%' /etc/X11/xorg.conf
fi

Expand Down Expand Up @@ -117,6 +116,11 @@ then
fi
fi

if [ "$xbmcParams" != "${xbmcParams%setdpi*}" ] ; then
echo "--set DPI" >> /tmp/debugInfo.txt
sed -i -e 's%Section \"Monitor\"%&\n Option \"DPI\" \"120 x 120\"%' /etc/X11/xorg.conf
fi

if [ $ATICONFIG_RETURN_CODE -eq 255 ]; then
# aticonfig returns 255 on old unsuported ATI cards
# Let the X default ati driver handle the card
Expand All @@ -139,4 +143,7 @@ else
echo "No xorg.conf" >> /tmp/debugInfo.txt
fi

echo "--ps" >> /tmp/debugInfo.txt
ps aux >> /tmp/debugInfo.txt

exit 0

0 comments on commit d5c570b

Please sign in to comment.