Le 21 février 2013 à 18:23 CET, Andre Klärner a écrit :
> On Thu, Feb 21, 2013 at 03:42:14PM +0100, Uli Schlachter wrote:
>> On 20.02.2013 13:41, WANG Chao wrote:
>> [...]
>> > After some work, any X client's DPI is 120 except Awesome WM itself.
>> > Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96.
>> 
>> How are you setting the DPI everywhere else?
>
> Shouldn't one set this via the xorg.conf? I think there was an option to
> set the DPI for each screen, which should be determined usually
> automaticaly?

AFAIK it's global per display, and I've had some trouble setting it from
xorg.conf.

However you can set it from your .xinitrc using "xrandr --fbmm". Here's
an example to set it to the actual DPI of your display instead of a
hard-coded value of 96 DPI:

    xrandr --fbmm `xrandr | sed -n '/ connected / {s/.* \([0-9]\+\)mm x 
\([0-9]\+\)mm/\1x\2/p;q}'`

<rant against="Xorg">
However, you won't need this if you're using the NVIDIA proprietary
driver, because they're doing The Right Thing™: the DPI is set to match
the DPI actually reported by your screen.

Other Xorg drivers (nouveau, intel, radeon or whatever), OTOH, read the
actual DPI from the screen, and then discard it and set it to 96 dpi "to
be consistent with Windows". But hey, don't worry, it's NOTABUG
(https://bugs.freedesktop.org/show_bug.cgi?id=23705).
</rant>

Cheers,
-- 
Thomas/Schnouki

Attachment: pgpXAjNRujv_7.pgp
Description: PGP signature

Reply via email to