Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 579746

Summary: x11-misc/sddm: Failed to create OpenGL context
Product: Gentoo Linux Reporter: quazgar <quazgar>
Component: Current packagesAssignee: LxQt maintainers <lxqt>
Status: RESOLVED FIXED    
Severity: normal CC: dschridde+gentoobugs, lxqt
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18935
Whiteboard:
Package list:
Runtime testing required: ---

Description quazgar 2016-04-12 14:36:07 UTC
With a freshly installed x11-misc/sddm-0.13.0-r3, staring sddm-greeter failed with this error message in the logs:

Failed to create OpenGL context for format QSurfaceFormat ...

Following the tip in https://forums.gentoo.org/viewtopic-p-7849988.html worked:  Adding the sddm user to the video group resolved the problem and sddm showed up correctly:

# usermod -a -G video sddm

IMHO this should be done already by the ebuild at install time, when the `sddm` user is created.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-04-14 15:37:25 UTC
The ebuild has already done this for some time, but it only works for a new install - it can't modify an existing user. Perhaps we can add a warning to the ebuild if this is the case.
Comment 2 Dennis Schridde 2017-05-13 20:58:55 UTC
Shouldn't systemd or consolekit be taking care of this by setting ACLs on /dev/dri/*?
Comment 3 Sergio 2021-01-14 08:24:13 UTC
Just a further note.
In my system, the sddm user was already in the video group, but I had a very similar error:
xauth: file /var/run/sddm/{bf0f7160-d052-4570-8b60-9a90e62837be} does not exist
xauth: (argv):1: bad "add" command line
I resolved changing the ownership of /var/lib/sddm/state.conf to sddm:

Regards,
HUjuice
Comment 4 Larry the Git Cow gentoo-dev 2022-04-01 14:48:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d105282d0bfd72150192bd33716e7d7a112e18c3

commit d105282d0bfd72150192bd33716e7d7a112e18c3
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-03-31 20:37:52 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-04-01 14:47:08 +0000

    x11-misc/sddm: Check for CONFIG_DRM using linux-info.eclass
    
    Closes: https://bugs.gentoo.org/579746
    Closes: https://bugs.gentoo.org/584960
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 x11-misc/sddm/sddm-0.18.1-r6.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)