Can not enable laptop screen

Hi,

I’m using a laptop with NVIDIA GPU and only external screen. So the laptop screen is disabled. Now, when I try to enable the laptop screen with xrandr, I get:

$ xrandr --output eDP-1-1 --auto --left-of HDMI-0
xrandr: Configure crtc 4 failed

What can be the reason for that?
Thanks.

System info:
Distribution: KDE neon 5.21 User Edition
Kernel version: 5.8.0-44-generic
NVIDIA driver version: 460.39
Prime Configuration: nvidia
Result of xrandr --verbose command (partial):

Output
HDMI-0 connected 2560x1440+0+0 (0x1c0) normal (normal left inverted right x axis y axis) 598mm x 336mm
        Identifier: 0x1bf
        Timestamp:  9296294
        Subpixel:   unknown
        Gamma:      0.80:1.0:1.2
        Brightness: 0.87
        Clones:    
        CRTC:       0
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
                0 1 
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        EDID: 
                00ffffffffffff004c2d150e52345743
                1c1d0103803c22782a4935ad5146a927
                0f5054bfef80714f810081c081809500
                a9c0b30001015aa000a0a0a046503020
                350056502100001a000000fd0050641e
                a03c000a202020202020000000fc0043
                3237484737780a2020202020000000ff
                0048345a4d3730303233390a20200167
                02034af15090611f0413605d5e202122
                5f03123f402309070783010000e305c0
                006d030c002000b83c20006001020367
                d85dc401788003681a00000101506400
                e6060501735a17e20f22023a80187138
                2d40582c450056502100001e565e00a0
                a0a029503020350056502100001a0000
                000000000000000000000000000000d4
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: HDMI 
        ConnectorNumber: 2 
        _ConnectorLocation: 2 
        non-desktop: 0 
                supported: 0, 1
  2560x1440 (0x1c0) 410.500MHz +HSync -VSync *current +preferred
        h: width  2560 start 2608 end 2640 total 2720 skew    0 clock 150.92KHz
        v: height 1440 start 1443 end 1448 total 1510           clock  99.95Hz
eDP-1-1 connected (normal left inverted right x axis y axis)
        Identifier: 0x20a
        Timestamp:  9296294
        Subpixel:   unknown
        Clones:    
        CRTCs:      4 5 6
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
                00ffffffffffff000dae021600000000
                1f1c0104a524147802ee95a3544c9926
                0f505400000001010101010101010101
                0101010101019e8580a070383e403020
                a50063c7100000189e8580a070387c46
                3020a50063c710000018000000fe0043
                4d4e0a202020202020202020000000fe
                004e3136314843412d4741310a2000ea
        PRIME Synchronization: 1 
                supported: 0, 1
        scaling mode: Full aspect 
                supported: Full, Center, Full aspect
        Colorspace: Default 
                supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
        max bpc: 12 
                range: (6, 12)
        Broadcast RGB: Automatic 
                supported: Automatic, Full, Limited 16:235
        panel orientation: Normal 
                supported: Normal, Upside Down, Left Side Up, Right Side Up
        link-status: Good 
                supported: Good, Bad
        CONNECTOR_ID: 95 
                supported: 95
        non-desktop: 0 
                range: (0, 1)
  15360x8640 (0x20c) 3079.315MHz -HSync +VSync
        h: width  15360 start 16824 end 18560 total 21760 skew    0 clock 141.51KHz
        v: height 8640 start 8643 end 8648 total 8938           clock  15.83Hz

Result of sudo nvidia-bug-report.sh command:
nvidia-bug-report.log.gz (319.1 KB)

Wow, a notebook with a 16k display.
The edid says it’s a 1080p display, so there must be something wrong with the intel gpu/driver. Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Detailed mode: Clock 342.060 MHz, 355 mm x 199 mm
               1920 1968 2000 2080 hborder 0
               1080 1090 1095 1142 vborder 0
               -hsync -vsync 
               VertFreq: 144 Hz, HorFreq: 164451 Hz
Detailed mode: Clock 342.060 MHz, 355 mm x 199 mm
               1920 1968 2000 2080 hborder 0
               1080 1090 1095 2740 vborder 0
               -hsync -vsync 
               VertFreq: 60 Hz, HorFreq: 164451 Hz

Yes, the resolution should be 1080p.
I have added the log file.

Looks like some kernel bug, the i915 driver doesn’t recognise the display at all:

[    4.180602] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes

But the modesetting driver detects it, freaks out and adds all kinds of (non-working) resolutions.
Do you have akernel 5.4 available in grub menu to boot into that?

Just checked with 5.4.0-66-generic and I don’t have this problem.

Then you should report it as a bug in the 5.8 kernel line to the Ubuntu kernel team and stick to 5.4 meanwhile.
https://bugs.launchpad.net/ubuntu.

1 Like

Alright, thanks @generix !

In case you opened a bug report, some more info I gathered: this bug seems to depend on the nouveau driver being blacklisted. Since so far this didn’t occur on the mainline kernel, the ubuntu kernel devs seem to have comitted some cross-dependency to their kernel.

How do I blacklist nouveau driver?

Actually the problem is present with 5.4.0-66-generic kernel as well.

The problem appears only if the laptop lid is closed during boot. With the closed lid, after login the laptop screen is not detected.
If the laptop lid is opened during boot, after login the laptop screen is correctly detected.

Since I’m using SDDM display manager, can it be SDDM issue?


SDDM version: 0.19.0

No, sddm has no influence on monitor detection, it just uses what the Xserver and kernel drivers detect.

1 Like

Related bug report: