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.
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.
Shouldn't systemd or consolekit be taking care of this by setting ACLs on /dev/dri/*?
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
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(-)