Alex Deucher wrote:
[...]
Apparently 'xdpyinfo' has a mind of its own! ;)
Culprit is something in 'radeon':
# grep 'Image Size:' /var/log/Xorg.0.log | uniq
(II) RADEON(0): clock: 154.0 MHz Image Size: 593 x 371 mm
This is from the edid.
# grep 'screen physical' /var/log/Xorg.0.log
(II) RADEON(0): Setting screen physical size to 508 x 317
This is from the xserver. The display size is all handled in the
xserver rather than the driver. All the driver does is pass the edid
along. Recent xservers default to 96 dpi.
Funny you should say that! The HDMI cable arrived in the mail today.
When I got home from work, I replaced the DVI-to-HDMI converter cable
and booted. I currently have the HD 4850 installed, but will give the
HD 5750 a try after sending this message.
When radeondrmfb came up, no pink line. (That is as expected: the HD
4850 works fine with any connector cable I use, including VGA-Dsub-KVM.)
When X came up, the screen was using the correct resolution
(1920x1200, according to monitor OSD info), but the fonts were all Bad
and Wrong.
Here is a further clue:
$ xdpyinfo | grep -A 2 "screen #0"
screen #0:
dimensions: 1920x1200 pixels (593x371 millimeters)
resolution: 82x82 dots per inch
The behavior of my X server with respect to screen size settings altered
with the new cable! None of the installed software has changed since my
earlier posts which were quoted above, nor have any of the config files.
In the previous Xorg.0.log, "radeon" was setting the DPI to 82 (which is
correct for my monitor: 82.3 dots/in):
(**) RADEON(0): DPI set to (82, 82)
For reasons I don't understand the physical size of the monitor was
being altered when I used the DVI-to-HDMI cable, and now that I am using
a real HDMI cable the server is _not_ altering the physical size
settings. Is this a bug in the X server?
I have attached a diff file showing what changed in Xorg.0.log when I
used the HDMI cable for the first time tonight.
I believe that the X server defaults you mention are not built into the
source code, but instead are enforced by the various distributions. As
I learn things about Linux, I keep a repository of text files with
voluminous notes; here is the contents of one file I have written, which
explains what I learned about DPI settings on Debian:
DPI issues.txt
==============
I found that default configurations in packages for X in Debian
force the DPI settings to 100 dpi instead of allowing the server to
calculate a more accurate figure according to the system's
characteristics. Historically, this made sense. But modern X
servers now have the ability to deal with DPI reliably over a wide
range of settings.
No changes to /etc/X11/xorg.conf would allow accurate DPI settings
to be used by the X server, and 100 dpi was selected instead.
Defeating the forced-100 dpi setting involved 2 files:
xinit: /etc/X11/xinit/xserverrc
# diff xserverrc.orig xserverrc
5c5
< exec /usr/bin/X11/X -dpi 100 -nolisten tcp
---
> exec /usr/bin/X11/X -nolisten tcp
xdm: /etc/X11/xdm/Xservers
# diff -s Xservers.orig Xservers
35c35
< :0 local /usr/bin/X vt7 -dpi 100 -nolisten tcp
---
> :0 local /usr/bin/X vt7 -nolisten tcp
This text file was written several years ago. As I look at it now, I
think I probably changed one file, had no luck, changed the other file,
and when it worked concluded (mistakenly) that both files had to be
changed. I am not going to take the time to test it out right now, but
I imagine that only one of those files (I use XDM, so probably the
second file) had to be edited to defeat the Debian-enforced 100 DPI setting.
Since that time, I have expected my X software to adjust to my hardware,
and not enforce arbitrary settings.
I'll see what happens with the HD 5750 now. I will probably _not_ keep
the HD 5750 installed -- I rather prefer the acceleration I get with the
HD 4850 -- but as new Evergreen code appears in the DRM, the "radeon"
driver, or [someday] Mesa, I will swap cards and test it. I watch LKML,
Phoronix, and the git repos for DRM, xf86-video-ati, and mesa each day.
Someday I'll _want_ to leave the HD 5750 installed! The sooner the
better....)
Thanks Alex,
Dave W.
--- /home/dawitbro/Desktop/HD4850-modeset=1-Xorg.0.log 2010-02-27 13:35:41.000000000 -0500
+++ /home/dawitbro/Desktop/HD4850-modeset=1-HDMI-Xorg.0.log 2010-03-01 20:44:42.000000000 -0500
@@ -4,7 +4,7 @@
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.33-rc8-git.100213.desktop.kms x86_64 Debian
Current Operating System: Linux desktop 2.6.33-drt100223-383be5d.100225.desktop.kms #1 SMP PREEMPT Thu Feb 25 09:50:13 EST 2010 x86_64
-Kernel command line: root=/dev/sda10 ro acpi_enforce_resources=lax 3 fbcon=scrollback:256k,font:8x16
+Kernel command line: root=/dev/sda10 ro acpi_enforce_resources=lax fbcon=scrollback:256k,font:8x16
Build Date: 16 February 2010 09:54:42AM
xorg-server 2:1.7.5-0upstream (Dave Witbrodt <[email protected]>)
Current version of pixman: 0.16.4
@@ -13,7 +13,7 @@
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
-(==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 27 13:14:38 2010
+(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 1 20:15:43 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section. Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
@@ -339,10 +339,8 @@
(II) RADEON(0): Output VGA-0 has no monitor section
(II) RADEON(0): Output DVI-0 has no monitor section
(**) RADEON(0): Option "ModeDebug" "true"
-(II) RADEON(0): EDID for output HDMI-0
-(II) RADEON(0): EDID for output VGA-0
(WW) EDID preferred timing clock 154.00MHz exceeds claimed max 150MHz, fixing
-(II) RADEON(0): EDID for output DVI-0
+(II) RADEON(0): EDID for output HDMI-0
(II) RADEON(0): Manufacturer: HSD Model: 20e5 Serial#: 557
(II) RADEON(0): Year: 2010 Week: 1
(II) RADEON(0): EDID Version: 1.3
@@ -397,11 +395,36 @@
(II) RADEON(0): 4c4b3337413030353537000000fd0038
(II) RADEON(0): 4b18500f000a202020202020000000fc
(II) RADEON(0): 0048483238310a2020202020202001de
-(II) RADEON(0): Not using mode "1920x1200" (bad mode clock/interlace/doublescan)
+(II) RADEON(0): EDID vendor "HSD", prod id 8421
+(II) RADEON(0): Using hsync ranges from config file
+(II) RADEON(0): Using vrefresh ranges from config file
+(II) RADEON(0): Printing DDC gathered Modelines:
+(II) RADEON(0): Modeline "1920x1200"x0.0 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync (74.0 kHz)
+(II) RADEON(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
+(II) RADEON(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz)
+(II) RADEON(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz)
+(II) RADEON(0): Modeline "640x480"x0.0 31.50 640 664 704 832 480 489 492 520 -hsync -vsync (37.9 kHz)
+(II) RADEON(0): Modeline "640x480"x0.0 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz)
+(II) RADEON(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
+(II) RADEON(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz)
+(II) RADEON(0): Modeline "1280x1024"x0.0 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
+(II) RADEON(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz)
+(II) RADEON(0): Modeline "1024x768"x0.0 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz)
+(II) RADEON(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
+(II) RADEON(0): Modeline "832x624"x0.0 57.28 832 864 928 1152 624 625 628 667 -hsync -vsync (49.7 kHz)
+(II) RADEON(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz)
+(II) RADEON(0): Modeline "800x600"x0.0 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz)
+(II) RADEON(0): Modeline "1152x864"x0.0 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync (67.5 kHz)
+(II) RADEON(0): Modeline "1680x1050"x0.0 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
+(II) RADEON(0): Modeline "1600x1200"x0.0 162.00 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync (75.0 kHz)
+(II) RADEON(0): Modeline "1440x900"x0.0 88.75 1440 1488 1520 1600 900 903 909 926 +hsync -vsync (55.5 kHz)
+(II) RADEON(0): Modeline "1400x1050"x0.0 101.00 1400 1448 1480 1560 1050 1053 1057 1080 +hsync -vsync (64.7 kHz)
+(II) RADEON(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
+(II) RADEON(0): Modeline "1280x960"x0.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz)
+(II) RADEON(0): Not using mode "1920x1080" (vrefresh out of range)
(II) RADEON(0): Not using mode "1600x1200" (bad mode clock/interlace/doublescan)
-(II) RADEON(0): Printing probed modes for output DVI-0
+(II) RADEON(0): Printing probed modes for output HDMI-0
(II) RADEON(0): Modeline "1920x1200"x60.0 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync (74.0 kHz)
-(II) RADEON(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz)
(II) RADEON(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(II) RADEON(0): Modeline "1400x1050"x60.0 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync (65.3 kHz)
@@ -424,11 +447,13 @@
(II) RADEON(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz)
(II) RADEON(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
(II) RADEON(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz)
-(II) RADEON(0): Output HDMI-0 disconnected
+(II) RADEON(0): EDID for output VGA-0
+(II) RADEON(0): EDID for output DVI-0
+(II) RADEON(0): Output HDMI-0 connected
(II) RADEON(0): Output VGA-0 disconnected
-(II) RADEON(0): Output DVI-0 connected
+(II) RADEON(0): Output DVI-0 disconnected
(II) RADEON(0): Using user preference for initial modes
-(II) RADEON(0): Output DVI-0 using initial mode 1920x1200
+(II) RADEON(0): Output HDMI-0 using initial mode 1920x1200
(II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
(II) RADEON(0): mem size init: gart size :1fdff000 vram size: s:10000000 visible:f6f6000
(II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
@@ -494,7 +519,7 @@
(II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
(II) AIGLX: Loaded and initialized /usr/lib/dri/r600_dri.so
(II) GLX: Initialized DRI2 GL provider for screen 0
-(II) RADEON(0): Setting screen physical size to 508 x 317
+(II) RADEON(0): Setting screen physical size to 593 x 371
(II) config/udev: Adding input device "Power Button" (/dev/input/event1)
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
@@ -551,13 +576,8 @@
(EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for ""ImExPS/2 Generic Explorer Mouse""
-(II) AIGLX: Suspending AIGLX clients for VT switch
-(II) Open ACPI successful (/var/run/acpid.socket)
-(II) AIGLX: Resuming AIGLX clients after VT switch
-(II) RADEON(0): EDID for output HDMI-0
-(II) RADEON(0): EDID for output VGA-0
(WW) EDID preferred timing clock 154.00MHz exceeds claimed max 150MHz, fixing
-(II) RADEON(0): EDID for output DVI-0
+(II) RADEON(0): EDID for output HDMI-0
(II) RADEON(0): Manufacturer: HSD Model: 20e5 Serial#: 557
(II) RADEON(0): Year: 2010 Week: 1
(II) RADEON(0): EDID Version: 1.3
@@ -638,11 +658,10 @@
(II) RADEON(0): Modeline "1400x1050"x0.0 101.00 1400 1448 1480 1560 1050 1053 1057 1080 +hsync -vsync (64.7 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) RADEON(0): Modeline "1280x960"x0.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz)
-(II) RADEON(0): Not using mode "1920x1200" (bad mode clock/interlace/doublescan)
+(II) RADEON(0): Not using mode "1920x1080" (vrefresh out of range)
(II) RADEON(0): Not using mode "1600x1200" (bad mode clock/interlace/doublescan)
-(II) RADEON(0): Printing probed modes for output DVI-0
+(II) RADEON(0): Printing probed modes for output HDMI-0
(II) RADEON(0): Modeline "1920x1200"x60.0 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync (74.0 kHz)
-(II) RADEON(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz)
(II) RADEON(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(II) RADEON(0): Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(II) RADEON(0): Modeline "1400x1050"x60.0 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsync (65.3 kHz)
@@ -665,7 +684,5 @@
(II) RADEON(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz)
(II) RADEON(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
(II) RADEON(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz)
-(II) "Power Button": Device reopened after 1 attempts.
-(II) "Power Button": Device reopened after 1 attempts.
-(II) "AT Translated Set 2 keyboard": Device reopened after 1 attempts.
-(II) "ImExPS/2 Generic Explorer Mouse": Device reopened after 1 attempts.
+(II) RADEON(0): EDID for output VGA-0
+(II) RADEON(0): EDID for output DVI-0
_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati