Bug 386035 - SDDM Loginscreen is black
Summary: SDDM Loginscreen is black
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.11.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-21 18:36 UTC by Unknown
Modified: 2021-03-11 19:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2017-10-21 18:36:16 UTC
Hello

Notebook with Optimus (Intel and Nvidia)
1. Operation with Intel, login screen is visible.
2. Operation with Nvidia, login screen is black.
It is however possible to log on blindly if the cursor is in the password field.
Error occurs with sddm.
Drivers are
Intel = xf86-video-intel 1: 2.99.917 + 796 + g04b4f3b7-1
Nvidia = nvidia 387.12-2
OS = ArchLinux

Config under Nvidia
Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/ usr / lib / nvidia / xorg"
EndSection

Xsetup contains:
xrandr --setprovideroutputsource modesetting NVIDIA-0

xrandr --listproviders returns:
Providers: number: 2
Provider 0: id: 0x2d6 cap: 0x1, Source Output crtcs: 0 outputs: 0 associatedProviders: 1 name: NVIDIA-0
Provider 1: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name: modesetting

Is it a bug in sddm?

greeting
Google Translate.
Comment 1 Sergey 2020-06-16 09:51:18 UTC
This looks similar to what I experience
Also an laptop with Intel and nvidia.
sddm shows black screen but I still can type my password and login. After I logged in everything works fine.

If I connect additional monitor, then usually I see the login prompt just on it while laptop display is black.

I guess sddm uses X configuration and probably there is something wrong it, while after login some xrandr magic fixes displays configuration.
In any case, showing the black screen is hardly a good option something is wrong with X config unless something is really terribly wrong.

KDE 5.18.5, Gentoo Linux.

$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Inactive       "InactiveDevice1"
    Inactive       "InactiveDevice1"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

#Section "Monitor"
#    Identifier     "Monitor0"
#    VendorName     "Unknown"
#    ModelName      "LG Electronics LG ULTRAWIDE"
#    HorizSync       30.0 - 90.0
#    VertRefresh     56.0 - 75.0
#    Option         "DPMS"
#EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 1660 Ti"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "InactiveDevice1"
    Driver         "modesetting"
    VendorName     "Unknown"
EndSection

Section "Device"
    Identifier     "InactiveDevice1"
    Driver         "modesetting"
    VendorName     "Unknown"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    #Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "nvidia-auto-select +1920+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1b8 cap: 0x1, Source Output crtcs: 4 outputs: 3 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x1e3 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 1 associated providers: 1 name:modesetting
Comment 2 Nate Graham 2021-03-11 19:20:50 UTC
This was fixed in Plasma 5.21.