Jump to content

Display manager: Difference between revisions

From postmarketOS Wiki
m Reverted edits by Doomfan345 (talk) to last revision by Deathmist
Tag: Rollback
Jakko (talk | contribs)
Adapt the LightDM section to the changes of switching to "slick-greeter"
Line 10: Line 10:


== LightDM ==
== LightDM ==
In Xfce4 and MATE, autologin is preset by the files /usr/share/lightdm/lightdm.conf.d/64-autologin.conf (Xfce4) or /usr/share/lightdm/lightdm.conf.d/61-autologin.conf (MATE).
In postmarketOS, Xfce4 and MATE use LightDM display manager. The greeter is set to "slick-greeter". Autologin is disabled by default.


If you want to use LightDM as a login screen, it can be set up as follows:
The slick-greeter can be configured in Settings -> Login Window (Xfce4) or System -> Adminstration -> Login Window (MATE). The background picture of the greeter can be changed. In tab "Users", section "Automatic login", a username can be inserted to enable autologin. In tab "Settings" the onboard layout of the virtual keyboard in the greeter can be changed.


1. <code>sudo apk add lightdm-gtk-greeter</code>
On MATE the option "Draw user backgrounds" to apply the user's wallpaper on the greeter doesn't work.<ref>https://github.com/mate-desktop/mate-settings-daemon/issues/170</ref>


2. <code>sudo vi /etc/lightdm/lightdm.conf</code>
To hide/show the virtual keyboard in the greeter, it can be unchecked/checked in the accessibility menu in the top bar.
 
* On installations older than July 2024 the virtual keyboard will show up again after reboot. This is because on these installations the home directory of user "lightdm" is at <code>/var/run/lightdm</code>, which is not consistant over boots. Affected users would need to logout, stop lightdm service, change the home directory of user "lightdm" to <code>/var/lib/lightdm</code> and start lightdm service again. Or alternatively enable autologin to avoid "seeing" the greeter with the virtual keyboard.
::change:
<div style="margin-left: 3em;">
<pre>
greeter-session=lightdm-gtk-greeter
greeter-hide-users=false
</pre>
</div>
 
3. <code>sudo vi /etc/lightdm/lightdm-gtk-greeter.conf</code> (optionally)
 
:: Background picture can be set here.
 
:: Also setting up a virtual keyboard can be done here. Keyboard <code>onboard</code> is preinstalled on Xfce4 and MATE. First line is a change, the other two lines are new additions. On bigger screens, layout "Phone" can be replaced by layout "Compact".
 
<div style="margin-left: 3em;">
<pre>
background=/usr/share/wallpapers/postmarketos.jpg
theme-name=postmarketos-dark
 
keyboard=onboard -l Phone -t Nightshade
keyboard-position="50%,center -0;100% 25%"
a11y-states=+keyboard
</pre>
</div>
 
4. <code>sudo vi /usr/share/lightdm/lightdm.conf.d/65-autologin-override.conf</code> (new file)
 
:: Finally, to disable autologin, the content of the autologin config file can be overriden and set to empty by:
 
<div style="margin-left: 3em;">
<pre>
[Seat:*]
autologin-user=
autologin-user-timeout=
autologin-session=
</pre>
</div>


=== CanGraphical issue ===
=== CanGraphical issue ===
Line 63: Line 26:


Enable virtual terminals in your kernel config.
Enable virtual terminals in your kernel config.
== References ==
<references />

Revision as of 19:54, 8 December 2024

List of display managers

  • tinydm, default on Phosh, Plasma Mobile and LXQt installations
  • lightdm, default on Xfce4 and MATE installations
  • gdm, default on GNOME installation
  • sddm, default on Plasma Desktop installation
  • lxdm, not used by default

tinydm

The tinydm log file can be located in ${XDG_STATE_HOME:-~/.local/state}/tinydm.log.

LightDM

In postmarketOS, Xfce4 and MATE use LightDM display manager. The greeter is set to "slick-greeter". Autologin is disabled by default.

The slick-greeter can be configured in Settings -> Login Window (Xfce4) or System -> Adminstration -> Login Window (MATE). The background picture of the greeter can be changed. In tab "Users", section "Automatic login", a username can be inserted to enable autologin. In tab "Settings" the onboard layout of the virtual keyboard in the greeter can be changed.

On MATE the option "Draw user backgrounds" to apply the user's wallpaper on the greeter doesn't work.[1]

To hide/show the virtual keyboard in the greeter, it can be unchecked/checked in the accessibility menu in the top bar.

  • On installations older than July 2024 the virtual keyboard will show up again after reboot. This is because on these installations the home directory of user "lightdm" is at /var/run/lightdm, which is not consistant over boots. Affected users would need to logout, stop lightdm service, change the home directory of user "lightdm" to /var/lib/lightdm and start lightdm service again. Or alternatively enable autologin to avoid "seeing" the greeter with the virtual keyboard.

CanGraphical issue

If LightDM starts but there is no picture on screen, check if loginctl show-seat seat0 reports it as CanGraphical=0. If that is the case, in /etc/lightdm/lightdm.conf replace #logind-check-graphical=true with logind-check-graphical=false to make LightDM ignore that nonsense.

loginctl does not see the session

Enable virtual terminals in your kernel config.

References