ZeeGeek posted <[EMAIL PROTECTED]>, excerpted
below,  on Thu, 12 May 2005 01:59:25 +0800:

> if I start gnome-settings-daemon, the font size of the right click menu in
> fluxbox will be so small that I can't even read. I know it sounds
> ridiculous since the daemon only takes care of gtk programs. but it
> happens here. what's the prob?

Something similar used to happen to me with KDE apps started after
gnome-settings-daemon.

The problem is the xorg DPI setting.  If you haven't specified your
monitor dimensions in xorg.conf, xorg will use a default setting that's
often wildly off.  gnome-settings-daemon comes along, and either detects
the correct setting, or simply sets what it considers a more reasonable
default dpi, causing anything started after that (or that knows to work
with it) to use seriously different dpi settings than anything started
before it.  The font sizes remain the same, but what they scale against,
the dpi, changes.

Often, changing xorg versions will have similar effects -- all your font
settings need to be adjusted -- because the new version uses a different
default dpi, if it hasn't been set properly in your xorg.conf.  At
least... that was a problem I had, back on xfree86, before I discovered
what was causing it.

The solution to both issues, since they are the same issue at the root, is
to properly set your dpi in xorg.conf.  Once properly set, you shouldn't
have any unwanted changes.

Here are the three Section "Monitor"s I have in my current xorg.conf.  I
use the bottom two, a 21" and a 22", currently (using xorg's native
radeon drivers on a dual output Radeon 9200SE), both @ 2048x1536
resolution. The Dell-M991 is a 19" that is now my spare, that will also
run 2048x1536. The setting of interest is the DisplaySize, with the X and
Y dimensions in mm.  My ViewSonic-P220f, the 22", has a viewable screen
area of 400mm x 300mm.  I set the Dell-2125s the same, tho it's possibly
slightly smaller viewable, being a 21".  (22" and 21" monitors usually
have very similar viewable area, within a fraction of an inch. 22"
apparently has a slightly larger overlap behind the frame, outside the
viewable area.)  The 19" Dell-M991 dimensions were measured, the 22"
Viewsonic-P220f dimensions were read directly off the EDID detection data
as logged in Xorg.0.log on every xorg start.  You'll note that I added a
320x240 modeline for the 21/22" monitors, for zooming, as the default xorg
modelines for that resolution don't fit my monitor specs.  The 640x400
modeline is for the last unfree app I have on my system, Master of Orion
original DOS edition, copywrite 1993, which I still play (using DOSBOX) to
this day.  Those modelines were generated from Colas XFree Modeline
Generator, a very handy thing to keep bookmarked.  It's available here:
http://koala.ilog.fr/cgi-bin/nph-colas-modelines .

Section "Monitor"
    Identifier "Dell-M991"
    HorizSync 30-96
    VertRefresh 50-160
    DisplaySize 355 265
    Option "DPMS"
EndSection

Section "Monitor"
    Identifier "Dell-2125s"
    HorizSync 30-121
    VertRefresh 48-160
    DisplaySize 400 300
    Option "DPMS"
    ModeLine "320x240" 20.07 320 336 416 448 240 242 254 280 #160Hz
    ModeLine "640x400" 63.07 640 672 832 896 400 402 414 440 #160Hz for Orion
EndSection

Section "Monitor"
    Identifier "ViewSonic-P220f"
    HorizSync 30-110
    VertRefresh 50-180
    DisplaySize 400 300
    Option "DPMS"
    ModeLine "320x240" 22.57 320 336 416 448 240 242 254 280 #180Hz
EndSection

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
[email protected] mailing list

Reply via email to