{"id":411,"date":"2023-12-29T10:38:03","date_gmt":"2023-12-29T15:38:03","guid":{"rendered":"https:\/\/daveking.com\/blog\/?p=411"},"modified":"2025-11-20T12:05:44","modified_gmt":"2025-11-20T17:05:44","slug":"fedora-38-gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power","status":"publish","type":"post","link":"https:\/\/daveking.com\/blog\/index.php\/2023\/12\/29\/fedora-38-gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power\/","title":{"rendered":"Fedora 38+: GNOME suspends after 15 minutes of user inactivity, even on AC power"},"content":{"rendered":"\n<p>Create a profile for the gdm user at <code>\/etc\/dconf\/profile\/gdm<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">user-db:user\nsystem-db:gdm\nfile-db:\/usr\/share\/gdm\/greeter-dconf-defaults<\/code><\/pre>\n\n\n\n<p>Create a settings file at <code>\/etc\/dconf\/db\/gdm.d\/01-local-power<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">[org\/gnome\/settings-daemon\/plugins\/power]\nsleep-inactive-ac-type='nothing'\nsleep-inactive-ac-timeout=0<\/code><\/pre>\n\n\n\n<p>Do <code>sudo dconf update<\/code>\u00a0and then check for the presence of <code>\/etc\/dconf\/db\/gdm<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Older Versions Of Fedora<\/h2>\n\n\n\n<p> [Stolen from <a class=\"ek-link\" href=\"https:\/\/discussion.fedoraproject.org\/t\/gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power\/79801\">https:\/\/discussion.fedoraproject.org\/t\/gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power\/79801<\/a>]<\/p>\n\n\n\n<p>Since Fedora 38, systems with the GNOME desktop environment suspend after 15 minutes of user inactivity, even when plugged into the AC outlet. This affects new installs and some upgraded systems (depending on whether you touched that setting in the past).<\/p>\n\n\n\n<p><strong>Adjusting the login screen<\/strong> (on a server where no one logs in)<\/p>\n\n\n\n<p>If you want to modify the login screen behavior, you can display the current login screen settings with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep\n<\/code><\/pre>\n\n\n\n<p>Which prints an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900\norg.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'\norg.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900\norg.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'\n<\/code><\/pre>\n\n\n\n<p>The <code>sleep-inactive-ac-timeout<\/code> is the <em>Plugged in<\/em> option and <code>sleep-inactive-battery-timeout<\/code> is the <em>On Battery Power<\/em> option. The number is the delay in seconds. You can configure the values like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 1800\n<\/code><\/pre>\n\n\n\n<p>This sets the <em>Plugged in<\/em> delay to <code>1800<\/code> seconds, i.e. 30 minutes. You can use <code>0<\/code> to disable the automatic suspend completely. You can verify that the option was set by displaying the current values as described above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to turn off system-wide auto-suspend after upgrading server to Fedora 39.<\/p>\n","protected":false},"author":1,"featured_media":412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-administration","eq-blocks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/daveking.com\/blog\/wp-content\/uploads\/2023\/12\/energysaver_green_1.png?fit=1872%2C771&ssl=1","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":3,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions\/715"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/412"}],"wp:attachment":[{"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daveking.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}