Automatic logout when resuming from suspend on Xubuntu 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When my Xubuntu 18.04 laptop resumes from suspend, systemd-logind automatically logs out of the current session if the laptop has stayed suspended for more than a couple of hours. If the interval between suspend and resume is short, it doesn't log out. I still haven't discovered how long this interval has to be in order to cause the logout.
I enabled debug on the systemd-
[Service]
Environment=
which causes systemd-logind to log all D-Bus messages it handles, but couldn't spot anything that might have caused the logout.
I scanned all systemd journal messages (`journalctl`) before systemd-logind starts killing the current session, investigated all that looked suspicious but couldn't find anything that might influence an automatic logout. Here are some of the messages that striked me as suspicious (they are not sequential, but pulled from different occasions):
upowerd[1600]: unhandled action 'unbind' on /sys/devices/
polkitd(
wpa_supplicant[
wpa_supplicant[
at-spi-
at-spi-
systemd-
systemd-
systemd-
logind config doesn't have anything that might cause this:
paulo:~$ loginctl show-session
EnableWallMessa
NAutoVTs=6
KillUserProcess
RebootToFirmwar
IdleHint=no
IdleSinceHint=0
IdleSinceHintMo
BlockInhibited=
DelayInhibited=
InhibitDelayMax
HandlePowerKey=
HandleSuspendKe
HandleHibernate
HandleLidSwitch
HandleLidSwitch
HoldoffTimeoutU
IdleAction=ignore
IdleActionUSec=
PreparingForShu
PreparingForSle
Docked=no
RemoveIPC=yes
RuntimeDirector
InhibitorsMax=8192
NCurrentInhibit
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813
I can't find any anything that might cause an automatic logout after a time interval. I'm really stumped.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu10
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue May 22 07:36:59 2018
InstallationDate: Installed on 2018-04-28 (23 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
MachineType: Dell Inc. Inspiron N5110
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/26/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 08FDW5
dmi.board.vendor: Dell Inc.
dmi.board.version: A06
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Inspiron N5110
dmi.product.
dmi.sys.vendor: Dell Inc.
I have discovered that the automatic logout was caused by the Xorg server crashing with SIGBUS. So this bug may and should be closed.