canonical / lightdm

Display Manager
GNU General Public License v3.0
845 stars 139 forks source link

restart a seat #140

Open beroal opened 4 years ago

beroal commented 4 years ago

Sometimes a keyboard freezes in my Xorg server, so I need to restart the Xorg server. I use LightDM with more than one seat. If I restart LightDM, I will restart all seats, but I want to restart only the seat with the frozen keyboard. The kernel hotkey Alt+SysRq+K also restarts all seats. If I kill the Xorg server, it does not start again. Is there a command for LightDM to restart a specified seat?

The contents of /etc/lightdm/lightdm.conf:

[LightDM]
minimum-vt=6
minimum-display-number=1
run-directory=/run/lightdm

[Seat:*]
xserver-share=true
greeter-session=lightdm-kde-greeter
session-wrapper=/etc/lightdm/Xsession
user-session=xfce
allow-guest=false
autologin-guest=false

[Seat:seat0]
xserver-layout=layout-b450-main
exit-on-failure=false

[Seat:seat-guest]
xserver-layout=layout-hd6670-guest
exit-on-failure=false

[Seat:seat-root]
exit-on-failure=false
alkisg commented 1 week ago

I also needed that functionality as arctica-greeter has a race condition and it sometimes crashes. It would be great to have a way to "restart the black-screen seat-1", without the agent at the other seat0 having to close all their programs and fully restart lightdm.