LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2007, 05:45 PM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
100 DPI fonts in recent Slackware-current


Greetings,

I'm having some trouble getting 100DPI fonts on a Slackware-current (from June 1st).

Here's what I've done, which works on another computer:
  1. Change the font settings in xorg.conf to put 100dpi fonts first
  2. Change the displaysize to in the xorg.conf monitor setting
  3. try startx -dpi 100 (which works, and proves I have the right displaysize in the above point, as shown by xdpyinfo)

With these settings, my xorg.0.log says (among others):

(**) intel(0): Display dimensions: (260, 195) mm
(**) intel(0): DPI set to (100, 133)

These are the correct settings by the way.
However, when I'm done logging in, xdpyinfo shows resolution 86x86 dots per ince (304x228 millimetres) which is not what I set in xorg.conf, and also not what X reports when booting (see above).

What really confuses me is that xrdb -query reports Xft.dpi to be 96.

So - can anyone shed some light as to why Xft.dpi reports 96 DPI, xdpyinfo reports 86 DPI, while Xorg.0.log repots 100 DPI, and the display *CLEARLY* isn't 100DPI ?

Any insight would be greatly appreciated, as this is driving me nuts.

For arguments sake I have the exact same setup on a different laptop running the exact same -current, and it works flawlessly, so I probably missed some little detail when I did the new laptop, or maybe it's a problem with the intel driver?

Thanks in advance, and thanks for reading

-Y1
 
Old 06-06-2007, 10:12 PM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

What resolution are you running at?

I usually calculate the DisplaySize settings using the following formula:

Dimension/DPI x 25.25

For example, for 1024 x 768 resolution:

1024/100dpi = 10.24 x 25.25 = 258.56
768/100dpi = 7.68 x 25.25 = 193.92

That yields DisplaySize 258.56 193.92 for my xorg.conf setting to provide 100 dpi at 1024x768

Code:
DisplaySize settings for 100 dpi at various resolutions: 

1440x900  => DisplaySize 363.60  227.25
1280x1024 => DisplaySize 323.20  258.56
1152x864  => DisplaySize 290.88  218.16
1024x768  => DisplaySize 258.56  193.92
My xorg.conf with various settings, 100 dpi is not commemnted out at the moment
My screen resolution is 1440 x 900
Code:
       #DisplaySize  375.75  236.72     #  96 dpi
        DisplaySize  363.60  227.25     # 100 dpi
       #DisplaySize  330.55  206.60     # 110 dpi
       #DisplaySize  303.00  189.38     # 120 dpi
Using the setting for 100dpi yields the following:
Code:
steve@moon:~$ xdpyinfo | grep resolution
  resolution:    100x100 dots per inch
steve@moon:~$
Also, when I used nvidia, I needed to pass an option that told the card not to poll the monitor for settings or else my DisplaySize settings were ignored. I dont know if this applies to you card as well or not. I use ATI now and have forgotten the option.



HTH
 
Old 06-07-2007, 12:14 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Hi, and thanks for answering!

I'm on 1024x768, so the correct settings are 260x195mm (rounded, which is what X does anyway). I changed them to 258.56 193.92 but it makes no difference - the Xorg log still shows the correct setting, but xdpyinfo gives the wrong resolution anyway - maybe I need a special setting for my Intel card to turn stop polling the screen there as well, or maybe there's an Xresources setting hidden somewhere that sets this, overriding the xorg.conf displaysize...

-Y1
 
Old 06-07-2007, 01:01 AM   #4
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Does the desktop environment you use change any of those settings?
 
Old 06-07-2007, 01:12 AM   #5
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
One one user it was - thanks for pointing it out (it was set to 96 DPI, which explained the xrdb -query which gave Xft.dpi = 96) setting. However, for the other user it was not.

What I did find out was that by adding
Code:
Option "NoDCC"
to the Section "Device" of xorg.conf, my DPI has increased from 86 to 96.

I have no clear idea on what exactly NoDCC does though..

The Xorg.0.log still says correctly that the setting is 100DPI with the right display size, but for all users it remains 96DPI when tested with xdpyinfo.

Maybe an additional option needs to be passed to the Intel controller
 
Old 06-07-2007, 03:53 PM   #6
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
I'm out of ideas at this point, but as you suggested, it could be a problem with the Intel driver (it seems to be the only difference between the two systems).
 
Old 06-09-2007, 11:33 AM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
This is the option I needed to pass to the nvidia (not nv) driver to use the DisplaySize option:
Code:
Option "IgnoreEDID" "True"
I have no reason to believe this will work for you, but it might be worth a try.
 
Old 06-25-2007, 05:44 PM   #8
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

Came across the following and thought of this thread. Not sure whether you got things sorted or not but perhaps the fist option line in the example below is what you might be looking for. It's from a system using your video chip (or at least the driver):
Code:
Section "Monitor"
  Option       "CalcAlgorithm" "CheckDesktopGeometry"
  DisplaySize   385 240 
  HorizSync    30-82
  Identifier   "Monitor[0]"
  ModelName    "1280X800@75HZ"
#  ModelName    "1024X600@75HZ"
  Option       "DPMS"
  VendorName   "--> LCD"
  VertRefresh  58-75
  UseModes     "Modes[0]"
EndSection
HTH
 
Old 06-26-2007, 07:49 AM   #9
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Haven't seen that Option before - will try as soon as I get back home and report back if it works - thanks much!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a quick guide to getting 100 dpi fonts in X Old_Fogie Slackware 45 04-05-2008 03:18 PM
how do i use 100 dpi fonts? webazoid Linux - Software 0 07-09-2004 06:21 AM
how to use 100 dpi fonts in mdk 10? webazoid Linux - Software 0 07-08-2004 06:56 AM
what's difference between 75 dpi and 100 dpi fonts? webazoid Linux - Software 0 07-06-2004 10:26 PM
What TV tuner card works 100% at Slackware 9.1 (current)? Drax_NS Slackware 5 04-07-2004 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration