Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579746 - x11-misc/sddm: Failed to create OpenGL context
Summary: x11-misc/sddm: Failed to create OpenGL context
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2016-04-12 14:36 UTC by quazgar
Modified: 2021-01-14 08:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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