From e92b681e3c10ff4845dafccfd56971db33b11795 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 7 Jun 2018 20:55:48 -0400 Subject: Remove the xscreensaver return code check, apparently it is now erratic regarding whether it returns 0 or 1 - even if it succeeds both times. Go ahead and assume success for any xscreensaver call. --- src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src-qt5/core') diff --git a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp index 11c0d468..c6149648 100644 --- a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp @@ -124,22 +124,28 @@ void LOS::setScreenBrightness(int percent){ qDebug() << "Set hardware brightness:" << percent << success; }*/ if( !success && LUtils::isValidBinary("intel_backlight") && !remoteSession){ + //qDebug() << "Run intel_backlight"; //Use the intel_backlight utility (only for Intel mobo/hardware?) - if(0== LUtils::runCmd("intel_backlight", QStringList() <