linux:fedora:fedora_38_change_causes_gnome_to_suspend_after_15_minutes

Fedora 38 の変更で Gnome は 15 分後にサスペンドする😅

Fedora 38 GDM suspend

Fedora 38 change: Systems with Gnome suspend after 15 minutes even when plugged in

Fedora 38 以降の変更で「省エネルギーに準拠した」システム サスペンドが実装された🤔
Gnome の電源設定、[設定] –> [電源] –> [自動サスペンド] でオプションをオフに設定しても、ユーザーがログインしていない場合は設定は変更されため SSH 接続している最中に勝手にサスペンドする😅

$

Broadcast message from gdm@highway-x.fireball.local on tty1 (Sat 2023-09-04 10:20:25 JST):

The system will suspend now!

GDM の sleep-inactive-ac-timeoutsleep-inactive-battery-timeout を、ログインしていなくてもシステム全体で無効になるように設定する🤔

$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep

org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'

$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0

dbus-daemon[3150]: [session uid=42 pid=3150] Activating service name='ca.desrt.dconf' requested by ':1.0' (uid=42 pid=3151 comm="gsettings set org.gnome.settings-daemon.plugins.po" label="kernel")
dbus-daemon[3150]: [session uid=42 pid=3150] Successfully activated service 'ca.desrt.dconf'

$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0

dbus-daemon[3168]: [session uid=42 pid=3168] Activating service name='ca.desrt.dconf' requested by ':1.0' (uid=42 pid=3169 comm="gsettings set org.gnome.settings-daemon.plugins.po" label="kernel")
dbus-daemon[3168]: [session uid=42 pid=3168] Successfully activated service 'ca.desrt.dconf'

$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep

org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'

$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power

org.gnome.settings-daemon.plugins.power ambient-enabled true
org.gnome.settings-daemon.plugins.power idle-brightness 30
org.gnome.settings-daemon.plugins.power idle-dim true
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power power-saver-profile-on-low-battery true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'

設定を直ぐに反映させる(GDM restart しないと既存の設定が15分後にサスペンドして電源を入れ直さないと反映されない)🤔

$ sudo systemctl restart gdm.service

  • linux/fedora/fedora_38_change_causes_gnome_to_suspend_after_15_minutes.txt
  • 最終更新: 2024/04/13 05:53
  • by ともやん