Results 1 to 3 of 3

Thread: Ubuntu Intentionally Sleeping when set to NEVER! Annoying WHY?

  1. #1
    Join Date
    Jul 2008
    Ubuntu 18.04 Bionic Beaver

    Ubuntu Intentionally Sleeping when set to NEVER! Annoying WHY?

    I will simply say this ...

    1/ I have been helping people with Ubuntu for 10-15 years! ... So you can assume I know at least the average stuff!
    ...which leads to ...
    2/ of course ALL settings are turned to OFF:
    a/ Lock-OFF,
    b/ Automatic Suspend - OFF, Caffeine
    c/ Auto Suspend and Screen Saver Disabled

    Other info
    1/ It is a Laptop that is PLUGGED IN!
    2/ Ubuntu 18.04.3
    3/ Kernel Linux 5.4.10-050410-generic x86_64
    4/ Ubuntu Session WITH GDM!

    Why do I say this! because ... in the past 3 months with this issue ... still happening
    It has often been solved by going into the "Ubuntu" Session versus "Gnome on XORG" both with GDM

    So either IT APPEARS to be an INTENTIONAL UBUNTU GLITCH - SO Annoying
    What I have tried other than the above obvious stuff is
    Sorry for its awkwardness

    Screen Going Blank Problem
    ∘ 11/18/19
    ∘ Install Keep.Awake
    ∘ Prerequisites
    • $ sudo apt install bzr libxss-dev libx11-dev libffi-dev python3-pip python3-netifaces python3-psutil xz-utils
    ∘ Suggested packages
    • sudo apt install bzr-doc bzrtools python-bzrlib.tests python-kerberos python-paramiko python-pycurl python-configobj-doc libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-fs python-gdata python-keyczar python-testresources python-secretstorage-doc python-setuptools-doc
    • sudo apt install graphviz librsvg2-bin fam phonon4qt5-backend-gstreamer python-lzma-dbg python-subunit python-nose python-pyftpdlib python-gdata-doc python-beaker python-mako-doc python-gssapi python-ply-doc libcurl4-gnutls-dev python-pycurl-doc python-pyinotify-doc python-testtools-doc python-twisted
    • sudo apt install graphviz-doc libcurl4-doc libgnutls28-dev libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev phonon-backend-gstreamer python-sqlalchemy python-pylibmc python-memcache python-pymongo python-redis python-funcsigs-doc python-coverage python-nose-doc
    • sudo apt install krb5-doc libgcrypt20-doc gmp-doc libgmp10-doc libmpfr-dev gnutls-doc gnutls-bin krb5-user python-coverage-doc memcached python-pymongo-doc python-hiredis python-sqlalchemy-doc python-psycopg2 python-pymysql python-fdb python-pymssql
    • sudo apt install libmpfr-doc libcache-memcached-perl libanyevent-perl libyaml-perl libterm-readkey-perl python-egenix-mxdatetime-doc python-egenix-mxtools-doc python-fdb-doc python-gevent redis-server python-psycopg2-doc python-pymysql-doc
    • sudo apt install libevent-perl libio-async-perl libjson-perl libpoe-perl libtask-weaken-perl libyaml-shell-perl python-egenix-mxbeebase-doc python-egenix-mxproxy-doc python-egenix-mxqueue-doc python-egenix-mxstack-doc python-egenix-mxtexttools-doc python-egenix-mxuid-doc python-egenix-mxurl-doc python-gevent-doc python-greenlet-doc python-greenlet-dev python-greenlet-dbg ruby-redis
    • sudo apt install libcurses-perl libpoe-loop-event-perl libpoe-loop-tk-perl libsocket-getaddrinfo-perl
    ∘ and
    • sudo pip3 install xprintidle
    ∘ cd /<your desired installation path>/
    • cd /home/mark/Systems/Linux/Keep_Awake
    ∘ run
    • bzr branch lp:keep.awak
    ∘ bzr: ERROR: Already a branch: "keep.awake"
    ∘ To run as a background service:
    • nohup ./ -r > /dev/null 2>&1 &
    ∘ GDM uses a separate dconf database to control power management.
    ∘ You can make GDM behave the same way as user sessions by copying the user settings to GDM's dconf database.

    • sudo IFS=$'\n'; for x in $(sudo -u mark gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -u gdm dbus-launch gsettings set $x"; done; unset IFS
    ∘ change your name from "mark", TOO MANY ERRORS, and access denied /mark/cache/dconf
    ∘ 11/17/19
    • gsettings set org.gnome.desktop.session idle-delay 0
    • sudo systemctl mask
    • gsettings set org.gnome.desktop.lockdown disable-lock-screen false
    • gsettings set org.gnome.desktop.screensaver lock-enabled false
    • sudo systemctl mask
    • sudo systemctl mask DID NOT WORK
    ‣ To undo the change:
    • sudo systemctl unmask
    ∘ Or this for when on AC
    ‣ 0 for never
    • gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
    ‣ On Battery
    • gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
    ∘ For Login screen:
    • gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
    ∘ Disable dimming screen when idle:
    • gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
    ∘ 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
    Last edited by; January 14th, 2020 at 07:06 PM.

  2. #2
    Join Date
    Jul 2008
    Ubuntu 18.04 Bionic Beaver

    Re: Ubuntu Intentionally Sleeping when set to NEVER! Annoying WHY?

    Well Proof is in the pudding!

    For all those with Ubuntu "Auto Suspending" when EVERYTHING is set to the contrary, ...

    ... it is UBUNTU's intentional manipulation of your system!

    Pure and simple.

    Ever since this post (0 views ... my butt LOL) ... caffeine has finally started working as it should!

    That is the good news!

    Now the better question is to what gain was Ubuntu doing this?
    1/ To help our computers without our permission, somehow? or
    2/ To help Ubuntu the OS (I know it is not a person) ... somehow?, or
    3/ Something I have not considered yet

    Don't get me wrong ..I love Ubuntu ... and more importantly ...I hate Windows FINANCIAL DRAIN on everyone who owns one!
    But this action ... appears ... to be more of a Windows type ploy!
    In any case it was WITHOUT my/our consent!

    Correct me if I am wrong!
    Last edited by; January 14th, 2020 at 07:07 PM.

  3. #3
    Join Date
    Jul 2008
    Ubuntu 18.04 Bionic Beaver

    Re: Ubuntu Intentionally Sleeping when set to NEVER! Annoying WHY?

    To end in a positive note ...

    Ubuntu thanks for listening ... at least!

    Always Trying to help[, Mark


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts