systemd idleaction=suspend not working in multiseat while a screen is showing login prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 16.04.3 LTS, multiseat setup.
systemd: Installed: 229-4ubuntu21
lightdm: Installed: 1.18.3-0ubuntu1.1
logind.
logind.
Using multiseat, it is not possible to have gnome settings controlling idle suspend, as it would ignore the other seat. IdleAction=suspend in /etc/systemd/
After boot, or after logout the seat remains showing login screen and the system never suspends.
loginctl show-session provides IdleHint=yes that allows to determine whether the user is active. For some reason Active property is yes all the time.
But for the login screen the show-session does not provide the hint about seat idling:
$ loginctl show-session c9
Id=c9
User=108
Name=lightdm
Timestamp=Sun 2017-11-05 22:35:37 CET
TimestampMonoto
VTNr=7
Seat=seat0
Display=:1
Remote=no
Service=
Scope=session-
Leader=12431
Audit=0
Type=x11
Class=greeter
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMo
Working on a script to check for IdleHint=Yes and Service=
I am marking this as a bug in lightdm because I think it is not correctly reporting the idle status to the system.
affects: | systemd (Ubuntu) → lightdm (Ubuntu) |
summary: |
systemd idleaction=suspend not working in multiseat while a screen is - showing login screen + showing login prompt |
I run the attached workaround script every 15 minutes from cron.