From d5c570babfa3c4c3bad88214f173704899a41dd9 Mon Sep 17 00:00:00 2001 From: lcapriotti Date: Sun, 11 Mar 2012 09:42:14 +0100 Subject: [PATCH] Add setdpi to cope with small fonts --- .../includes.chroot/etc/xbmc/setup.d/01-configureXorg.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Files/config/includes.chroot/etc/xbmc/setup.d/01-configureXorg.sh b/Files/config/includes.chroot/etc/xbmc/setup.d/01-configureXorg.sh index dc4b5af..52615fc 100755 --- a/Files/config/includes.chroot/etc/xbmc/setup.d/01-configureXorg.sh +++ b/Files/config/includes.chroot/etc/xbmc/setup.d/01-configureXorg.sh @@ -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 @@ -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 @@ -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