Bug 940293

Summary: sddm won't start on a laptop with hybrid graphics (HP EliteBook 850 G1)
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User l3l1jwfRRz <forgotten_l3l1jwfRRz>
Component: X11 ApplicationsAssignee: Forgotten User DV81ZEWZkN <forgotten_DV81ZEWZkN>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: chcao, erwin.vandevelde, milan.zimmermann, wbauer
Version: Leap 42.1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User l3l1jwfRRz 2015-08-02 11:22:29 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build Identifier: 

After initial installation and boot-up I get an unresponsive black screen. 
This is the output of journalctl -b 0 grepped for sddm
Aug 01 14:30:42 linux-eflx sddm[1032]: Starting...
Aug 01 14:30:42 linux-eflx sddm[1032]: Adding cookie to "/run/sddm/:0"
Aug 01 14:30:42 linux-eflx sddm[1032]: Display server starting...
Aug 01 14:30:42 linux-eflx sddm[1032]: Running: /usr/bin/X :0 -auth /run/sddm/:0 -nolisten tcp -background none -noreset vt7
Aug 01 14:30:42 linux-eflx.site display-manager[912]: Starting service sddm..done
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Running display setup script  "/etc/X11/xdm/Xsetup"
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Display server started.
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Socket server starting...
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Socket server started.
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Greeter starting...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] Starting...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] Authenticating...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] returning.
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Aug 01 14:30:42 linux-eflx.site systemd[1432]: pam_unix(systemd-user:session): session opened for user sddm by (uid=0)
Aug 01 14:30:43 linux-eflx.site sddm-greeter[1435]: QXcbConnection: Could not connect to display :0
Aug 01 14:30:43 linux-eflx.site sddm-helper[1427]: [PAM] Ended.
Aug 01 14:30:43 linux-eflx.site sddm[1032]: Auth: sddm-helper exited successfully
Aug 01 14:30:43 linux-eflx.site sddm[1032]: Greeter stopped.
Aug 01 14:30:43 linux-eflx.site systemd[1433]: pam_unix(systemd-user:session): session closed for user sddm

