Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 3088  / 2 Years ago, thu, september 1, 2022, 2:14:38

Hey guys how could I autoshutdown Ubuntu when it is idle for more than 30 minutes?


Autosuspend leaves the PC really slow at times.


More From » shutdown

 Answers
5

If you are using a recent version of Ubuntu Desktop, you can configure this pretty quickly using dconf-editor. Here's how:



  1. Install dconf-editor if it is not already present:


    sudo apt update
    sudo apt install dconf-editor


  2. Open dconf-editor:


    Open the Editor



  3. Click the magnifying glass to start a search, and type "sleep-inactive":


    dconf-editor Search Results



  4. Edit the sleep-inactive-ac-timeout value to 1800 (30 Minutes):


    Sleep Inactive AC Timeout



  5. Edit the sleep-inactive-ac-type value to shutdown (or something else you might prefer):


    Sleep Inactive AC Type



  6. Be sure to save your changes.




That's all there is to it.


[#1513] Friday, September 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amelican

Total Points: 162
Total Questions: 116
Total Answers: 108

Location: Guam
Member since Mon, May 29, 2023
1 Year ago
amelican questions
Sun, Aug 14, 22, 01:26, 2 Years ago
Mon, Apr 24, 23, 18:12, 1 Year ago
Wed, Apr 5, 23, 04:30, 1 Year ago
Mon, Sep 19, 22, 23:08, 2 Years ago
Wed, Jun 8, 22, 04:42, 2 Years ago
;