main/postmarketos-ui-xfce4: save and restore brightness on boots (MR 5942)

The Xfce4 power manager can control the display brightness. It doesn't
save and restore it over boots, however. In distributions with systemd
this is handled by "systemd-backlight@.service". For OpenRC the package
brightnessctl offers a service saving the state of the brightness at
shutdown and reboot.

As brightnessctl is a rather simple tool and not specifically adapted to
Xfce4, it can get confused when the power manager e.g. lowers the display
brightness when on idle. To avoid such a hassle, the display power settings
were simplifyed in repository "xfce4-phone" version 0.5.3 (and needed a
correction in version 0.5.4). Users nonetheless can change them if desired.
This commit is contained in:
Jakob Hauser 2024-12-21 17:24:40 +01:00 committed by Stefan Hansson
parent 1171248090
commit 22517e033f
No known key found for this signature in database
GPG key ID: ACD854892B38D898
2 changed files with 6 additions and 3 deletions

View file

@ -1,14 +1,15 @@
# Reference: https://postmarketos.org/uipkg
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=postmarketos-ui-xfce4
pkgver=0.5.2
pkgrel=9
pkgver=0.5.4
pkgrel=0
pkgdesc="(X11) Lightweight desktop (stylus recommended)"
url="https://gitlab.postmarketos.org/postmarketOS/xfce4-phone"
arch="noarch"
license="GPL-3.0-or-later"
depends="
bluez
brightnessctl
dnsmasq
elogind
lightdm
@ -80,6 +81,7 @@ openrc() {
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
bluez-openrc
brightnessctl-openrc
elogind-openrc
lightdm-openrc
networkmanager-openrc
@ -89,7 +91,7 @@ openrc() {
}
sha512sums="
a30b34fb87150810a291faa71726822942fc2b49e418fe3011445f7921b54bdf645e52ff61f31f61fbe799f221931f1d1a17f04b7378c2d72f4eb1795e5d78b7 xfce4-phone-0.5.2.tar.gz
371b1a89f050ed016d2b06de7e49ed658d6a5221ea317dcf8dead64e151162ced6e4d816a9c7633a960f1031529c198606fffcdf713c8c36f0a760c0fab4074a xfce4-phone-0.5.4.tar.gz
114d77e6e7c11fc87244fc7c179244274c8f8711f111fcb1b9774ef6b226bd2bea01f85395da130f53670a870cfe571babd7f1c233ba85e1ef5a056ab65bd0b7 10_onboard.gschema.override
7ce4ee56bbff8052ceb14f52e010ae48290589f45dfd0afbb240bf95abac1bd02e7a75a22776f90a1c96b59286ec4d8b6cbe18881550f4488b589cbf2b12bfc8 10_slick-greeter.gschema.override
c11a66b639570ecad51b97c127898afc3f123e2de95ea2a788abc51a45c23c82dbf1022224c15a88691656a8065874d6f396aee0df64e93e1966a82b32d6a31c 70-lightdm-pmos.conf

View file

@ -1,6 +1,7 @@
#!/bin/sh
rc-update add bluetooth default
rc-update add brightnessctl default
rc-update add elogind default
rc-update add lightdm default
rc-update add networkmanager default