From e85f02dd9186079cf67a4d3e7d1657d248e28963 Mon Sep 17 00:00:00 2001 From: xNUTx Date: Fri, 18 Jul 2014 01:30:58 +0200 Subject: Support reading since_epoch and secondary brightness files TWFunc::Fixup_Time_On_Boot: Will now try to read /sys/class/rtc/rtc0/since_epoch to correct time, if that fails it will try to use the ats files to correct time. TWFunc::Set_Brightness: One single function to set brightness from both the automated functions and the gui actions. It is able to set a second brightness path if present, it will set them both the same value. Many Sony devices have 2 brightness files in the sysfs that must be set to properly set the brightness. Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca --- gui/blanktimer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/blanktimer.hpp') diff --git a/gui/blanktimer.hpp b/gui/blanktimer.hpp index 01c1dfb0c..c8159f643 100644 --- a/gui/blanktimer.hpp +++ b/gui/blanktimer.hpp @@ -41,7 +41,7 @@ private: void setConBlank(int blank); void setTimer(void); timespec getTimer(void); - int getBrightness(void); + string getBrightness(void); int setBrightness(int brightness); int setBlankTimer(void); int setClockTimer(void); @@ -51,7 +51,7 @@ private: int conblank; timespec btimer; unsigned long long sleepTimer; - int orig_brightness; + string orig_brightness; bool screenoff; }; -- cgit v1.2.3