diff options
author | Antoine Jacoutot <ajacoutot@gnome.org> | 2014-10-15 09:28:41 +0200 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@gnome.org> | 2014-10-15 09:28:41 +0200 |
commit | 1c81a88fd8f05c806e09c72a34099e94bb25b8f7 (patch) | |
tree | 78acdaff7bceec5519558da73878309041efa94f /libLumina/LuminaOS-OpenBSD.cpp | |
parent | Fix broken lumina pkg-plist (diff) | |
download | lumina-1c81a88fd8f05c806e09c72a34099e94bb25b8f7.tar.gz lumina-1c81a88fd8f05c806e09c72a34099e94bb25b8f7.tar.bz2 lumina-1c81a88fd8f05c806e09c72a34099e94bb25b8f7.zip |
OpenBSD setScreenBrightness: make the brightness change smoother
Diffstat (limited to 'libLumina/LuminaOS-OpenBSD.cpp')
-rw-r--r-- | libLumina/LuminaOS-OpenBSD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libLumina/LuminaOS-OpenBSD.cpp b/libLumina/LuminaOS-OpenBSD.cpp index 34ae713c..df6bcda7 100644 --- a/libLumina/LuminaOS-OpenBSD.cpp +++ b/libLumina/LuminaOS-OpenBSD.cpp @@ -65,7 +65,7 @@ void LOS::setScreenBrightness(int percent){ if(percent<0){percent=0;} else if(percent>100){ percent=100; } //Run the command - QString cmd = "xbacklight -set %1"; + QString cmd = "xbacklight -time 0 -steps 1 -set %1"; cmd = cmd.arg( QString::number(percent) ); int ret = LUtils::runCmd(cmd); //Save the result for later |