From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/releng:master commit in: releases/specs/amd64/livegui/files/
Date: Tue, 5 Mar 2024 16:53:51 +0000 (UTC) [thread overview]
Message-ID: <1709657586.4ecae8fec83252f13912b2c9ffe7f0ece394c7ae.bkohler@gentoo> (raw)
commit: 4ecae8fec83252f13912b2c9ffe7f0ece394c7ae
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 5 16:53:06 2024 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Mar 5 16:53:06 2024 +0000
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=4ecae8fe
livegui/fsscript: attempt to disable suspend
Bug: https://bugs.gentoo.org/925002
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
.../specs/amd64/livegui/files/fsscript-stage2.sh | 57 ++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/releases/specs/amd64/livegui/files/fsscript-stage2.sh b/releases/specs/amd64/livegui/files/fsscript-stage2.sh
index 05ddf659..ad49ec3b 100755
--- a/releases/specs/amd64/livegui/files/fsscript-stage2.sh
+++ b/releases/specs/amd64/livegui/files/fsscript-stage2.sh
@@ -67,6 +67,63 @@ Exec=systemsettings5 kcm_keyboard
Terminal=false
" > .config/autostart/systemsettings-keyboard.desktop
+# Disable suspend
+echo "[AC]
+icon=battery-charging
+
+[AC][DPMSControl]
+idleTime=600
+lockBeforeTurnOff=0
+
+[AC][DimDisplay]
+idleTime=300000
+
+[AC][HandleButtonEvents]
+lidAction=1
+powerButtonAction=16
+powerDownAction=16
+triggerLidActionWhenExternalMonitorPresent=false
+
+[Battery]
+icon=battery-060
+
+[Battery][DPMSControl]
+idleTime=300
+lockBeforeTurnOff=0
+
+[Battery][DimDisplay]
+idleTime=120000
+
+[Battery][HandleButtonEvents]
+lidAction=1
+powerButtonAction=16
+powerDownAction=16
+triggerLidActionWhenExternalMonitorPresent=false
+
+[LowBattery]
+icon=battery-low
+
+[LowBattery][BrightnessControl]
+value=30
+
+[LowBattery][DPMSControl]
+idleTime=120
+lockBeforeTurnOff=0
+
+[LowBattery][DimDisplay]
+idleTime=60000
+
+[LowBattery][HandleButtonEvents]
+lidAction=1
+powerButtonAction=16
+powerDownAction=16
+triggerLidActionWhenExternalMonitorPresent=false
+
+[LowBattery][SuspendSession]
+idleTime=300000
+suspendThenHibernate=false
+suspendType=1" > .config/powermanagementprofilesrc
+
popd
# Clean up perms
chown -R gentoo:users /home/gentoo
next reply other threads:[~2024-03-05 16:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 16:53 Ben Kohler [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-30 15:57 [gentoo-commits] proj/releng:master commit in: releases/specs/amd64/livegui/files/ Ben Kohler
2024-05-11 22:56 Andreas K. Hüttel
2024-02-16 17:29 Ben Kohler
2024-02-15 20:40 Ben Kohler
2023-12-22 13:24 Ben Kohler
2023-03-06 13:20 Ben Kohler
2023-02-17 18:57 Ben Kohler
2022-12-19 20:46 Ben Kohler
2022-03-12 22:20 Andreas K. Hüttel
2022-03-06 15:36 Andreas K. Hüttel
2022-03-03 14:25 Ben Kohler
2022-03-01 16:06 Ben Kohler
2022-03-01 15:53 Ben Kohler
2022-02-28 16:17 Ben Kohler
2022-02-18 20:37 Ben Kohler
2022-02-15 12:25 Ben Kohler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1709657586.4ecae8fec83252f13912b2c9ffe7f0ece394c7ae.bkohler@gentoo \
--to=bkohler@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox