You are not logged in.

#1 2012-07-29 19:13:40

VInze
Member
From: Sneek
Registered: 2012-07-26
Posts: 19

[Solved] Can't get the DPI setting right

After a couple of hours searching and trying possible solutions without success I am going to ask it here:

Recently I installed Arch from the latest install media (2012.07.15) and it's almost perfectly working.
The only problem I just can't solve is getting the DPI right, some details of my laptop:

Screen diagonal: 13,3"
Resolution: 1366x768
Screen size: 294,5 mm x 165,6 mm
Optimal DPI: 118 (to be precise: 117.83)

But my xorg(?) thinks something very different:

[vincent@Vinz2k ~]$  xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    1366x768 pixels (361x203 millimeters)
  resolution:    96x96 dots per inch

I have tried all the suggestions from the wiki, and a handful of suggestions I found through Google.

File: /etc/X11/xorg.conf.d/90-monitor.conf

Setting the display size:

Section "Monitor"
    Identifier             "Monitor0"
    DisplaySize            294 165
EndSection

Manually setting the DPI:

Section "Monitor"
    Identifier             "Monitor0"
    Option                 "DPI" "118 x 118"
EndSection

File ~/.Xresources

Xft.dpi: 118

Unfortunately nothing worked and the DPI stays on 96x96.
Anyone who can help me out on this?

Last edited by VInze (2012-07-30 08:53:23)

Offline

#2 2012-07-29 20:10:21

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: [Solved] Can't get the DPI setting right

Do you use a DE? They often have settings-managers that mess with these things.

Last edited by mariusmeyer (2012-07-29 20:10:36)

Offline

#3 2012-07-29 20:22:39

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: [Solved] Can't get the DPI setting right

Set the display resolution on /etc/X11/xinit/xserverrc

exec /usr/bin/X -nolisten tcp "$@" -dpi 118

I use -dpi 100 myself, 118 is a little too high for me smile

Offline

#4 2012-07-29 20:25:28

VInze
Member
From: Sneek
Registered: 2012-07-26
Posts: 19

Re: [Solved] Can't get the DPI setting right

Ah of course, forgot to mention that.. I'm using Openbox and the settings manager i'm using is LXAppearance with the obconf plugin (AUR)
But it doesn't have any settings for setting the DPI, so I don't know if that's causing the problem..

Offline

#5 2012-07-29 20:26:39

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [Solved] Can't get the DPI setting right

I don't trust xdpyinfo, what does this say:

# grep "DPI" /var/log/Xorg.0.log

ᶘ ᵒᴥᵒᶅ

Offline

#6 2012-07-29 20:28:33

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: [Solved] Can't get the DPI setting right

My solution is DE agnostic, it's a system-wide X setting. Go ahead and try it out.

Offline

#7 2012-07-29 20:45:37

VInze
Member
From: Sneek
Registered: 2012-07-26
Posts: 19

Re: [Solved] Can't get the DPI setting right

Onyros wrote:

Set the display resolution on /etc/X11/xinit/xserverrc

exec /usr/bin/X -nolisten tcp "$@" -dpi 118

I use -dpi 100 myself, 118 is a little too high for me smile

Tried setting it there, but it doesn't seem to work.. Even when I set it to 75 (I should see a big difference) nothing changes.

litemotiv wrote:

I don't trust xdpyinfo, what does this say:

# grep "DPI" /var/log/Xorg.0.log

It says:

[    14.633] (**) intel(0): DPI set to (119, 121)

That looks more like the 118 I need, were or what sets that value?

Last edited by VInze (2012-07-29 20:46:06)

Offline

#8 2012-07-29 20:51:49

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [Solved] Can't get the DPI setting right

VInze wrote:

That looks more like the 118 I need, were or what sets that value?

The Intel driver sets that value based on the screen dimensions it detects. The previous log line:

# grep -B 1 "DPI" /var/log/Xorg.0.log

shows the dimensions it found.

Last edited by litemotiv (2012-07-29 20:53:33)


ᶘ ᵒᴥᵒᶅ

Offline

#9 2012-07-30 08:52:41

VInze
Member
From: Sneek
Registered: 2012-07-26
Posts: 19

Re: [Solved] Can't get the DPI setting right

Alright, although I stil don't don't how to set my DPI manually, I guess the problem is solved.
Thank all!

Offline

Board footer

Powered by FluxBB