I apologize, but my comment #9 was wrong :

After more precise testing of 'systemd' version 232-21ubuntu2 from
Ubuntu 17.04 Zesty with 'IdleAction=suspend' and 'IdleActionSec=2min' :

'systemd' does NOT unduly suspend my computer when there is an opened
user session (OK).

But 'systemd' does NOT systematically suspend my computer 2mn after the
last opened user session has been closed.

As a workaround, I am using the attached 'login-screen-suspend.sh' script.
Since '/etc/rc.local' seems to be deprecated, I am starting my script as a 
'systemd' service whose '/etc/systemd/system/login-screen-suspend.service' file 
has following content :

[Unit]
Description=login screen suspend daemon
After=systemd-user-sessions.service

[Service]
Environment="LOGFILE=/var/log/login-screen-suspend.log"
ExecStart=/bin/sh  -c  "/usr/local/sbin/login-screen-suspend.sh  >> $LOGFILE  
2>&1"

[Install]
WantedBy=multi-user.target


** Attachment removed: "/usr/local/bin/login-screen-suspend.sh"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1504254/+attachment/4749166/+files/login-screen-suspend.sh

** Attachment added: "/usr/local/sbin/login-screen-suspend.sh"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1504254/+attachment/4865743/+files/login-screen-suspend.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1504254

Title:
  IdleAction=suspend specified in logind.conf must systematically be
  inhibited during user interaction

To manage notifications about this bug go to:
https://bugs.launchpad.net/systemd/+bug/1504254/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to