diff --git a/src/detection/brightness/brightness_bsd.c b/src/detection/brightness/brightness_bsd.c index 34b91ab5c..22b3772fb 100644 --- a/src/detection/brightness/brightness_bsd.c +++ b/src/detection/brightness/brightness_bsd.c @@ -36,6 +36,8 @@ const char* ffDetectBrightness(FF_MAYBE_UNUSED FFBrightnessOptions* options, FFl struct backlight_info info; if(ioctl(blfd, BACKLIGHTGETINFO, &info) < 0) ffStrbufAppendS(&brightness->name, info.name); + else + ffStrbufAppendS(&brightness->name, path + strlen("/dev/backlight/")); } return NULL; }