summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2013-08-28 23:10:19 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2013-08-28 23:10:19 +0200
commit387a2ccf8fe700c7a53827622e65ffcf39bde518 (patch)
treef2c4d26d78e0df032145a964431b41017234ef19 /config/chroot_local-hooks
parent968c50082deb6d8363bd3c0b3de214603ac1f4ba (diff)
downloadkanotix-387a2ccf8fe700c7a53827622e65ffcf39bde518.zip
kanotix-387a2ccf8fe700c7a53827622e65ffcf39bde518.tar.gz
gfxdetect lightdm hack: force dpi
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/gfxdetect4
1 files changed, 4 insertions, 0 deletions
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