Bug#476135: xserver-xorg-video-radeonhd: strange screen size calculations

2008-04-14 Thread Julien BLACHE
Package: xserver-xorg-video-radeonhd
Version: 1.2.0-1
Severity: normal

Hi,

It looks like radeonhd is doing funny things with the screen size. At least
it made jcristau go WTF?? enough that he asked for this bug :-)

From the log:

(II) RADEONHD(0): Max H-Image Size [cm]: horiz.: 34  vert.: 22 
(II) RADEONHD(0): clock: 96.3 MHz   Image Size:  331 x 207 mm 
(II) RADEONHD(0): Setting screen physical size to 365 x 228 

It also comes up with a funny resolution, it seems:

(**) RADEONHD(0): DPI set to (203, 103)

Config and log attached, anyway.

JB.

-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xorg

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Nov 11  2006 /etc/X11/X - /usr/bin/Xorg
-rwxr-xr-x 1 root root 1831520 Apr  2 20:46 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: ATI Technologies Inc M56P [Radeon Mobility 
X1600]

/etc/X11/xorg.conf does not match checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 3760 Feb  8 19:54 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type man /etc/X11/xorg.conf at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section Files
FontPath/usr/share/fonts/X11/misc
#   FontPath/usr/share/fonts/X11/cyrillic
FontPath/usr/share/fonts/X11/100dpi/:unscaled
FontPath/usr/share/fonts/X11/75dpi/:unscaled
FontPath/usr/share/fonts/X11/Type1
FontPath/usr/share/fonts/X11/100dpi
FontPath/usr/share/fonts/X11/75dpi
# path to defoma fonts
FontPath/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID
FontPath/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
EndSection

Section Module
Loadi2c
Loadbitmap
Loadddc
Loaddri
Loadextmod
Loadfreetype
Loadglx
Loadint10
#   Loadtype1
Loadvbe
Loadsynaptics
EndSection

Section InputDevice
Identifier  MacBook Keyboard
Driver  kbd
Option  CoreKeyboard
Option  XkbRules  xorg
Option  XkbModel  macbook79
Option  XkbLayout fr
#   Option  XkbOptionsapple:badmap
EndSection

Section InputDevice
Identifier  Appletouch Trackpad
Driver  synaptics
Option  CorePointer
Option  Protocol  auto-dev
Option  Emulate3Buttons   false
Option  ZAxisMapping  4 5
Option  MinSpeed  1.0
Option  MaxSpeed  1.0
Option  FingerLow 10
Option  FingerHigh15
Option  TapButton10
Option  TapButton20
Option  TapButton30
# disable tapping  scrolling
Option  TouchpadOff   2
EndSection

Section InputDevice
Identifier  Generic Mouse
Driver  mouse
Option  SendCoreEventstrue
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
Option  Emulate3Buttons   false
Option  ZAxisMapping  4 5
EndSection

Section Device
Identifier  ATI Mobility Radeon X1600 M56P
Driver  radeonhd
BusID   PCI:1:0:0
#   Option  backingstore  true
#   Option  SilkenMouse   off
#   Option  XAANoOffscreenPixmaps true
EndSection

#Section Monitor
#   Identifier  LVDS Panel
#   Option  DPMS
#   HorizSync   28-50
#   VertRefresh 43-75
#EndSection

Section Screen
Identifier  Default Screen
Device  ATI Mobility Radeon X1600 M56P
#   Monitor LVDS Panel
DefaultDepth24
SubSection Display
Depth   1
Virtual 2720900
#   Modes   1440x900 1024x768 800x600 640x480
EndSubSection
SubSection Display
Depth   4
   

Bug#476135: xserver-xorg-video-radeonhd: strange screen size calculations

2008-04-14 Thread Brice Goglin
Julien BLACHE wrote:
 Package: xserver-xorg-video-radeonhd
 Version: 1.2.0-1
 Severity: normal

 Hi,

 It looks like radeonhd is doing funny things with the screen size. At least
 it made jcristau go WTF?? enough that he asked for this bug :-)

 From the log:

 (II) RADEONHD(0): Max H-Image Size [cm]: horiz.: 34  vert.: 22 
 (II) RADEONHD(0): clock: 96.3 MHz   Image Size:  331 x 207 mm 
 (II) RADEONHD(0): Setting screen physical size to 365 x 228 

 It also comes up with a funny resolution, it seems:

 (**) RADEONHD(0): DPI set to (203, 103)
   

Did it work better with radeonhd 1.1.0? If so, can you git bisect to
find when it broke?

Brice




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476135: xserver-xorg-video-radeonhd: strange screen size calculations

2008-04-14 Thread Julien BLACHE
Brice Goglin [EMAIL PROTECTED] wrote:

Hi,

 Did it work better with radeonhd 1.1.0?

I don't think so, see the log...

JB.

-- 
 Julien BLACHE - Debian  GNU/Linux Developer - [EMAIL PROTECTED] 
 
 Public key available on http://www.jblache.org - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 