I believe this to be an issue with my laptop's hybrid graphics as there are no problems on my desktop. After changing to vt 6 and restarting sddm with systemctl restart sddm.service I get a login screen but on every cold boot I get a black screen. This also might be related to this https://github.com/sddm/sddm/issues/415 as arch shows a very similar behaviour. Leap however handles it more gracefully (I can still change to another vt)
Below is the same journalctl output after changing to vt6 and logging in via sddm:
Aug 01 14:30:42 linux-eflx sddm[1032]: Starting...
Aug 01 14:30:42 linux-eflx sddm[1032]: Adding cookie to "/run/sddm/:0"
Aug 01 14:30:42 linux-eflx sddm[1032]: Display server starting...
Aug 01 14:30:42 linux-eflx sddm[1032]: Running: /usr/bin/X :0 -auth /run/sddm/:0 -nolisten tcp -background none -noreset vt7
Aug 01 14:30:42 linux-eflx.site display-manager[912]: Starting service sddm..done
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Running display setup script  "/etc/X11/xdm/Xsetup"
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Display server started.
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Socket server starting...
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Socket server started.
Aug 01 14:30:42 linux-eflx.site sddm[1032]: Greeter starting...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] Starting...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] Authenticating...
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: [PAM] returning.
Aug 01 14:30:42 linux-eflx.site sddm-helper[1427]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Aug 01 14:30:42 linux-eflx.site systemd[1432]: pam_unix(systemd-user:session): session opened for user sddm by (uid=0)
Aug 01 14:30:43 linux-eflx.site sddm-greeter[1435]: QXcbConnection: Could not connect to display :0
Aug 01 14:30:43 linux-eflx.site sddm-helper[1427]: [PAM] Ended.
Aug 01 14:30:43 linux-eflx.site sddm[1032]: Auth: sddm-helper exited successfully
Aug 01 14:30:43 linux-eflx.site sddm[1032]: Greeter stopped.
Aug 01 14:30:43 linux-eflx.site systemd[1433]: pam_unix(systemd-user:session): session closed for user sddm
Aug 01 14:42:48 linux-eflx.site sddm[1924]: Starting...
Aug 01 14:42:48 linux-eflx.site sddm[1924]: Adding new display 1 on vt 7 ...
Aug 01 14:42:48 linux-eflx.site sddm[1924]: Adding cookie to "/run/sddm/:1"
Aug 01 14:42:48 linux-eflx.site sddm[1924]: Display server starting...
Aug 01 14:42:48 linux-eflx.site sddm[1924]: Running: /usr/bin/X :1 -auth /run/sddm/:1 -nolisten tcp -background none -noreset vt7
Aug 01 14:42:50 linux-eflx.site sddm[1924]: Running display setup script  "/etc/X11/xdm/Xsetup"
Aug 01 14:42:50 linux-eflx.site sddm[1924]: Socket server starting...
Aug 01 14:42:50 linux-eflx.site sddm[1924]: Socket server started.
Aug 01 14:42:50 linux-eflx.site sddm[1924]: Greeter starting...
Aug 01 14:42:50 linux-eflx.site sddm-helper[1934]: [PAM] Starting...
Aug 01 14:42:50 linux-eflx.site sddm-helper[1934]: [PAM] Authenticating...
Aug 01 14:42:50 linux-eflx.site sddm-helper[1934]: [PAM] returning.
Aug 01 14:42:50 linux-eflx.site sddm-helper[1934]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Aug 01 14:42:50 linux-eflx.site systemd[1938]: pam_unix(systemd-user:session): session opened for user sddm by (uid=0)
Aug 01 14:42:50 linux-eflx.site sddm[1924]: Greeter session started successfully
Aug 01 14:42:50 linux-eflx.site sddm-greeter[1942]: Connected to the daemon.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject: Cannot create children for a parent that is in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject: Cannot create children for a parent that is in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject: Cannot create children for a parent that is in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject: Cannot create children for a parent that is in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject: Cannot create children for a parent that is in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: Message received from daemon: Capabilities
Aug 01 14:42:51 linux-eflx.site sddm-greeter[1942]: Message received from daemon: HostName
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Display server stopped.
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Socket server stopping...
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Socket server stopped.
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Removing display 0 ...
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Adding new display 0 on vt 7 ...
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Adding cookie to "/run/sddm/:0"
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Display server starting...
Aug 01 14:42:53 linux-eflx.site sddm[1032]: Running: /usr/bin/X :0 -auth /run/sddm/:0 -nolisten tcp -background none -noreset vt7
Aug 01 14:42:55 linux-eflx.site sddm[1032]: Display server stopped.
Aug 01 14:43:00 linux-eflx.site sddm[1924]: Reading from "plasma5.desktop"
Aug 01 14:43:00 linux-eflx.site sddm-helper[2003]: [PAM] Authenticating...
Aug 01 14:43:00 linux-eflx.site sddm-helper[2003]: [PAM] Preparing to converse...
Aug 01 14:43:00 linux-eflx.site sddm-helper[2003]: [PAM] Conversation with 1 messages
Aug 01 14:43:00 linux-eflx.site sddm-helper[2003]: [PAM] returning.
Aug 01 14:43:00 linux-eflx.site sddm[1924]: Authenticated successfully
Aug 01 14:43:00 linux-eflx.site sddm-greeter[1942]: Message received from daemon: LoginSucceeded
Aug 01 14:43:00 linux-eflx.site sddm-helper[2003]: pam_unix(sddm:session): session opened for user paul by (uid=0)
Aug 01 14:43:00 linux-eflx.site sddm-helper[2005]: Adding cookie to "/home/paul/.Xauthority"
Aug 01 14:43:00 linux-eflx.site sddm[1924]: Session started
Aug 01 14:43:00 linux-eflx.site sddm-helper[1934]: [PAM] Ended.
Aug 01 14:43:00 linux-eflx.site sddm[1924]: Auth: sddm-helper exited successfully
Aug 01 14:43:00 linux-eflx.site sddm[1924]: Greeter stopped.


Reproducible: Always

