The attached 'login-screen-suspend.sh' script contains a workaround
daemon permitting to automatically suspend the computer after NO user
has been active during the time specified in '/etc/systemd/logind.conf'.

It is possible to install this script in '/usr/local/bin/login-screen-
suspend.sh', and launch this daemon by adding following lines at the
beginning of '/etc/rc.local' :

LOGIN_SCREEN_SUSPEND='/usr/local/bin/login-screen-suspend.sh'
if  [ -f "$LOGIN_SCREEN_SUSPEND" ]  &&  \
    [ -x "$LOGIN_SCREEN_SUSPEND" ];  then
  $LOGIN_SCREEN_SUSPEND  >> /var/log/login-screen-suspend.log  2>&1  &
fi

This workaround is probably NOT bulletproof, but it works correctly for
me.

In the hope that it may be useful.


** Attachment added: "/usr/local/bin/login-screen-suspend.sh"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1504254/+attachment/4749166/+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/ubuntu/+source/systemd/+bug/1504254/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to