[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#237877: Patches for X.Org: dpi settings changes

These patches, for the etch-targeted X.Org server, improve dpi handling in 
several ways.

The first, fallback_dpi.patch, is a new one-line patch that changes the 
xserver's final fallback dpi value from 75 to 100. I've written extensively 
(to this bug report) on why this is a very important and quite safe change 
that would be great to have in the X.Org packages. In summary, since a 
default fallback value will always be required, we should make it a good 
one. This has ramifications for the choosing of default font sizes (in KDE, 
for instance).

The other two items, 905_debian_xdm.diff.diff and xserverrc.diff, are diffs 
to existing Debian patches and files. They remove the forcing of 100 dpi on 
startup, when using startx or xdm. With the pending debconf reforms, and 
the near-ubiquity of DDC, it no longer makes sense to force a specific dpi 
value on startup as the default behaviour. In conjunction with 
fallback_dpi.patch, users for whom dpi auto-calculation fails will notice 
no difference, since X would in this case fall back to 100 dpi anyway. I've 
made more general arguments about dpi handling in my previous posts to 

I'm putting forth these diffs while the X.Org packages are young and 
experimental, since this is the perfect time to try these sorts of changes. 
I hope you'll apply them.

Christopher Martin
--- xorg.orig/trunk/debian/patches/905_debian_xdm.diff
+++ xorg.patched/trunk/debian/patches/905_debian_xdm.diff
@@ -12,8 +12,7 @@
 * config/Xres.cpp: report OS name in greeter widget
 * config/Xserv.ws.cpp:
     - add comments to help local admins
-    - run local server with DPI setting forced to 100 and TCP listening
-      turned off for security
+    - run local server with TCP listening turned off for security
 * config/Xsession: replace guts with simple call to Debian's Xsession
 * config/xdm-conf.cpp:
@@ -111,7 +110,7 @@
 +XCOMM Examples for multiple local X displays:
 +XCOMM :0 local BINDIR/X :0 vt9 -depth 15 -nolisten tcp
 +XCOMM :1 local BINDIR/X :1 vt10 -depth 8 -nolisten tcp
-+:0 local BINDIR/X DEFAULTVT -dpi 100 -nolisten tcp
++:0 local BINDIR/X DEFAULTVT -nolisten tcp
 diff -ruN xc-old/programs/xdm/config/Xsession xc/programs/xdm/config/Xsession
 --- xc-old/programs/xdm/config/Xsession	2004-04-23 19:54:43.000000000 +0000
 +++ xc/programs/xdm/config/Xsession	2004-10-27 05:41:49.532615456 +0000
--- xc.orig/programs/Xserver/hw/xfree86/common/xf86Priv.h
+++ xc.patched/programs/Xserver/hw/xfree86/common/xf86Priv.h
@@ -122,7 +122,7 @@
 #ifndef DEFAULT_DPI
-#define DEFAULT_DPI		75
+#define DEFAULT_DPI		100
--- xorg.orig/trunk/debian/local/xserverrc
+++ xorg.patched/trunk/debian/local/xserverrc
@@ -1,2 +1,2 @@
-exec /usr/bin/X11/X -dpi 100 -nolisten tcp
+exec /usr/bin/X11/X -nolisten tcp

Reply to: