While equal to the default value, the Restart=no directive Logs from the X server into the journal instead of using a file. With the -verbose 3 -logfile /dev/null flags for Xorg, puts the For logind toĪllow Xorg to take control of the local devices, chvt 8 switches The last step is to execute Xorg through startx. The UtmpIdentifier=tty8 and UtmpMode=user directives are justĪ nice addition to register the session in /var/run/utmp. Software relying on the idle hint from logind would be Logind considers the session idle unless it receives input on Moreover, we inform pam_systemd we wantĪn X11 session with Environment=XDG_SESSION_TYPE=x11. It would be set to linux by systemd as a result of attaching the 1 The TERM environment variable is unset because These additional rights are needed to get Xorg working When the TTY is active, the user is grantedĪdditional access to local devices-notably display, sound, keyboard, To be effective, we also need to allocate a TTY with This module registers the session to the systemd login manager. Session for the login service, which includes pam_systemd. With PAMName=login, the executed process is registered as a PAM This implies that Xorg does not run with elevated With User=bernat, the unit is started with the identity of the User logins after boot by removing the /run/nologin file. The unit starts after rvice, which enables ![]() There is some code in Xorg to do that, but it isĮxecuted too late and fails with: xf86OpenConsole: VT_ACTIVATE Xorg could change the type of the session itself after Takes control of the session when the TTY is active. The method names do not match theĬurrent implementation, but the concepts are still correct. Description = X11 session for bernat After = graphical.target rvice User = bernat WorkingDirectory = ~ PAMName = login Environment = XDG_SESSION_TYPE=x11 TTYPath = /dev/tty8 StandardInput = tty UnsetEnvironment = TERM UtmpIdentifier = tty8 UtmpMode = user StandardOutput = journal ExecStartPre = /usr/bin/chvt 8 ExecStart = /usr/bin/startx - vt8 -keeptty -verbose 3 -logfile /dev/null Restart = no WantedBy = graphical.targetįor more information on how logind provides access toĭevices, see this blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |