From 387a2ccf8fe700c7a53827622e65ffcf39bde518 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Wed, 28 Aug 2013 23:10:19 +0200 Subject: gfxdetect lightdm hack: force dpi --- config/chroot_local-hooks/gfxdetect | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/chroot_local-hooks/gfxdetect b/config/chroot_local-hooks/gfxdetect index 03ece1c..d782203 100755 --- a/config/chroot_local-hooks/gfxdetect +++ b/config/chroot_local-hooks/gfxdetect @@ -8,6 +8,10 @@ if [ -f /etc/kde4/kdm/kdmrc ]; then sed -i 's/.*\(TerminateServer=\).*/\1true/' /etc/kde4/kdm/kdmrc fi +if [ -f /etc/lightdm/lightdm.conf ]; then + sed -i 's|^#*\(xserver-command=X\).*|\1 -dpi 96|' /etc/lightdm/lightdm.conf +fi + if [ -f /usr/share/initramfs-tools/scripts/init-bottom/01gfxdetect ]; then if [ -f /etc/alternatives/glx--fglrx-blacklists-radeon.conf ]; then sed -i 's/.*\(blacklist\)/#\1/' /etc/alternatives/glx--fglrx-blacklists-radeon.conf -- cgit v1.0