Created attachment 105883 [details] 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 1920x1080@60.0 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. :-)
Created attachment 105884 [details] dmesg content from boot until after Xorg termination, drm.debug=0xf
Created attachment 105885 [details] output of intel_reg_dumper before running Xorg Five seconds after starting Xorg, changes in intel_reg_dumper output: 138c138 < BLC_PWM_CPU_CTL: 0x03530353 (cycle 851, freq 851) --- > BLC_PWM_CPU_CTL: 0x0353000a (cycle 10, freq 851) 152,156c152,156 < RC6_RESIDENCY_TIME: 0x0605bff8 < FENCE START 0: 0x00000000 < FENCE END 0: 0x00000000 < FENCE START 1: 0x00000000 < FENCE END 1: 0x00000000 --- > RC6_RESIDENCY_TIME: 0x06416318 > FENCE START 0: 0x00b6d001 > FENCE END 0: 0x0135503b > FENCE START 1: 0x01357001 > FENCE END 1: 0x01b3f03b One second after killing Xorg, difference to the initial state (in intel_reg1, before Xorg was started): 152c152 < RC6_RESIDENCY_TIME: 0x0605bff8 --- > RC6_RESIDENCY_TIME: 0x064f3640
systemd/logind passes an fd to X to use, and then promptly removes privileges from that fd for modesetting. [ 111.207166] [drm:drm_ioctl] pid=3778, dev=0xe200, auth=1, DRM_IOCTL_SET_MASTER [ 111.207293] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1, DRM_IOCTL_SET_VERSION [ 111.207299] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1, DRM_IOCTL_GET_UNIQUE [ 111.207301] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1, DRM_IOCTL_GET_UNIQUE [ 111.207305] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1, DRM_IOCTL_VERSION [ 111.207308] [drm:drm_ioctl] pid=3944, dev=0xe200, auth=1, DRM_IOCTL_VERSION [ 111.288761] [drm:intel_crtc_set_config] [CRTC:7] [FB:40] #connectors=1 (x y) (0 0) [ 111.288765] [drm:intel_set_config_compute_mode_changes] computed changes for [CRTC:7], mode_changed=0, fb_changed=0 [ 111.288767] [drm:intel_modeset_stage_output_state] [CONNECTOR:18:eDP-1] to [CRTC:7] [ 111.288770] [drm:drm_framebuffer_reference] ffff880234cf39c0: FB ID: 40 (3) [ 111.288771] [drm:drm_framebuffer_unreference] ffff880234cf39c0: FB ID: 40 (4) [ 111.288772] [drm:intel_crtc_set_config] [CRTC:11] [NOFB] [ 111.288774] [drm:intel_set_config_compute_mode_changes] computed changes for [CRTC:11], mode_changed=0, fb_changed=0 [ 111.288775] [drm:intel_modeset_stage_output_state] [CONNECTOR:18:eDP-1] to [CRTC:7] [ 111.288777] [drm:drm_framebuffer_reference] ffff880234cf39c0: FB ID: 40 (3) [ 111.288778] [drm:drm_framebuffer_unreference] ffff880234cf39c0: FB ID: 40 (4) [ 111.288778] [drm:intel_crtc_set_config] [CRTC:15] [NOFB] [ 111.288780] [drm:intel_set_config_compute_mode_changes] computed changes for [CRTC:15], mode_changed=0, fb_changed=0 [ 111.288781] [drm:intel_modeset_stage_output_state] [CONNECTOR:18:eDP-1] to [CRTC:7] [ 111.288782] [drm:drm_framebuffer_reference] ffff880234cf39c0: FB ID: 40 (3) [ 111.288783] [drm:drm_framebuffer_unreference] ffff880234cf39c0: FB ID: 40 (4) [ 111.294820] [drm:drm_ioctl] pid=3778, dev=0xe200, auth=1, DRM_IOCTL_DROP_MASTER
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.