diff options
author | Holger Paradies <retabell@gmx.de> | 2024-03-09 17:17:17 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2024-03-10 07:05:05 +0100 |
commit | b7854c9225b93ca0b6dcad2ab330e7b1520ad1c0 (patch) | |
tree | ca305070a374347e811555d91875dfb49b3da9c1 /config/chroot_local-includes/lib/live | |
parent | 84df3800d7665c8607f628deae910d6765183dc8 (diff) | |
download | kanotix-b7854c9225b93ca0b6dcad2ab330e7b1520ad1c0.zip kanotix-b7854c9225b93ca0b6dcad2ab330e7b1520ad1c0.tar.gz |
Live disable plasma-suspend
Diffstat (limited to 'config/chroot_local-includes/lib/live')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9010-hotfixes | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9010-hotfixes b/config/chroot_local-includes/lib/live/config/9010-hotfixes index 125a403..aeca75b 100755 --- a/config/chroot_local-includes/lib/live/config/9010-hotfixes +++ b/config/chroot_local-includes/lib/live/config/9010-hotfixes @@ -43,6 +43,41 @@ sudo perl -pi -e 's/tty/xty/g' /var/run/utmp EOF chmod +x /home/${LIVE_USERNAME}/.kde/shutdown/kdm-force-shutdown-hack +# hack to prevent plasma suspend (bookworm) +# this file should be removed by installer +if [ "$(cat /etc/debian_version)" \> "12" ]; then +sudo -u "${LIVE_USERNAME}" sh -c "mkdir -p /home/${LIVE_USERNAME}/.config; cat > /home/${LIVE_USERNAME}/.config/powermanagementprofilesrc" <<"EOF" +[AC] + +[AC][DPMSControl] +idleTime=600 +lockBeforeTurnOff=0 + +[AC][DimDisplay] +idleTime=300000 + + +[Battery] + +[Battery][DPMSControl] +idleTime=720 +lockBeforeTurnOff=0 + +[Battery][DimDisplay] +idleTime=300000 + + +[LowBattery] + +[LowBattery][DPMSControl] +idleTime=120 +lockBeforeTurnOff=0 + +[LowBattery][DimDisplay] +idleTime=60000 +EOF +fi + # google chrome hack if [ -x /var/lib/dpkg/info/google-chrome-stable.postinst ]; then cat <<EOT >/etc/apt/sources.list.d/google-chrome.list |