You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, April 22nd 2007, 2:28pm

Plz assist how to set a screen resolution of 107 dpi!

In:
System Settings / Appearance / Fonts
one can set the "Force Fonts DPI -- but only toggle between 2 values: 96 or 120.

Now my 14.1" TFT screen resolution is a calculated 107.1!
This is quite odd between these 2 values :(

Any suggestions how I can add this value to this menue?

Thanks! :)
Acer Travelmate 2483NWXMI
Celeron M 430
512MB 80GB DVD+-RW 14,1" WXGA

Ubuntu 7.04 „Feisty Fawn“
Mac OS 6.04 - 10.4.9

kriko

Trainee

Posts: 127

Location: Slovenia

  • Send private message

2

Sunday, April 22nd 2007, 4:16pm

It would be better if you set dpi globally, so in xorg.conf

Option "DPI" "string"

E.g:
Option "DPI" "75 x 85"

You can verify with:

Source code

1
#xdpyinfo | grep -B1 dot



which should generate output like this:


dimensions: 1280x1024 pixels (382x302 millimeters)
resolution: 85x86 dots per inch

3

Sunday, April 22nd 2007, 5:05pm

Sorry, I am new with KDE -- plz assist!

Thanks for the advice!

Source code

1
2
3
$ xdpyinfo | grep -B1 dot
  dimensions:    1280x800 pixels (301x192 millimeters)
  resolution:    108x106 dots per inch


I am able to open xorg.conf in Kate right from the GUI :D cool
;) maybe I'll switch from Mac OS X

Now xorg.conf doesn't contain this line -- so wheredo I put it?

Source code

1
Option "DPI" "108 x 106"


most probably:

Source code

1
2
3
4
Section "Screen"
	Identifier	"Default Screen"
	Device		"Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
	Monitor		"Generic Monitor"

HERE?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x800"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x800"
	EndSubSection
EndSection
Acer Travelmate 2483NWXMI
Celeron M 430
512MB 80GB DVD+-RW 14,1" WXGA

Ubuntu 7.04 „Feisty Fawn“
Mac OS 6.04 - 10.4.9

kriko

Trainee

Posts: 127

Location: Slovenia

  • Send private message

4

Sunday, April 22nd 2007, 5:36pm

Try putting it to section screen (at beggining):

Source code

1
2
Section "Screen"
    Option "DPI" "108 x 106"


Note: I took this line from nvidia readme, but I think it is not driver-related thing.
You also need to be root to modify this file (read-only if you are normal user):

Source code

1
2
#sux
#kwrite /etc/X11/xorg.conf

5

Sunday, April 22nd 2007, 9:31pm

I am not sure...

whether any impact occurs.
I put the line at 3 different places.
It looks like the default 96 DPI was set.
Acer Travelmate 2483NWXMI
Celeron M 430
512MB 80GB DVD+-RW 14,1" WXGA

Ubuntu 7.04 „Feisty Fawn“
Mac OS 6.04 - 10.4.9

kriko

Trainee

Posts: 127

Location: Slovenia

  • Send private message

6

Sunday, April 22nd 2007, 9:47pm

Then try to add this line to section Monitor:

Source code

1
    DisplaySize     417    333



Source code

1
2
                          X         Y
    DisplaySize     417    333


Now, calculate your values for x,y:
X = resolutionX/DPI*25.4
Y = resolutionX/DPI*25.4

Example for my screen (1600x1200, 97x91 DPI):
X= 1600/97*25.4
Y= 1200/91*25.4

You migt round down given results, then restart X and verify:

Source code

1
2
xdpyinfo | grep resol
resolution:    97x91 dots per inch


If dpi is still wrong, but close, try to decrease/increase DisplaySize values till you get it right.

This post has been edited 3 times, last edit by "kriko" (Apr 22nd 2007, 9:48pm)


7

Monday, April 23rd 2007, 7:11am

well done!

Source code

1
2
xdpyinfo | grep resol
resolution:    108x106 dots per inch


GREAT
:)
Thanks!
Acer Travelmate 2483NWXMI
Celeron M 430
512MB 80GB DVD+-RW 14,1" WXGA

Ubuntu 7.04 „Feisty Fawn“
Mac OS 6.04 - 10.4.9