Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xf86-video-ati-6.8.0 / xrandr-1.2.3 computing wrong DPI
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
TuxTom
n00b
n00b


Joined: 04 Jan 2007
Posts: 57

PostPosted: Fri Apr 04, 2008 7:57 pm    Post subject: xf86-video-ati-6.8.0 / xrandr-1.2.3 computing wrong DPI Reply with quote

Hi all,

I upgraded xf86-video-ati from 6.6.3 to 6.8.0 today. After restarting X, all fonts were too big, xdpyinfo revealed that resolution was set to 96x96 dpi instead of 85x85. After checking /var/log/Xorg.0.log, I was even more confused, radeon tried to set resolution to 85x114 dpi...? 8O

The physical dimensions (304 x 228 mm) of my screen are already set in the Monitor section of xorg.conf. They are recognized by radeon, but it doesn't compute the right resolution with 6.8.0 any more. After some testing I found out, that it uses the vertical pixel size for both lengths (304 x 304 mm gives me radeon reporting correct 85 x 85 dpi).

But the real problem is: the value computed by radeon actually is not used. It seems xrandr tries to compute the resolution itself and fails (I guess because it doesn't have the screen size). Output of plain xrandr is:
Code:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024
VGA-0 disconnected (normal left inverted right)
LVDS connected 1024x768+0+0 (normal left inverted right) 0mm x 0mm
   1024x768       60.0*+   60.0
   800x600        60.3
   640x480        59.9
S-video disconnected (normal left inverted right)


As a workaround I put
Code:
xrandr --output LVDS --dpi 85
into
Code:
/etc/X11/xinit/xinit.d/90-xrandr
and made it executable. This doesn't change anything on login screen, but the desktop itself now has correct fontsizes and so I can live with it. Having the right resolution from the start would be nice anyway, so... any hints? :wink:


Thanks in advance,

Tom
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Fri Apr 04, 2008 8:31 pm    Post subject: Reply with quote

What xorg-server version are you using?
Back to top
View user's profile Send private message
ksool
Guru
Guru


Joined: 27 May 2006
Posts: 337
Location: Cambridge, MA

PostPosted: Sat Apr 05, 2008 1:58 am    Post subject: Reply with quote

Had the same problem updating from xf86-video-ati from 6.6.3 to 6.8.0. Thanks for the hint. I ended up just moving back to 6.6.3 for the time being but I'll probably see if 6.7.197 works. I'm running xorg-server-1.4.0.90-r2.
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Sat Apr 05, 2008 3:17 am    Post subject: Reply with quote

It's unlikely that 6.7.197 would work as according to the xf86-video-ati driver's author it was a bug in old X servers that ignored DisplaySize options in RandR 1.2 monitor sections. 1.4 seemed like it should be new enough but I'm not completely sure. My laptop also does not correctly report the display size for the LVDS connected screen but I need 6.8.0 because it's the first version that my TV has worked on with the VGA connector at 1360x768. I never actually tried upgrading to xorg-server 1.4 because I didn't want to deal with all the input layer changes until it was stable. As a result, I'm using the same --dpi trick, except I put it in my kdmrc (same effect).
Back to top
View user's profile Send private message
TuxTom
n00b
n00b


Joined: 04 Jan 2007
Posts: 57

PostPosted: Sat Apr 05, 2008 9:54 am    Post subject: Reply with quote

RoundsToZero wrote:
What xorg-server version are you using?

I am using x11-base/xorg-server-1.3.0.0-r5. Haven't tried 1.4.x until now, I might do so if I find some time.

I also found another workaround (change /usr/bin/startx to use defaultserverargs="-nolisten tcp -br -dpi 100", found here: http://gentoo-wiki.com/HARDWARE_Acer_Aspire_5024_WLMi). Maybe this fixes resolution for kdm also...

I will report any success or failure.
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Sat Apr 05, 2008 3:50 pm    Post subject: Reply with quote

Oh yeah, that's the -dpi trick I'm using, not the xrandr one (although that would probably work too, and maybe even work better because it would only set the DPI for the one --output, which is good if you have a second head that's a different physical DPI).
Back to top
View user's profile Send private message
TuxTom
n00b
n00b


Joined: 04 Jan 2007
Posts: 57

PostPosted: Sat Apr 05, 2008 3:51 pm    Post subject: Reply with quote

It seems that upgrading xorg-server to 1.4.x did the trick for me... although Xorg.0.log still tells me that DPI is set to 85x104.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum