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/devices/landscape/res/landscape.xml | 2 +- gui/devices/portrait/res/portrait.xml | 2 +- gui/devices/watch/res/watch.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/devices') diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml index 902994917..2bed2a578 100644 --- a/gui/devices/landscape/res/landscape.xml +++ b/gui/devices/landscape/res/landscape.xml @@ -2589,7 +2589,7 @@ tw_brightness=%tw_brightness_max% tw_brightness*%tw_brightness_pct% tw_brightness/100 - echo %tw_brightness% > "%tw_brightness_file%" + %tw_brightness% diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index 6a3618e62..0be685517 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -2628,7 +2628,7 @@ tw_brightness=%tw_brightness_max% tw_brightness*%tw_brightness_pct% tw_brightness/100 - echo %tw_brightness% > "%tw_brightness_file%" + %tw_brightness% diff --git a/gui/devices/watch/res/watch.xml b/gui/devices/watch/res/watch.xml index b4b7062fe..686b24b3f 100644 --- a/gui/devices/watch/res/watch.xml +++ b/gui/devices/watch/res/watch.xml @@ -2592,7 +2592,7 @@ tw_brightness=%tw_brightness_max% tw_brightness*%tw_brightness_pct% tw_brightness/100 - echo %tw_brightness% > "%tw_brightness_file%" + %tw_brightness% -- cgit v1.2.3