main/postmarketos-ui-lxqt: save and restore brightness on boots (MR 5933)

LXQt 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.
This commit is contained in:
Jakob Hauser 2024-12-21 15:48:52 +01:00 committed by Alexey Min
parent dbf55cdb9d
commit 7bf4268dfa
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
2 changed files with 4 additions and 1 deletions

View file

@ -2,13 +2,14 @@
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=postmarketos-ui-lxqt
pkgver=0.3
pkgrel=4
pkgrel=5
pkgdesc="(X11) Lightweight Qt Desktop Environment (stylus recommended)"
url="https://lxqt-project.org/"
# armhf: lxqt-desktop not available
arch="noarch !armhf"
license="GPL-3.0-or-later"
depends="
brightnessctl
dbus-x11
dnsmasq
elogind
@ -85,6 +86,7 @@ openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
brightnessctl-openrc
elogind-openrc
networkmanager-openrc
tinydm-openrc

View file

@ -1,5 +1,6 @@
#!/bin/sh
rc-update add brightnessctl default
rc-update add elogind default
rc-update add networkmanager default
rc-update add tinydm default