Package Details: backlight_control 1.3-1

Git Clone URL: https://aur.archlinux.org/backlight_control.git (read-only, click to copy)
Package Base: backlight_control
Description: Simple backlight brightness control
Upstream URL: https://github.com/Hendrikto/backlight_control
Keywords: backlight brightness
Licenses: MIT
Submitter: Hendrikto
Maintainer: Hendrikto
Last Packager: Hendrikto
Votes: 3
Popularity: 0.000000
First Submitted: 2017-12-30 14:20 (UTC)
Last Updated: 2018-07-30 00:03 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Hendrikto commented on 2018-06-07 16:59 (UTC) (edited on 2018-06-07 17:23 (UTC) by Hendrikto)

@klore: The path /sys/class/backlight/intel_backlight/max_brightness is currently hardcoded, and apparently does not exist on your system. I will look into this.

Edit: I tried to fix the problem. Does it build for you now? If not, could you please provide the output of ls /sys/class/backlight?

klore commented on 2018-06-07 13:58 (UTC)

==> Starting build()... cat: /sys/class/backlight/intel_backlight/max_brightness: No such file or directory gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -O3 -march=native -D BACKLIGHT_DIR=\"/sys/class/backlight/intel_backlight/\" -D MAX_BRIGHTNESS= backlight_control.c -o backlight_control backlight_control.c: In function ‘main’: backlight_control.c:39:39: error: invalid type argument of unary ‘’ (have ‘int’) brightness_value += MAX_BRIGHTNESS * value / 100; ^~~~~~~ backlight_control.c:42:38: error: invalid type argument of unary ‘’ (have ‘int’) brightness_value = MAX_BRIGHTNESS * value / 100; ^~~~~~~ backlight_control.c:13:26: error: expected expression before ‘)’ token #define MIN(a, b) ((a < b) ? a : b) ^ backlight_control.c:44:21: note: in expansion of macro ‘MIN’ brightness_value = MIN(brightness_value, MAX_BRIGHTNESS); ^~~ make: *** [Makefile:14: backlight_control] Error 1 ==> ERROR: A failure occurred in build(). Aborting...