Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/desktop/bookworm/environments/gnome/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ primary-color='#456789'
secondary-color='#FFFFFF'

[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout='0'
sleep-inactive-battery-timeout='0'

[org/gnome/desktop/screensaver]
picture-uri='file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'
Expand Down
3 changes: 3 additions & 0 deletions config/desktop/common/environments/gnome/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ echo "
favorite-apps = ['terminator.desktop', 'org.gnome.Nautilus.desktop', 'google-chrome.desktop', 'thunderbird.desktop', 'code.desktop', 'Zoom.desktop']

[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout='0'
sleep-inactive-battery-timeout='0'

[org/gnome/desktop/background]
picture-uri='file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'
Expand Down
3 changes: 3 additions & 0 deletions config/desktop/trixie/environments/gnome/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ primary-color='#456789'
secondary-color='#FFFFFF'

[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout='0'
sleep-inactive-battery-timeout='0'

[org/gnome/desktop/screensaver]
picture-uri='file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'
Expand Down
15 changes: 15 additions & 0 deletions lib/functions/rootfs/distro-specific.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ function install_distribution_specific() {
truncate --size=0 "${SDCARD}"/etc/apt/apt.conf.d/20apt-esm-hook.conf
fi

# power management override on systemd level
# we want to prevent system going into suspend
mkdir -p "${SDCARD}/etc/systemd/logind.conf.d"
cat <<- EOF > "${SDCARD}/etc/systemd/logind.conf.d/90-nosuspend.conf"
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
IdleAction=ignore
IdleActionSec=0
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandlePowerKey=ignore
EOF

# install our base-files package (this replaces the original from Debian/Ubuntu)
if [[ "${KEEP_ORIGINAL_OS_RELEASE:-"no"}" != "yes" ]]; then
install_artifact_deb_chroot "armbian-base-files" "--allow-downgrades"
Expand Down