mobinmob / void-66-services

66 service frontends for voidlinux
Other
30 stars 11 forks source link

[WIP] New service: gdm. #99

Closed mobinmob closed 9 months ago

mobinmob commented 3 years ago

The service needs more testing. In a pc with an nvidia driver, one must have needs_root_rights = yes in /etc/X11/Xwrapper.config in order to start the daemon. Many thanks to @linuxergr who suggested the above.

paper42 commented 3 years ago

As we discussed on IRC, elogind needs to be in extdepends for Wayland sessions to work.

There is a race condition between gdm and something else (maybe elogind?) - gdm can start when it isn't ready which means that gdm falls back to the xorg backend which results in it not being able to launch wayland sessions. 66-stop gdm && 66-start gdm makes it launch with the wayland backend.

I tried using an elogind readiness check, but it didn't help. I might be just doing something wrong.

mobinmob commented 3 years ago

@paper42 There are more problems without elogind, even with the xorg backend when starting other DEs. I am going to do some testing today on two different systems (nvidia with nouveau/ intel gpus), thank you for the testing :)

paper42 commented 3 years ago

@mobinmob I think you were able to reproduce the issue, right? Could you push the version that delays the gdm start at least for now, so that the service in this PR is fully functional?

mobinmob commented 3 years ago

@paper42 I pushed a somewhat fixed service. I added an if block that just contains a s6-sleep invocation for a second and a s6-echo invocation to print a message to the log. That works reliably for me for an xorg session with needs_root_rights = yes in /etc/X11/Xwrapper.config.