I don't go much to the offending tab in Settings, but to avoid ending up
with no autolock if I happen to click there, I added a crontab to set
the idle-delay key once a day (at 17:30).

$ crontab -e
30 17 * * * XDG_RUNTIME_DIR=/run/user/1000 
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus gsettings set 
org.gnome.desktop.session idle-delay 1800

These two variables are necessary, the set instruction wasn't working
without it. I hardcoded my user ID (1000) since I'm the only user on
this computer but the ID can be dynamically obtained (see
https://stackoverflow.com/a/78894306/3715151).

** Summary changed:

- Screen Blank delay (idle-delay) is set to 0 (zero) by clicking Privacy & 
Security tab in Settings
+ Screen Blank delay (idle-delay) is set to zero (uint32 0) on clicking Privacy 
& Security tab in Settings

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

Title:
  Screen Blank delay (idle-delay) is set to zero (uint32 0) on clicking
  Privacy & Security tab in Settings

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2083869/+subscriptions


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

Reply via email to