summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak2019-03-25 02:19:16 +0100
committerSebastian Krzyszkowiak2019-03-25 02:19:16 +0100
commit4ec863b91a6cac661a208185f40bacd1e55bffbd (patch)
tree875660a1d5cc96a1ad522df89befc959876b7859
downloadaur-4ec863b91a6cac661a208185f40bacd1e55bffbd.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD35
-rw-r--r--zero_brightness_fixer.service10
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..31d07f2b9da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = zero_brightness_fixer-git
+ pkgdesc = The inotify enabled app to fix zero brightness drop in Linux
+ pkgver = r28.c03f8a4
+ pkgrel = 1
+ url = https://github.com/sliusar/zero_brightness_fixer
+ arch = x86_64
+ license = unknown
+ makedepends = git
+ provides = zero_brightness_fixer
+ conflicts = zero_brightness_fixer
+ source = git+https://github.com/sliusar/zero_brightness_fixer
+ source = zero_brightness_fixer.service
+ md5sums = SKIP
+ md5sums = 28ad7cad643ce98e061799b298fba01d
+
+pkgname = zero_brightness_fixer-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e65f0484b12
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Sebastian Krzyszkowiak <dos@dosowisko.net>
+pkgname=zero_brightness_fixer-git
+pkgver=r28.c03f8a4
+pkgrel=1
+pkgdesc="The inotify enabled app to fix zero brightness drop in Linux"
+url="https://github.com/sliusar/zero_brightness_fixer"
+arch=('x86_64')
+license=('unknown')
+groups=()
+depends=()
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/sliusar/zero_brightness_fixer'
+ 'zero_brightness_fixer.service')
+md5sums=('SKIP'
+ '28ad7cad643ce98e061799b298fba01d')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ mkdir -p "$pkgdir/usr/bin/" "$pkgdir/etc/systemd/system/"
+ cp zero_brightness_fixer "$pkgdir/usr/bin/"
+ cp ../zero_brightness_fixer.service "$pkgdir/etc/systemd/system/"
+}
diff --git a/zero_brightness_fixer.service b/zero_brightness_fixer.service
new file mode 100644
index 00000000000..2c66d793172
--- /dev/null
+++ b/zero_brightness_fixer.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Ensures that backlight brightness doesn't go below minimal value
+After=systemd-modules-load.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/zero_brightness_fixer /sys/class/backlight/intel_backlight/brightness 4 14
+
+[Install]
+WantedBy=multi-user.target