SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I spent alot of time trying to figure this out, and just wanted to put it here for any newcomers to slack.
background: slackware and most gnu/linuci's use 75dpi x 75 dpi fonts. windows uses 96 dpi x 96dpi by default. gnu/linux fonts never looked right to me and as I am new didnt have time to get into the fonts thing. obviously most webpages, etc are built with 96x96 in mind, so to render your webpages better and cleaner, you might find this helpfull.
I found that many people recommend 96x96. Now I got 96x96 to work just fine by my how to below, but found that console fonts were a little wierd looking on my eyes. Knowing that Pat gives you the "100 dpi package" in "X" section when you install slack 10.2 I decided to try out 100 dpi x 100 dpi and so now my KDE, fluxbox look really nice as do my terminals.
Okay, Old_Fogie, help me out. I've tried this before, and it's never worked. So here's my info...
First, the native Slackware resolution:
Code:
mingdao@silas:~$ xdpyinfo | grep "resolution"
resolution: 85x86 dots per inch
mingdao@silas:~$ xrandr
SZ: Pixels Physical Refresh
*0 1280 x 1024 ( 382mm x 302mm ) *60
So, a little math...
25.4 divided by 100 = 0.254 x 1280 = 325.1 (that's my milimeters for my width)
25.4 divided by 100 = 0.254 x 1024 = 260.1 (that's my millimeters for my height)
(but that's not what "xrandr" reports...)
So, the change to "/etc/X11/xorg.conf"
mingdao@silas:~$ xdpyinfo | grep "resolution"
resolution: 85x86 dots per inch
No, it didn't change.
Restart the OS:
Code:
mingdao@silas:~$ xdpyinfo | grep "resolution"
resolution: 85x86 dots per inch
No, it didn't change.
Why not? What did I do wrong?
I've tried this little tweak many times over the past few years, and it has never changed in my systems. Not with the old XFree86 whateveritwas, nor with Xorg.
maybe you should try putting in the exact number you get from the math, and not round it up.... don't know just a tought of a newbie like i am, but i tried this tutorial and could see the difference from the first time. so .. it is a very valid guide.
what type of monitor do you have? Is it possible, that your monitor sends DCC information, which is, basically the monitor telling the pc what the monitor's specification is and what it can handle.
take a look in your /var/logs and see if you get any DCC info, or if your video card when booting up is givig any info related to it.
This morning I decided to look at the Nvidia driver's README file to see what I could find. And shore nuff, right in the Dots Per Inch Appendix, them fellers had the answer:
Quote:
Appendix Y. Dots Per Inch
DPI (Dots Per Inch), also known as PPI (Pixels Per Inch), is a property of an X screen that describes the physical size of pixels. Some X applications, such as xterm, can use the DPI of an X screen to determine how large (in pixels) to draw an object in order for that object to be displayed at the desired physical size on the display device.
You can query the DPI of your X screen by running:
% xdpyinfo | grep -B1 dot
which should generate output like this:
dimensions: 1280x1024 pixels (382x302 millimeters)
resolution: 85x86 dots per inch
That's exactly what I'm getting:
Code:
mingdao@silas:/server2/Chinese_study$ xdpyinfo | grep -B1 dot
dimensions: 1280x1024 pixels (382x302 millimeters)
resolution: 85x86 dots per inch
and here's why:
Code:
mingdao@silas:/server2/Chinese_study$ less /var/log/Xorg.0.log | grep -i DPI
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/cyrillic/"
(--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config option
Furthermore, them fellers tell several ways to change it.
At the moment I'm out of time, and also, I don't know why I would want it to be 100 x 100 dpi.
FWIW, I got my laptop to use xfree86 and do this too.
That's interesting to see that nvidia is overriding the xorg. As I do not have an nvidia card to experiment with, it would be nice if you OR another nvidia user were able to experiment and post your results back so we could share with others. I will add it to the first post then.
Regarding your question about why you'd want to, check out my post #8 here again if you have more questions try me
b3rx@zu:~$ xdpyinfo | grep -B1 dot
dimensions: 1600x1200 pixels (406x305 millimeters)
resolution: 100x100 dots per inch
Code:
b3rx@zu:~$ less /var/log/Xorg.0.log | grep -i DPI
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/cyrillic/"
(WW) NVIDIA(0): DPI from EDID.
(**) NVIDIA(0): DPI set to (100, 100); computed from "DisplaySize" Monitor section option
This option specifies the Dots Per Inch for the X screen; for example:
Option "DPI" "75 x 85"
will set the horizontal DPI to 75 and the vertical DPI to 85. By default, the X driver will compute the DPI of the X screen from the EDID of any connected display devices. See Appendix Y, Dots Per Inch for details. Default: string is NULL (disabled).
Since that seemed like the most sensible way to do this, I put it in my "/etc/X11/xorg.conf" file:
mingdao@silas:~$ less /var/log/Xorg.0.log | grep -i DPI
<snip the font stuff>
(**) NVIDIA(0): Option "DPI" "100 x 100"
(**) NVIDIA(0): DPI set to (100, 100); computed from "DPI" X config option
and got this result:
Code:
mingdao@silas:~$ xdpyinfo | grep -B1 dot
dimensions: 1280x1024 pixels (325x260 millimeters)
resolution: 100x100 dots per inch
And nothing looks any different at all to me.
I've looked at Firefox, Thunderbird, GAIM, GKrellM, Xterm, Konsole,
KWord, Kate, AmaroK, Xfce settings manager ... they're either the
same, or not as good. On my TO-DO list is build OOo-2.0.3, so I have
not looked at it; nor printed in Slackware and Windoze.
Otherwise, I seem to be missing the boat. Or perhaps my monitor does
not need any of this tweaking.
for kicks and giggles, with those settings for dpi that you have for 100x100 what if you dropped down from let's say 24 color to 16 and see what happens. Or try a slightly smaller display resolution of 1152x864 in lieu of what you have and see.
Okay, mate, I tried your suggestions. They looked much worse.
I posted some images for you, but I think they don't look proper. I'm going to
do some other things to make my fonts look good. But I still don't see what this
100x100 dpi has over my default 86x85 dpi set by my monitor.
NB: I'm running the Xfce desktop atm, and used KSnapshot for those screenshots.
If you'd like, I could redo them with imagemagick using this command:
import -w root -quality 100 <location_to_save>
which would make better quality shots. I despise KDE (Krummy Desktop Excuse) and
just about all the K apps.
And btw, my monitor won't run at 1152x864 at all. Not that it matters, because I
am only going to use it at 1280x1024. I'm looking for more screen real estate,
not less.
Last edited by Bruce Hill; 07-19-2006 at 08:37 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.