| author | 2026-08-04 15:00:48 +0700 | |
|---|---|---|
| committer | 2026-09-27 23:44:47 +0700 | |
| commit | 63fc5e93845a31f7c4981a89d090cca87e59c33b (patch) | |
| tree | b4925b34b5f5eb8e7ec993af8754074af665549d /config.sh | |
| parent | ca7f610a5a7c806245aca520aa4ae79a25db6820 (diff) | |
| download | kiwi-descriptions-63fc5e93845a31f7c4981a89d090cca87e59c33b.tar.gz kiwi-descriptions-63fc5e93845a31f7c4981a89d090cca87e59c33b.zip | |
fix: switch suspend to interactive on power button press in gnome
session
fix: switch 'deep' suspend to 's2idle'
Diffstat (limited to 'config.sh')
| -rwxr-xr-x | config.sh | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -645,7 +645,23 @@ install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system /etc/systemd/system/wireupcameras.service systemctl enable wireupcameras.service -restorecon -Rv /usr /lib /etc/systemd/system /etc/udev/rules.d +# Suspend on Snapdragon is still very unstable. This is the reason why +# 'mem_sleep_default=s2idle' is set explicitly in the cmdline as 'deep' mode +# does not function at all. +# Even then, suspending via gnome settings daemon results in hard freeze. +# This is why: +# logind behavior is kept intact with suspend behavior. +# gnome default power button behavior was replaced with 'interactive'. +install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/logind.conf.d/60-surface-power-key.conf \ + /etc/systemd/login.conf.d/60-surface-power-key.conf +install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dconf/db/local.d/00-power-button \ + /etc/dconf/db/local.d/00-power-button +install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dconf/profile/user \ + /etc/dconf/profile/user + +dconf update + +restorecon -Rv /usr /lib /etc/systemd /etc/dconf /etc/udev/rules.d #====================================== # Set the WSL name for ELN |