hockeymikey / hox-cap-butn-brightness

Automatically exported from code.google.com/p/hox-cap-butn-brightness
GNU General Public License v3.0
0 stars 0 forks source link

Don't fail if "currents" file does not exist #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just received an email from Felipe who reports that the "currents" file does 
not exist on his particular endeavoru ROM.  This causes setting the backlight 
brightness to fail.  Perhaps in this case simply write to the "brightness" file.

Here is the debug info:

Application Version: 1.0.8

Detected Device: HTC One X (endeavoru)
Supports Setting Capacitive Buttons Backlight Brightness: Yes
Setting Capacitive Buttons Backlight Brightness Possible: No

/sys/class/leds/button-backlight/currents
File Exists: No

/sys/class/leds/button-backlight/brightness
File Exists: Yes
File Permissions: Read/Write
File Contents: 255

/sys/class/leds/button-backlight/lut_coefficient
File Exists: No

Build.BOOTLOADER: 0.96.0000
Build.DEVICE: endeavoru
Build.DISPLAY: jellybam_endeavoru-userdebug 4.1.2 JZO54K 
eng.root.20130111.210330 test-keys
Build.MANUFACTURER: HTC
Build.MODEL: HTC One X
Build.PRODUCT: endeavoru
Build.VERSION.RELEASE: 4.1.2

Original issue reported on code.google.com by denver@sleepydragon.org on 14 Jan 2013 at 7:02

Attachments:

GoogleCodeExporter commented 9 years ago
Felipe reported that the workaround that simply skips writing to the "currents" 
file worked.  I have attached the APK for anyone else who is also experiencing 
this issue.  Note that selecting "dim" from the main UI will simply set the 
same brightness as "bright"... this is expected behaviour for this version of 
the app.

Original comment by denver@sleepydragon.org on 14 Jan 2013 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed on Aug 11 by commit cd2bea15817a3cd0b72d24a81cf87f3e0f12c1fc
This fix will be included in v1.0.9

Original comment by denver@sleepydragon.org on 11 Aug 2013 at 9:06