Steps to Reproduce:
1. Install leap with default KDE settings on i965/radeonsi hardware
2. Boot
3.Black screen
Actual Results:  
Black screen

Expected Results:  
Sddm login mask

System: 
HP EliteBook 850 G1 
i7 4600u
Intel HD 4400 / AMD Radeon HD8750M (i965/radeonsi)

Leap Milestone 1 iso with no updates (no wifi firmware)
Comment 1 Stefan Dirsch 2015-08-03 11:12:02 UTC
Sounds like a dup.

*** This bug has been marked as a duplicate of bug 940294 ***
Comment 2 Egbert Eich 2015-08-05 07:53:12 UTC
Not sure why this is a duplicate of the tracker.
Comment 4 Milan Zimmermann 2015-09-06 02:32:36 UTC
I have what appears to be the same problem. Just installed Leap 42.1 m2 today;

I get a black screen after boot about 9 out of 10 reboots.

My Graphics is:

01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4290] [1002:9714]
        Subsystem: Gigabyte Technology Co., Ltd Device [1458:d000]
        Kernel driver in use: radeon


Is there any other info I can provide to help?
Comment 5 Forgotten User l3l1jwfRRz 2015-09-06 16:00:03 UTC
hgraeber over at the sddm bug report seems to have found a solution for this problem. 
It seems that the display setup script gets stuck. 
He referred to this patch that seems to have solved this problem in Tumbleweed
https://github.com/sddm/sddm/commit/7ed4ab11656c4b75f278b34883f4e28598b2b13a

In addition there has been a new sddm release 0.12 which seem to fix the problem by killing the display setupscript after 30 seconds.
http://plfiorini.blogspot.co.at/2015/09/sddm-0120-released.html
"BACKWARDS-INCOMPATIBLE: Display setup script is now killed if it hasn't finished within 30 seconds"

by adding this

 // wait for finished
        if (!displayScript->waitForFinished(30000))
            displayScript->kill();

to https://github.com/sddm/sddm/blob/master/src/daemon/XorgDisplayServer.cpp

I hope this helps!
Cheers!

P.S.:
Will sddm be patched / upgraded to 0.12 for Leap or is there any other way we could this if this really fixes our issue?
Comment 6 Stefan Dirsch 2015-09-06 17:16:58 UTC
Maintainer of sddm is SUmski. I don't know to which mail address and bugzilla account this user maps.
Comment 7 Erwin Van de Velde 2015-09-12 23:22:50 UTC
Problem is reproducible on Sony VAIO Pro (Intel HD4000 gfx)

Workaround: switch to console (ctrl+alt+F2) and log in as root, then pkill sddm
Comment 8 Wolfgang Bauer 2015-09-13 08:54:57 UTC
(In reply to Erwin Van de Velde from comment #7)
> Problem is reproducible on Sony VAIO Pro (Intel HD4000 gfx)
> 
> Workaround: switch to console (ctrl+alt+F2) and log in as root, then pkill
> sddm

I recently noticed a similar problem on a minimal X installation in VirtualBox:
after installing and enabling SDDM I only got a black screen. Pressing Ctrl+Alt+Backspace twice (to kill the X session) made the SDDM greeter appear.

A KDE installation worked fine though, so I'm not sure it is indeed the same issue.

Anyway, in my case this was related to Auto-Login.
Disabling it made the greeter show up on boot. (set DISPLAYMANAGER_AUTOLOGIN="" in /etc/sysconfig/displaymanager, or disable it in YaST->Security and Users->User and Group Management->Expert Options->Login Settings)

Does that help in your case too?
Comment 9 Wolfgang Bauer 2015-09-13 08:55:51 UTC
(In reply to Wolfgang Bauer from comment #8)
> I recently noticed a similar problem on a minimal X installation in
> VirtualBox:

Forgot to say: in my case this was Tumbleweed.
Comment 10 Tomáš Chvátal 2018-04-13 14:57:53 UTC
This is automated batch bugzilla cleanup.

The openSUSE 42.1 changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or you can still observe it under openSUSE Leap 15.0, please
feel free to reopen this bug against that version (see the "Version"
component in the bug fields), or alternatively open
a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime