[Bug 90842] New: sna driver ignores DisplaySize setting in xorg.conf

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 4 02:27:30 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90842

            Bug ID: 90842
           Summary: sna driver ignores DisplaySize setting in xorg.conf
           Product: xorg
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Driver/intel
          Assignee: chris at chris-wilson.co.uk
          Reporter: Martin at Lichtvoll.de
        QA Contact: intel-gfx-bugs at lists.freedesktop.org

Created attachment 116282
  --> https://bugs.freedesktop.org/attachment.cgi?id=116282&action=edit
xorg log with sna enabled where the driver does not seem to use DisplaySize
setting

In order to try whether it helps with

[Bug 90835] New: [4.1-rc6] gpu hang: ecode 6:-1:0x00000000, Kicking stuck
semaphore on render ring

I tried removing

AccelMethod "uxa"

setting.

Now despite:

martin at merkaba:~> cat /etc/X11/xorg.conf.d/anzeige.conf 
Section "Device"
        Identifier      "Grafikkern"

        Driver          "intel"

        # Monitore
        Option          "Monitor-LVDS1" "Notebook-Display"

        # Optionen
        #Option         "AccelMethod"   "uxa"
EndSection

Section "Monitor"
        Identifier      "Notebook-Display"

        DisplaySize     340 192
EndSection

which would give me a nice 143x143 dpi setting, I get:

martin at merkaba:~> xdpyinfo | grep dots
  resolution:    96x96 dots per inch

I see:

[     9.526] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917-1
(Vincent Cheng <vcheng at debian.org>)
[     9.535] (II) intel(0): SNA initialized with Sandybridge (gen6, gt2)
backend
[…]
[     9.628] (II) intel(0): switch to mode 1920x1080 at 60.0 on LVDS1 using pipe
0, position (0, 0), rotation normal, reflection none
[     9.633] (II) intel(0): switch to mode 1920x1080 at 60.0 on DP2 using pipe 1,
position (0, 0), rotation normal, reflection none
[     9.638] (II) intel(0): Setting screen physical size to 508 x 285


in Xorg.0.log in that case.

With UXA I get:

[ 13202.437] (**) intel(0): Option "AccelMethod" "uxa"
[ 13202.494] (II) UXA(0): Driver registered support for the following
operations:
[ 13202.494] (II)         solid
[ 13202.494] (II)         copy
[ 13202.494] (II)         composite (RENDER acceleration)
[ 13202.494] (II)         put_image
[ 13202.494] (II)         get_image

[ 13202.560] (II) intel(0): Setting screen physical size to 340 x 192


Thing is: I *know* it better. 143x143 dpi is just about right for ThinkPad T520
with 15 inch display, I measured the display size.

I think what may happen here that sna driver somehow takes second display into
account. I have:

martin at merkaba:~> xrandr
Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
LVDS1 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 344mm x 193mm
   1920x1080     60.00*+  59.93    50.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm
x 299mm
   1920x1080     60.00*+  50.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      59.98  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)


Basically not even exactly that. Intel SNA driver just seems to do guesswork.
Xrandr seem to report good sizes.

Okay, so I will remove DisplaySize setting and see whether it helps.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150604/c7855ef7/attachment-0001.html>


More information about the intel-gfx-bugs mailing list