Author: quozl
Date: Fri Jan 16 02:18:09 2015
New Revision: 3766
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3766
Log:
OLPC XO-4 - set display brightness to full on old displays, and to closest match on new displays, see #12854
Modified:
dev/olpc/dcon/mmp2dcon.fth
Modified: dev/olpc/dcon/mmp2dcon.fth
==============================================================================
--- dev/olpc/dcon/mmp2dcon.fth Fri Jan 16 02:17:12 2015 (r3765)
+++ dev/olpc/dcon/mmp2dcon.fth Fri Jan 16 02:18:09 2015 (r3766)
@@ -244,10 +244,18 @@
scanint-set
false
;
+h# f value default-bright
: dcon-enable ( -- )
dcon-setup if exit then
true set-color
- h# f bright!
+ default-bright bright!
+;
+: ?bright
+ " BL" find-tag if
+ ?-null push-hex $number if 0 then pop-base
+ to default-bright
+ then
+ default-bright bright!
;
0 value dcon-found?
@@ -271,6 +279,7 @@
\ Unnecessary because CForth has already done it
\ dcon-load dcon-enable ( maybe-set-cmos )
\ dcon-enable leaves mode set to 69 - 40:antialias, 20:swizzle, 8:backlight on, 1:passthru off
+ ?bright
scanint-set
true
;