@trainailleur thanks for you help with this and I'm glad it has been of use, I have updated the top post with your method to restart the display manager.
As I said in the top post, "I'd strongly suggest that only people who know their way around Linux via the command line do this…"
I have also added a
e2fsck /dev/mapper/phablet line — if your phone goes flat or has to be forcibly power cycled it can result in some disk inconsistency so best check before mounting.
I don't have a SIM card in my Ubuntu Touch OnePlus One (in fact I have the mobile phone network modem switched off via
/usr/share/ofono/scripts/disable-modem /ril_0), I only use WiFi and also have an encrypted Debian Stretch chroot on the phone (which also runs a SSH server) that I use for most things and I run all my terminal sessions in
screen so that when there is the occasional display manager crash I don't lose them. I also make a lot of use of
ansible (via Debian backports) — I don't like carrying a laptop around all the time but I like to be able to do emergency sysadmin work from anywhere and the Ubuntu Touch phone enables this.
I have terrible battery life when WiFi is on, I generally only have it on when it is plugged in or when doing something in an emergency, I use my LineageOS OnePlus 3 (without Gapps) as a hotspot and connect via that. When the WiFi is off I have excellent battery life, the phone might only drop 1% overnight even with multiple
mosh sessions running in
screen in the Debian chroot with Prevent app suspension enabled for the Terminal app via the UT Tweak Tool.
I have some old notes on some other tricks on a wiki, but I haven't updated that for a couple of years so much of it might be outdated.