<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [HD 4400] failed to set mode: Permission denied [13]"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83605">83605</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[HD 4400] failed to set mode: Permission denied [13]
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bugs.freedesktop.org@ewgenij-starostin.name
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=105883" name="attach_105883" title="Xorg log: switches VTs, black screen, killall’d after five seconds">attachment 105883</a> <a href="attachment.cgi?id=105883&action=edit" title="Xorg log: switches VTs, black screen, killall’d after five seconds">[details]</a></span>
Xorg log: switches VTs, black screen, killall’d after five seconds

When starting Xorg on my Thinkpad X240 with Intel HD 4400 graphics, the screen
turns black, no cursor, with backlight off and no response to keyboard (VT
switch, zap) or X clients’ connection attempts. On killing Xorg, I get back a
usable console.

In Xorg.0.log, relevant errors are
[   111.245] (II) intel(0): switch to mode <a href="mailto:1920x1080@60.0">1920x1080@60.0</a> on eDP1 using pipe 0,
position (0, 0), rotation normal, reflection none
[   111.247] (EE) intel(0): failed to set mode: Permission denied [13]
[   111.247] (WW) intel(0): failed to restore desired modes on VT switch
[   111.247] (EE) intel(0): sna_mode_check: invalid state found on pipe 0,
disabling CRTC:7

while in dmesg output, there are lines such as
[  111.297648] [drm:i915_gem_execbuffer2] copy 1 exec entries failed 56
and
[  111.366636] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1,
DRM_IOCTL_MODE_SETCRTC
[  111.366637] [drm:drm_ioctl] ret = -13

I use Gentoo, with this error occurring in the same way in two configurations:
(a) Linux 3.16.1 with various third-party patches, Xorg 1.16.0,
xf86-video-intel 2.99.914, libdrm 2.4.54, all from the Gentoo repository
(USE=sna -uxa; CFLAGS=-O2 -march=core-avx2),
(b) Linux 3.17.0-rc4+, xf86-video-intel 2.99.916 and libdrm 2.4.56 all from
their respective git repos, and Xorg 1.16.0 from the Gentoo repository (as
above).

I’ve recorded logs by running
intel_reg_dumper >intel_reg1 ; Xorg -logverbose 255 & ( sleep 5 ;
intel_reg_dumper >intel_reg2 ; killall Xorg ; intel_reg_dumper >intel_reg3 ;
dmesg >dmesg.log )
after a cold boot. The notebook screen was already in its 1920x1080 preferred
resolution and no other screen was attached. The configuration files in
/usr/share/X11/xorg.conf.d contain only InputDevice sections and there is no
configuration directory or file in /etc. The issue occurs every time I attempt
to run Xorg.

I’m hoping somebody can provide an insight into what’s wrong. :-)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>