This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the xorg product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.1~git20080131-3)
Current Operating System: Linux sonic 2.6.24.3 #1 SMP Sat Mar 1 17:27:14 CET 
2008 x86_64
Build Date: 02 April 2008  06:31:57PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
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: Mon Apr 14 19:28:56 2008
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Default Layout
(**) |--Screen Default Screen (0)
(**) |   |--Monitor default monitor
(**) |   |--Device ATI Mobility Radeon X1600 M56P
(==) No monitor specified for screen Default Screen.
Using a default monitor configuration.
(**) |--Input Device MacBook Keyboard
(**) |--Input Device Appletouch Trackpad
(**) |--Input Device Generic Mouse
(**) Option AIGLX off
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) `fonts.dir' not found (or not valid) in 
/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID.
Entry deleted from font path.
(Run 'mkfontdir' on /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID).
(==) Including the default font path 
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType.
(**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(==) RgbPath set to /etc/X11/rgb
(==) ModulePath set to /usr/lib/xorg/modules
(**) Extension Composite is disabled
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Loader magic: 0x7b2660
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 2.0
X.Org XInput driver : 2.0
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: pcidata
(II) Loading /usr/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor=X.Org Foundation
compiled for 1.4.0.90, module version = 1.0.0
ABI class: X.Org Video Driver, version 2.0
(--) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,27a0 card 8086,7270 rev 03 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 8086,27a1 card , rev 03 class 06,04,00 hdr 01
(II) PCI: 00:07:0: chip 8086,27a3 card , rev 03 class 11,01,00 hdr 00
(II) PCI: 00:1b:0: chip 8086,27d8 card 8384,7680 rev 02 class 04,03,00 hdr 00
(II) PCI: 00:1c:0: chip 8086,27d0 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1c:1: chip 8086,27d2 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1c:2: chip 8086,27d4 card , rev 02 class 06,04,00 hdr 81
(II) PCI: 00:1d:0: chip 8086,27c8 card 8086,7270 rev 02 class 0c,03,00 hdr 80
(II) PCI: 00:1d:1: chip 8086,27c9 card 8086,7270 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:2: chip 8086,27ca card 8086,7270 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:3: chip 8086,27cb card 8086,7270 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:7: chip 8086,27cc card 8086,7270 rev 02 class 0c,03,20 hdr 00
(II) PCI: 00:1e:0: chip 8086,2448 card , rev e2 class 06,04,01 hdr 01
(II) PCI: 00:1f:0: chip 8086,27b9 card 8086,7270 rev 02 class 06,01,00 hdr 80
(II) PCI: 00:1f:1: chip 8086,27df card 8086,7270 rev 02 class 01,01,8a hdr 00
(II) PCI: 

Bug#476135: xserver-xorg-video-radeonhd: strange screen size calculations

2008-04-14 Thread Brendon Higgins
Package: xserver-xorg-video-radeonhd
Version: 1.2.0-1
Followup-For: Bug #476135


Hi,

I noticed a similar weird DPI result in my Xorg.0.log, and I suspect the 
Virtual setting (Framebuffer size). My guess 
is that the driver is assuming the entire framebuffer is viewable on screen, 
which is not correct. In my case, I've 
extended the virtual screen to accommodate a second monitor.

My hunch is confirmed when I commented-out the Virtual setting in Xorg.conf. 
Whereas I got this with my manually 
extended framebuffer:
(II) RADEONHD(0): Using 2720x1024 Framebuffer with 2752 pitch
(**) RADEONHD(0): Display dimensions: (340, 220) mm
(**) RADEONHD(0): DPI set to (203, 118)

I got this using the default framebuffer size:
(II) RADEONHD(0): Using 1440x1440 Framebuffer with 1472 pitch
(**) RADEONHD(0): Display dimensions: (340, 220) mm
(**) RADEONHD(0): DPI set to (107, 166)

Of course, in both cases the on-screen resolution was 1440x900.

I'm not sure what's going on with the physical sizes. Perhaps this DPI thing is 
a separate bug?

Hope that's useful,
Brendon


-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xorg

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 2007-10-17 15:27 /etc/X11/X - /usr/bin/Xorg
-rwxr-xr-x 1 root root 1831520 2008-04-03 04:46 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
01:00.0 VGA compatible controller: ATI Technologies Inc M56P [Radeon Mobility 
X1600]

/etc/X11/xorg.conf does not match checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 2343 2008-03-17 13:46 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type man xorg.conf at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section Files
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  kbd
Option  CoreKeyboard
Option  XkbRules  xorg
Option  XkbModel  pc104
Option  XkbLayout us
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
Option  CorePointer
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
EndSection

Section InputDevice
Identifier  Synaptics Touchpad
Driver  synaptics
Option  SendCoreEventstrue
Option  Device/dev/psaux
Option  Protocol  auto-dev
Option  SHMConfig true
Option  TapButton10
Option  TapButton20
Option  TapButton30
Option  VertScrollDelta   15
Option  HorizScrollDelta  15
Option  RTCornerButton3
Option  RBCornerButton2
Option  MinSpeed  0.5
Option  MaxSpeed  1
Option  AccelFactor   0.1
Option  FingerLow 1
Option  FingerHigh2
EndSection

Section Device
Identifier  Generic Video Card
#   @ 2008-03-17: 3D works, multi-monitor is somewhat dubious (no xrandr)
#   Driver  fglrx
#   @ 2008-03-17: Multi-monitor mostly works, xrandr not optimal but okay. 
No 3D.
Driver  radeonhd
BusID   PCI:1:0:0
EndSection

Section Monitor
Identifier  Generic Monitor
Option  DPMS
EndSection

Section Screen
Identifier  Default Screen
Device  Generic Video Card
Monitor Generic Monitor
DefaultDepth24
SubSection Display
Modes   1440x900 1280x800 1024x768 800x600 
640x480
Virtual 2720 1024
EndSubSection
EndSection

Section ServerLayout
Identifier  Default Layout
Screen  Default Screen
InputDevice Generic Keyboard
InputDevice Configured Mouse
InputDevice Synaptics Touchpad
EndSection


Xorg X server log files on system:
-rw-r--r-- 1 root root  1509 2008-03-04 11:09 /var/log/Xorg.2.log
-rw-r--r-- 1 root root 41588 2008-03-04 11:10 /var/log/Xorg.3.log
-rw-r--r-- 1 root