From 7bf4268dfa8f364e9da8b0e8c611a81d18eef112 Mon Sep 17 00:00:00 2001 From: Jakob Hauser Date: Sat, 21 Dec 2024 15:48:52 +0100 Subject: [PATCH] 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. --- main/postmarketos-ui-lxqt/APKBUILD | 4 +++- .../postmarketos-ui-lxqt-openrc.post-install | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main/postmarketos-ui-lxqt/APKBUILD b/main/postmarketos-ui-lxqt/APKBUILD index 0c0fcdb06..9be1a8af1 100644 --- a/main/postmarketos-ui-lxqt/APKBUILD +++ b/main/postmarketos-ui-lxqt/APKBUILD @@ -2,13 +2,14 @@ # Maintainer: Antoni Aloy 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 diff --git a/main/postmarketos-ui-lxqt/postmarketos-ui-lxqt-openrc.post-install b/main/postmarketos-ui-lxqt/postmarketos-ui-lxqt-openrc.post-install index 786b24679..35c87930b 100644 --- a/main/postmarketos-ui-lxqt/postmarketos-ui-lxqt-openrc.post-install +++ b/main/postmarketos-ui-lxqt/postmarketos-ui-lxqt-openrc.post-install @@ -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