Jump to content

How to change DPI settings? [solved]


Phantom
 Share

Recommended Posts

[root@localhost phantom]# xdpyinfo | grep resolution
 resolution:    75x75 dots per inch

 

How can I change this to 96x96 dpi ?

 

I followed a guide here to activate the 100dpi fonts, so that's ok, but I would like the overall screen resolution to be 96dpi.

 

I got it working through changing the /usr/X11R6/bin/startx file, but this seems only to work if I start "Startx" as root, during normal bootup (with auto logon as user) I still have 75x75.

Link to comment
Share on other sites

The screen size must be set correctly to get the correct DPI. Insert the DisplaySize line in /etc/X11/xorg.conf

Section "Monitor"

Identifier "monitor1"

HorizSync 30.0-115.0

VertRefresh 50.0-160.0

DisplaySize 401 302

Option "DPMS"

EndSection

 

Now run xdpyinfo. Does it report the correct resolution?

Link to comment
Share on other sites

Those are the physical dimensions of your screen in mm

 

[root@ferrari phantom]# xdpyinfo | grep resolution
 resolution:    100x100 dots per inch
[root@ferrari phantom]#

 

:thanks: very much sir :thumbs::beer:

 

Grub gave me also the option go high-def for the boot screens, got those in 1400x1050, oh boy, things are getting better and better.

 

Now of the optimise my fonts and firefox :P

 

Thanks again.

Link to comment
Share on other sites

I'm just trying to do the same on my machine as well. Do I just measure it horizontally/vertically to get the mm? It's not done off the diagonal is it?

Link to comment
Share on other sites

OK, i went with those measurements, and it reports:

 

[ian@ianlinux ian]$ xdpyinfo | grep resolution

  resolution:    91x90 dots per inch

[ian@ianlinux ian]$

 

I did measure with a ruler though, so might have not been too accurate? Shall I just increase the values until it is reported correctly?

Link to comment
Share on other sites

I used a calculation found on the net:

 

screen size X 25.4 / 100

 

that gives for my 1400x1050, screen =

 

1400 x 25.4 = 35560 / 100 = 355 (no number after , )

 

1050 x 25.4 = 26670 / 100 = 266

 

So my screen res is 355 266, and that gave me 100dpi

Edited by Phantom
Link to comment
Share on other sites

Hi daniewicz, yeah all cool now. I used the calculator that phantom posted to work it out (I was using a ruler to measure it, so it wasn't quite right).

 

With the calculator my settings come through as width=260, height=195.

 

Many thanks for your help, had to resize all the fonts from 10 to 8 though, as under 75dpi I needed to make them bigger to see them!! :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...