11

I have Blank screen disabled but my PC seems to be ignoring this. This issue also ignores the Caffeine extension. This is pretty recent behavior as it's been working for a long while now.

Power settings

Disabling idle-dim in dconf seems to have done it.

  • have you tried xset s off -dpms to turn of dpms and prevent screen blanking assuming you use X – ptetteh227 Jan 30 '18 at 12:48
  • Nothing here seemed to work so I opened a new bug for this: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1773810 – colan May 28 '18 at 14:42
  • dconf has not been updated since early 2017, just FYI, and possibly happy new to many who like newer GUI apps! ... as long as there is a GUI alternative of course. Having said that as an ALTERNATIVE to an existing GUI, it is awesome. Below is my answer which many won't like. But none-the-less anecdotally completely true. – markackerman8-gmail.com Nov 14 '19 at 19:27
  • look at DPMS that's the answer https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling – pascuol Mar 21 '20 at 18:03

3 Answers3

6

This is from another answer I posted recently. You may not need the Login screen section.

Terminal CLI method

To prevent screen from turning off you need two settings, one under battery power the other when plugged into wall outlet (A/C).

For battery timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <time_in_seconds>

For AC timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <time_in_seconds>

So for both Battery and A/C set the time to 0 (never).

For Login screen:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Disable dimming screen when idle:

In Unix & Linux someone complained when on battery screen dims every 20 seconds and wants to turn that feature off:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
  • I'm on a desktop so I don't think those apply. They're both set to 'nothing' either way. The third suggestion was already disabled. There is an idle-dim option that's enabled though. I'll try disabling that. – Ubuntuthrow Jan 30 '18 at 19:24
  • Did the idle-dim work? I'm curious why you accepted my answer if it was incomplete? None-the-less I'm adding idle-dim to the answer. – WinEunuuchs2Unix Jan 31 '18 at 00:44
  • Sorry, I accepted it because it led me to that option. If that was wrong my bad. I left my screen on for 40 minutes while I did other stuff and it didn't turn off so yes I think that worked. – Ubuntuthrow Feb 01 '18 at 00:35
  • I'm not complaining that you accepted it... I added the idledim` option to the answer so it will help others. Just let me know if the answer is correct now is all I ask. Thanks. – WinEunuuchs2Unix Feb 01 '18 at 00:43
1

Nothing in the accepted answer has worked for me in 18.04. Instead I had to do the following:

gsettings set org.gnome.settings-daemon.plugins.power idle-brightness 100

Note that this doesn't set the idle to 100% of the max but 100% of the current setting (at least I think that's what it's doing). If you have your screen dimmed already it will stay dimmed.

0

I just want to add, that as a troubleshooting step w.r.t. my ...

Conspiratorially derived answer, that Ubuntu "Did Not Want" me logged into "Gnome on Xorg" ... as it sure seemed.

After a restart and the issue gone ... again, I specifically logged out of "Ubuntu" and logged back in via "Gnome on Xorg",

and No Problems! Issue APPEARS gone still?? (all other things being equal)

... So what has changed since this morning?

You tell me!