Bug 366722

Summary: sddm fails to start after kernel upgrade
Product: [KDE Neon] neon Reporter: Bernhard Scheirle <bernhard+kde>
Component: generalAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: jr, neon-bugs-null, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: sddm log
Upgrade log

Description Bernhard Scheirle 2016-08-13 06:57:58 UTC
After the kernel upgrade to version 4.4.0-34 sddm fails to start (black screen/frozen loading screen)

See attached upgrade and sddm log

Selecting an older kernel (4.4.0-31) in grup and sddm starts again.

sddm log (probably most interesting lines):
Aug 13 07:12:39 Blackbox sddm-greeter[2920]: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Aug 13 07:12:39 Blackbox sddm-greeter[2920]: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0) 

The web recommends adding the sddm user to the video group. 
I'll try out if this works.
 


Reproducible: Always

Steps to Reproduce:
1. Boot with kernel 4.4.0-31 (maybe requires an nvidia card with proprietary drivers)

Actual Results:  
Black screen. Somtimes the last image of the loading screen.
Switching to tty1 works.

Expected Results:  
A login screen.

System:
KDE Neon User Editon
Nvidia Driver: 361.42
Comment 1 Bernhard Scheirle 2016-08-13 06:58:30 UTC
Created attachment 100571 [details]
sddm log
Comment 2 Bernhard Scheirle 2016-08-13 06:59:20 UTC
Created attachment 100572 [details]
Upgrade log
Comment 3 Bernhard Scheirle 2016-08-13 07:14:39 UTC
>The web recommends adding the sddm user to the video group. I'll try out if this works.

Didn't help.
Comment 4 Bernhard Scheirle 2016-08-15 22:52:13 UTC
Ok, the problem was that the kernel upgrade did not upgrade my nvidia kernel module and therefore said module failed to load (reported in `/var/log/Xorg.0.log`).

Fix/Workaround:
$ sudo aptitude purge nvidia-361
$ sudo shutdown -r now
$ sudo ubuntu-drivers autoinstall

I hope I don't have to do this every kernel upgrade.
Comment 5 Bernhard Scheirle 2016-08-30 08:20:40 UTC
Upgrading the kernel to 4.4.0-36 worked fine. 
But I'm not sure whether the nvidia kernel module updated itself or the update wasn't necessary.
Comment 6 Harald Sitter 2016-08-30 08:25:57 UTC
You may wish to file a bug report against Ubuntu. We do neither maintain the kernel nor the nvidia driver.