From 2de21f829795fca1b54309b4a3a4d4d6a52ce5aa Mon Sep 17 00:00:00 2001 From: mike-pt Date: Thu, 26 Nov 2015 02:14:52 +0000 Subject: - Add support for intel_backlight on FreeBSD --- libLumina/LuminaOS-FreeBSD.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libLumina') diff --git a/libLumina/LuminaOS-FreeBSD.cpp b/libLumina/LuminaOS-FreeBSD.cpp index b5e92e07..2d19970f 100644 --- a/libLumina/LuminaOS-FreeBSD.cpp +++ b/libLumina/LuminaOS-FreeBSD.cpp @@ -82,8 +82,17 @@ void LOS::setScreenBrightness(int percent){ else if(percent>100){ percent=100; } //Run the command(s) bool success = false; - // - try hardware setting first (PC-BSD only) - if(QFile::exists("/usr/local/bin/pc-sysconfig")){ + // - try hardware setting first (PC-BSD || or intel_backlight) + if(QFile::exists("/usr/local/bin/intel_backlight")){ + qDebug() << "/usr/local/bin/intel_backlight" << "was found!"; + QString ret = LUtils::getCmdOutput("intel_backlight", QStringList() <