forked from Quallenauge/Easybox-904-XDSL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LED activity level specification in .dts file
As Henning Schild already found out, the power LED is turned on (i.e. "active") on high GPIO output level. Same is true for the TFT backlight. (I think this is unusual; it is different from most other devices) Up to now it was incorrectly specified in the .dts file, which resulted in some complications. All software which wanted to turn on a LED needed to write the nonstandard value 0 into the brightness (for the power LED) or the bl_power (for the backlight) node in the sysfs. Of course software controlling the LEDs need to be modified to write the correct value (e.g. lcdcontroller package) into the sysfs node. This fix also allows to remove the hack in file rc.local of package "base-files", where so far the backlight LED is turned off. Code has been successfully tried out (together with changes in package lcdcontroller). Note that now on initializing the backlight, it will be turned on for half a second. I have not searched for the reason why this happens, but I find this not to be a problem. Signed-off-by: arny [email protected]
- Loading branch information
1 parent
d7edc7f
commit 53a469d
Showing
2 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# Put your custom commands here that should be executed once | ||
# the system init finished. By default this file does nothing. | ||
|
||
# Turn off the display at boot time | ||
echo "1" >/sys/class/backlight/fb_ili9341_eb904/bl_power | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters