Fix #193: Enable console screen blanking (#661)

This enables console screen blanking/powersaving by default. Without it, the screen will stay on indefinitely, killing battery life and/or prolonging charge time. UIs should be able to override this with dpms (e.g. xset). I arbitrarily chose 5 min as the blank time.
This commit is contained in:
clayton craft 2017-09-30 22:41:45 +00:00 committed by Oliver Smith
parent e4fad30e2a
commit c30957ca67
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=3
pkgrel=4
pkgrel=5
pkgdesc="Meta package for minimal postmarketOS base"
url="https://github.com/postmarketOS"
arch="noarch"
@ -55,4 +55,4 @@ sha512sums="c6de3b44bc45b9f9c641a7e34c69a481ee39b99ac0251cd28f2b3aae49c1a8d1ca44
3ceeee37f558e7c95ad973692b6a437f997e6b46c3d1c2257ddfb1529a5633477373aa123c7f08164e818daae50acb203d151379f27ca11bd458809e6a0d4de7 swapfile
f5cc0f1265955d2646e5f099dd4b5d4c287945bfc18c16044db57670d456f55c678fc11cc59e6dab3fa340832ce869d516302a3a35c13518539ed0cedca51819 swapfile.init
e0d2d48b82a03239a4c0a00acaf83e00d397c23a8d7c71053d4e2a383357c22dcedef9e81b0e12a1d7514e1fdbe0bb3eb82613d18b29034a7ce5447f13c84a53 swapfile.conf
44343cdf535f1e4746c190b887af194a872987972425b04ee022f0feb25e74ecb6ac2ebedf90a4eb115efa43a79e155e6ab2ed0f7b40a3bbb5b820a8b86d5757 postmarketos-base.post-install"
74abdad3dbaba7fd2a46016430bda724e9b8b995f22784e20389a3c20e70ee5e2c3c2c4889996024babb4c2e5f6cb71be5997cd29d3f0c8fb06be17daf5accb6 postmarketos-base.post-install"

View file

@ -40,12 +40,13 @@ write_unless_modified() {
echo 'LABEL="pmOS_root" / ext4 relatime,data=ordered 0 1'
echo 'LABEL="pmOS_boot" /boot auto defaults 0 2'
} | write_unless_modified /etc/fstab
# Adjust welcome messages in /etc
{
# Set /etc/issue
{
echo 'Welcome to postmarketOS'
echo 'Kernel \r on an \m (\l)'
} | write_unless_modified /etc/issue
echo 'setterm -blank 5 -powersave on'
} | write_unless_modified /etc/issue
# Set /etc/motd
{
echo 'Welcome to postmarketOS!'
echo ''