You are not logged in.

#1 2015-05-22 14:51:27

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

When I'm trying to use SDDM I see nothing but black screen (I see sddm and Xorg running).

It used to work some time ago, but one day it stopped.

I'm using nvidia-340xx drivers:

[travnick@travnick-lap ~]$ yaourt -Qs nvidia
community/cuda 7.0.28-2
    NVIDIA's GPU programming toolkit
multilib/lib32-libvdpau 1.1-1
    Nvidia VDPAU library
multilib/lib32-nvidia-340xx-libgl 340.76-1
    NVIDIA drivers libraries symlinks (32-bit)
multilib/lib32-nvidia-340xx-utils 340.76-1
    NVIDIA drivers utilities (32-bit)
extra/libcl 1.1-4
    OpenCL library and ICD loader from NVIDIA
extra/libvdpau 1.1-1
    Nvidia VDPAU library
extra/nvidia-340xx 340.76-9
    NVIDIA drivers for linux, 340xx legacy branch
extra/nvidia-340xx-libgl 340.76-2
    NVIDIA drivers libraries symlinks
extra/nvidia-340xx-utils 340.76-2
    NVIDIA drivers utilities
extra/opencl-nvidia-340xx 340.76-2
    OpenCL implemention for NVIDIA

journalctl says:

[travnick@travnick-lap ~]$ sudo journalctl -b |grep sddm
[sudo] hasło użytkownika travnick: 
maj 22 16:29:14 travnick-lap sddm[1090]: Signal received: SIGUSR1
maj 22 16:29:15 travnick-lap sddm-helper[1126]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
maj 22 16:29:15 travnick-lap systemd-logind[1084]: New session c1 of user sddm.
maj 22 16:29:15 travnick-lap systemd[1]: Started Session c1 of user sddm.
maj 22 16:29:15 travnick-lap systemd[1]: Starting Session c1 of user sddm.
maj 22 16:29:15 travnick-lap systemd[1128]: pam_unix(systemd-user:session): session opened for user sddm by (uid=0)
maj 22 16:29:15 travnick-lap systemd[1128]: systemd 219 running in user mode for user 999/sddm. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
maj 22 16:29:15 travnick-lap systemd[1128]: /var/lib/sddm/.config/systemd/user
maj 22 16:29:15 travnick-lap systemd[1128]: /var/lib/sddm/.local/share/systemd/user
maj 22 16:29:20 travnick-lap sddm-greeter[1132]: 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) 
maj 22 16:29:21 travnick-lap systemd-coredump[1140]: Process 1132 (sddm-greeter) of user 999 dumped core.
maj 22 16:30:33 travnick-lap polkitd[1102]: Operator of unix-process:4785:11656 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.10 [systemctl restart sddm] (owned by unix-user:travnick)
maj 22 16:30:45 travnick-lap sudo[4792]: travnick : TTY=tty2 ; PWD=/home/travnick ; USER=root ; COMMAND=/usr/bin/systemctl restart sddm
maj 22 16:30:45 travnick-lap sddm[1090]: Signal received: SIGTERM
maj 22 16:30:47 travnick-lap sddm[4800]: Signal received: SIGUSR1
maj 22 16:30:47 travnick-lap sddm-helper[4807]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
maj 22 16:30:47 travnick-lap systemd[1]: Started Session c3 of user sddm.
maj 22 16:30:47 travnick-lap systemd-logind[1084]: New session c3 of user sddm.
maj 22 16:30:47 travnick-lap systemd[1]: Starting Session c3 of user sddm.
maj 22 16:30:48 travnick-lap sddm-greeter[4809]: 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)                         
maj 22 16:30:48 travnick-lap systemd-coredump[4817]: Process 4809 (sddm-greeter) of user 999 dumped core.
maj 22 16:31:07 travnick-lap sudo[4819]: travnick : TTY=tty2 ; PWD=/home/travnick ; USER=root ; COMMAND=/usr/bin/systemctl stop sddm
maj 22 16:31:07 travnick-lap sddm[4800]: Signal received: SIGTERM
maj 22 16:31:21 travnick-lap sudo[4832]: travnick : TTY=tty2 ; PWD=/home/travnick ; USER=root ; COMMAND=/usr/bin/systemctl disable sddm

Last edited by travnick (2015-06-02 23:25:58)

Offline

#2 2015-05-31 13:26:41

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

Problem solved workaround:
After installing mesa-libgl (conflicts with nvidia-340xx-libgl) thes sddm starts (gdm as well)

=== edit:
but there is performance degradation (e.g. in Blender)

Last edited by travnick (2015-06-02 23:27:31)

Offline

#3 2015-05-31 14:32:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,170

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

Sounds like a configuration issue. Was nouveau blacklisted? nvidia loaded in the initramfs?

Offline

#4 2015-05-31 16:21:42

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

How to check it?
As far as I remember I only installed nvidia drivers and it worked.

Offline

#5 2015-06-01 04:19:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,170

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

So yes, it's a configuration problem.

https://wiki.archlinux.org/index.php/NV … new_driver

Last edited by Scimmia (2015-06-01 04:20:26)

Offline

#6 2015-06-01 13:54:53

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

Don't think so because kdm used to work at the same time as sddm and gdm doesn't

Offline

#7 2015-06-02 23:23:57

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

The problem is that with mesa-libgl I'm using mesa implementation of libgl, not nvidia one - there is performance degradation ...

I've tried to add rcutree.rcu_idle_gp_delay=1 but it didn't helped.

The Xorg loads, nvidia module is loaded but sddm fails to start.
So the thing is that nvidia-340xx-libgl does not work with sddm and gdm but lxdm does. I wonder why?

I have not nouveau drivers installed:

[~]$ yaourt -Qs nouveau
multilib/lib32-mesa 10.5.6-1
    an open-source implementation of the OpenGL specification (32-bit)
extra/mesa 10.5.6-1
    an open-source implementation of the OpenGL specification

Offline

#8 2015-06-09 09:14:05

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

Bump, any solution for that?
Or is it maybe working for someone with the same configuration?

Offline

#9 2015-06-09 12:12:59

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

It's working for me, I'm on 340xx nvidia drivers and using sddm+plasma. I even have nouveau installed in parallel (blacklisted).
I don't know if it makes any difference, but I'm using the -ck variant of the kernel and the nvidia driver. libgl part is still the same though:

$ pacman -Qs nvidia
local/lib32-libcl 1.1-1
    OpenCL library and ICD loader from NVIDIA (32-bit)
local/lib32-nvidia-340xx-libgl 340.76-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-340xx-utils 340.76-1
    NVIDIA drivers utilities (32-bit)
local/libcl 1.1-4
    OpenCL library and ICD loader from NVIDIA
local/libvdpau 1.1-1
    Nvidia VDPAU library
local/nvidia-340xx-ck-k10 340.76-11 (ck-k10)
    NVIDIA drivers for linux-ck, 340xx legacy branch.
local/nvidia-340xx-libgl 340.76-2
    NVIDIA drivers libraries symlinks
local/nvidia-340xx-utils 340.76-2
    NVIDIA drivers utilities
local/opencl-nvidia-340xx 340.76-2
    OpenCL implemention for NVIDIA
local/xf86-video-nouveau 1.0.11-3 (xorg-drivers xorg)
    Open Source 2D acceleration driver for nVidia cards

[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#10 2015-06-09 14:13:11

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

I also switched to linux-ck in the mean time but nothing changed.
I wonder if there is any differences since you are using custom builds of packages (repo: local)

Offline

#11 2015-06-09 18:46:53

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

The local repo is what I have installed, yaourt seems to do a "pacman -Ss" and only list stuff you have installed.
As Scimmia said, it looks like a local configuration issue. Try removing sddm and its configuration (-Rsn) and re-install it.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#12 2015-06-09 21:51:38

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

I've done that before and didn't help.

P.S.
Mine "yaourt -Qs" shows origin of package instead of "local".

Last edited by travnick (2015-06-09 21:53:21)

Offline

#13 2015-06-09 22:16:00

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

That's because you are using yaourt -Qs and not pacman -Qs like I do.

Does running glxgears work? It's in mesa-demos.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#14 2015-06-09 22:19:04

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

// oh I see, missed it.

glxgears, blender and other opengl stuff works. Plasma 2/Gnome also works but I need to use lxdm, SDDM and GDM are not working.

Offline

#15 2015-07-18 15:48:15

MrC
Member
Registered: 2015-07-18
Posts: 1

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

Not sure if you've fixed this but I had the same symptoms here on a Gentoo box today and after a bit of digging around noticed that systemctl output was showing a unit named session-c1.scope was in a status of loaded/active/abandoned and a description of "Session c1 of user sddm".

Suspected that sddm-greeter was running as sddm user and didn't have permission to access the video card so added the sddm user to the video group and rebooted. sddm-greeter now working as expected.

Might be worth a try?

Offline

#16 2015-07-18 22:37:24

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

Re: SDDM + nvidia-340xx = black screen - Failed to create OpenGL context

I just realized that user I use is not in the video group. So if it works that way I won't be able to run any opengl app.

In the other hand, there is group vglusers and it match group of /dev/nvidia0 so I'll try that one.

Offline

Board footer

Powered by FluxBB