After upgrade to Ubuntu version 20.4 the issue with the idle status
reporting by lightdm-greeter remains. This continues to have idle
setting of logind.conf ignored:

https://www.freedesktop.org/software/systemd/man/logind.conf.html
> Note that this requires that user sessions correctly report the idle status 
> to the system. The system will execute the action after *all sessions* report 
> that they are idle, no idle inhibitor lock is active, and subsequently, the 
> time configured with IdleActionSec= (see below) has expired.

At the other hand, installing lightdm and unity-greeter causes suspend
to happen every 20 minutes while one screen shows greeter, regardless of
all other screens. Reported also at
https://askubuntu.com/questions/1337649/how-to-disable-suspend-in-20
-minutes-from-the-lightdm-login-screen and as
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1928305

There is a workaround available there (set both org.gnome.settings-
daemon.plugins.power and com.canonical.unity.settings-
daemon.plugins.power sleep-inactive-ac-type to 'nothing'), preventing
the unexpected suspend by greeter. Issue of this bug remains since the
greeter still does not report idle to logind.

The script to check idle status of all session and force suspend overriding 
login screen needs update, systemd-inhibit --list does not have parseable 
output, like it was the case in systemd version 229. Needed to be replaced by 
command
gdbus call --system --dest org.freedesktop.login1 --object-path 
/org/freedesktop/login1 --method org.freedesktop.login1.Manager.ListInhibitors


There are several other reports of this problem, for example also at 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896083 or 
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/22 but I am not 
sure about be the best upstream place to track this. It looks like gdm/lightdm 
greeter is not designed to work under logind but attempts to control the system 
sleep status on its own.

** Bug watch added: Debian Bug tracker #896083
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896083

** Bug watch added: gitlab.gnome.org/GNOME/gnome-control-center/-/issues #22
   https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/22

** Attachment added: "Workaround, checking idle/inhibit status of all sessions, 
ignoring greeter"
   
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1730606/+attachment/5501243/+files/idlecheck.pl

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1730606

Title:
  systemd idleaction=suspend not working in multiseat while a screen is
  showing login prompt

Status in lightdm package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 16.04.3 LTS, multiseat setup.
  systemd:  Installed: 229-4ubuntu21
  lightdm:  Installed: 1.18.3-0ubuntu1.1

  logind.conf:IdleAction=suspend
  logind.conf:IdleActionSec=300

  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/logind.conf works well, provided both seats are logged in
  or locked.

  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
  TimestampMonotonic=13418600852
  VTNr=7
  Seat=seat0
  Display=:1
  Remote=no
  Service=lightdm-greeter
  Scope=session-c9.scope
  Leader=12431
  Audit=0
  Type=x11
  Class=greeter
  Active=yes
  State=active
  IdleHint=no
  IdleSinceHint=0
  IdleSinceHintMonotonic=0

  Working on a script to check for IdleHint=Yes and Service=lightdm-
  greeter and suspend based on this.

  I am marking this as a bug in lightdm because I think it is not
  correctly reporting the idle status to the system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1730606/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to