From 6b7abe1eb0d9aa20a5a00cb29da9f8af76b8c2fb Mon Sep 17 00:00:00 2001 From: Thomas Lercher Date: Sun, 6 Apr 2014 13:45:31 +0200 Subject: [PATCH] backlight: clamp_brightness only for non LED devices --- src/backlight/backlight.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index ce0385b..3cd0b54 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -364,7 +364,8 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } - clamp_brightness(device, &value, max_brightness); + if (!streq(ss, "leds")) + clamp_brightness(device, &value, max_brightness); r = udev_device_set_sysattr_value(device, "brightness", value); if (r < 0) { -- 1.9.1