diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-30 13:53:23 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-06 10:58:46 +0900 |
| commit | b463ff907b38648225347c4c27e74e2067ea273c (patch) | |
| tree | 3488b625448d54630a3895065271306f23036a6b /src/hardware.h | |
| parent | 2a85caa9dfbf6e374f575159b26f1c7cf5a2f878 (diff) | |
| download | tdepowersave-b463ff907b38648225347c4c27e74e2067ea273c.tar.gz tdepowersave-b463ff907b38648225347c4c27e74e2067ea273c.zip | |
Separate logic to set brightness by absolute level or percentage
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fa1f792e610a6a26b2cbd3aa98866eefc200d0dd)
Diffstat (limited to 'src/hardware.h')
| -rw-r--r-- | src/hardware.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hardware.h b/src/hardware.h index eb8fe99..066d01c 100644 --- a/src/hardware.h +++ b/src/hardware.h @@ -459,8 +459,10 @@ public: // --> functions to call a TDE hardware library and trigger an action //! execute/trigger a suspend via the TDE hardware library bool suspend ( suspend_type suspend ); - //! set the brightness via TDE hardware library - bool setBrightness ( int level, int percent = -1); + //! set the brightness level via TDE hardware library + bool setBrightnessLevel(int level); + //! set the brightness percentage via TDE hardware library + bool setBrightnessPercentage(int percent); //! to set the brightness down bool setBrightnessDown(int percentageStep = -1); //! to set the brightness up |
