ThinkPad backlight values - librecore-org/librecore GitHub Wiki
Run sudo get-edid | xxd
to get the EDID printed. Test values with sudo intel_reg write 0x00061254 <value>
.
0x58c758c7 is a good starting point for most CCFL screens. The default 0x06100610 generally works on all LED's, but can probably be finetuned.
i945 currently works differently in coreboot (legacy backlight mode). That reg always remains the same, where on gm45 the 16 first bits to the right change when duty cycle is changed. On i945 another register is used so set backlight duty cycle. Also bit 16 always needs be set to 1 and the value first 16 bits need to be less than the value of the last 31-16 bits.
About display string in EDID:
- the edid string begins at 0x71
- has a max length of 13 chars (or bytes)
- if an EDID string has a newline (0x0a) before the 13th character the remainder ones should be a spaces (0x20) for the string to be valid, although this is sometimes not the case.
- coreboot parses the edid string like this:
static char *
extract_string(unsigned char *x, int *valid_termination, int len)
{
static char ret[128];
int i, seen_newline = 0;
memset(ret, 0, sizeof(ret));
for (i = 0; i < len; i++) {
if (seen_newline) {
if (x[i] != 0x20) {
*valid_termination = 0;
return ret;
} else if (x[i] == 0x0a) {
seen_newline = 1;
} else {
/* normal characters */
ret[i] = x[i];
}
}
return ret;
}
## X200
-------------------------------------------------------------------------------------------
Vendor: AU Optronics
Model: 'B121EW03 V6 '
Type: CCFL
Value: 0x58c758c7
Hz: 110
TESTED: 02/02/2017 - Kevin Keijzer (x2)
EDID:
00000000: 00ff ffff ffff ff00 30ae 1040 0000 0000 ........0..@....
00000010: 0111 0103 801a 1078 ea87 f594 574f 8c27 .......x....WO.'
00000020: 2750 5400 0000 0101 0101 0101 0101 0101 'PT.............
00000030: 0101 0101 0101 c61b 00a0 5020 1730 3020 ..........P .00
00000040: 3600 05a3 1000 0018 2617 00a0 5020 1730 6.......&...P .0
00000050: 3020 3600 05a3 1000 0018 0000 000f 0081 0 6.............
00000060: 0a3c 810a 3214 0100 06af 1436 0000 00fe .<..2......6....
00000070: 0042 3132 3145 5730 3320 5636 200a 00aa .B121EW03 V6 ...
-------------------------------------------------------------------------------------------
Vendor: AU Optronics
Model: 'B121EW09 V3 '
Type: LED
Value: 0x15b315b3
Hz: 450
TESTED: 02/02/2017 - Kevin Keijzer (x1)
EDID:
00000000: 00ff ffff ffff ff00 30ae 1140 0000 0000 ........0..@....
00000010: 0113 0103 801a 1078 ea65 858f 5958 8f26 .......x.e..YX.&
00000020: 1b50 5400 0000 0101 0101 0101 0101 0101 .PT.............
00000030: 0101 0101 0101 121b 007b 5020 1530 3020 .........{P .00
00000040: 3600 05a3 1000 0018 7f16 007b 5020 1530 6..........{P .0
00000050: 3020 3600 05a3 1000 0018 0000 000f 0081 0 6.............
00000060: 0a3c 810a 3216 0900 06af 5633 0000 00fe .<..2.....V3....
00000070: 0042 3132 3145 5730 3920 5633 200a 009b .B121EW09 V3 ...
-------------------------------------------------------------------------------------------
Vendor: BOE-Hydis
Model: 'HV121WX4-120'
Type: CCFL
Value: 0x58c758c7
Hz: 110
TESTED: 02/02/2017 - Kevin Keijzer (x1)
EDID:
00000000: 00ff ffff ffff ff00 30ae 1040 0000 0000 ........0..@....
00000010: 0012 0103 801a 1078 ea86 8595 574d 8d25 .......x....WM.%
00000020: 2450 5400 0000 0101 0101 0101 0101 0101 $PT.............
00000030: 0101 0101 0101 5c1d 00f2 5020 1730 4a3a ......\...P .0J:
00000040: 3600 05a3 1000 0019 5c1d 00f2 5020 1730 6.......\...P .0
00000050: 4a3a 3600 05a3 1000 0019 0000 000f 0081 J:6.............
00000060: 0a3c 810a 3c14 0000 09e5 9e08 0000 00fe .<..<...........
00000070: 0048 5631 3231 5758 342d 3132 300a 006c .HV121WX4-120..l
Variants: 'HV121WX4-110' and 'HV121WX4-100'
(Exact same display, only a different coating)
-------------------------------------------------------------------------------------------
Vendor: Samsung
Model: 'LTN121AT03001'
Type: CCFL
Value: 0x58c758c7
Hz: 110
TESTED: 02/02/2017 - Kevin Keijzer (x1)
EDID:
00000000: 00ff ffff ffff ff00 30ae 1040 0000 0000 ........0..@....
00000010: 2d12 0103 801a 1078 ea85 c594 574f 8a27 -......x....WO.'
00000020: 2050 5400 0000 0101 0101 0101 0101 0101 PT.............
00000030: 0101 0101 0101 ee1a 0080 5020 1030 1030 ..........P .0.0
00000040: 1300 05a3 1000 0019 d017 00c6 5020 1930 ............P .0
00000050: 3020 3600 05a3 1000 0019 0000 000f 0081 0 6.............
00000060: 0a3c 810a 3216 0100 4ca3 5731 0000 00fe .<..2...L.W1....
00000070: 004c 544e 3132 3141 5430 3330 3031 003d .LTN121AT03001.=
-------------------------------------------------------------------------------------------
Vendor: Toshiba
Model: 'LTD121EWVB'
Type: CCFL
Value: 0x58c758c7
Hz: 110
TESTED: 02/02/2017 - Kevin Keijzer (x3)
EDID:
00000000: 00ff ffff ffff ff00 30ae 1040 0000 0000 ........0..@....
00000010: 1e13 0103 801a 1078 eae5 9593 564f 9028 .......x....VO.(
00000020: 2850 5400 0000 0101 0101 0101 0101 0101 (PT.............
00000030: 0101 0101 0101 6a1d 00e8 5020 1e30 1030 ......j...P .0.0
00000040: 2200 05a3 1000 0018 2617 00a0 5020 1730 ".......&...P .0
00000050: 3020 3600 05a3 1000 0018 0000 000f 0081 0 6.............
00000060: 0a3c 810a 3216 0100 3064 0055 0000 00fe .<..2...0d.U....
00000070: 004c 5444 3132 3145 5756 420a 2020 0081 .LTD121EWVB. ..
-------------------------------------------------------------------------------------------
Guessed x200 displays
From thinkwiki:
* 'B121EW09 V2 ' (LED) 0x15b315b3
* 'N121IB-L05' (LED) 0x15b315b3
* 'LP121WX3-TLC1' (LED) 0x15b315b3
* 'LP121WX3-TLA1' (LED) 0x15b315b3
* 'B121EW03 V3 ' (CCFL) 0x58c758c7
* 'LTN121AP02001' (CCFL) 0x58c758c7
-------------------------------------------------------------------------------------------
## T400
-------------------------------------------------------------------------------------------
Vendor: AU Optronics
Model: B141EW04
Type: CCFL
Value: 0x58c758c7
Hz: 110
00000000: 00ff ffff ffff ff00 30ae 3140 0000 0000 ........0.1@....
00000010: 0110 0103 801e 1378 ea87 c594 574f 8c27 .......x....WO.'
00000020: 2550 5400 0000 0101 0101 0101 0101 0101 %PT.............
00000030: 0101 0101 0101 0d1b 007c 5020 1630 3020 .........|P .00
00000040: 3600 30be 1000 0018 8b16 007c 5020 1630 6.0........|P .0
00000050: 3020 3600 30be 1000 0018 0000 000f 0081 0 6.0...........
00000060: 0a32 810a 2812 0100 06af 4447 0000 00fe .2..(.....DG....
00000070: 0042 3134 3145 5730 3420 5637 200a 0099 .B141EW04 V7 ...
-------------------------------------------------------------------
Vendor: LG
Model: LP141WX3
Type: CCFL
Value: 0x58c758c7
Hz: 110
EDID:
00000000: 00ff ffff ffff ff00 30ae 3140 0000 0000 ........0.1@....
00000010: 0012 0103 801e 1378 eab3 8595 5853 8a28 .......x....XS.(
00000020: 2550 5400 0000 0101 0101 0101 0101 0101 %PT.............
00000030: 0101 0101 0101 261b 007d 5020 1630 3020 ......&..}P .00
00000040: 3600 30be 1000 0018 8b16 007d 5020 1630 6.0........}P .0
00000050: 3020 3600 30be 1000 0018 0000 000f 0081 0 6.0...........
00000060: 0a32 810a 2814 0100 30e4 2801 0000 00fe .2..(...0.(.....
00000070: 004c 5031 3431 5758 332d 544c 5231 00d8 .LP141WX3-TLR1..
-------------------------------------------------------------------
Vendor: LG
Model: LP141WX5
Type: LED
Value: 0x15b315b3
Hz: 450
EDID:
00000000: 00ff ffff ffff ff00 30ae 3540 0000 0000 ........0.5@....
00000010: 0013 0103 801e 1378 ea1f 3593 5955 8a28 .......x..5.YU.(
00000020: 2250 5400 0000 0101 0101 0101 0101 0101 "PT.............
00000030: 0101 0101 0101 261b 007d 5020 1630 3020 ......&..}P .00
00000040: 3600 30be 1000 0018 8b16 007d 5020 1630 6.0........}P .0
00000050: 3020 3600 30be 1000 0018 0000 000f 0081 0 6.0...........
00000060: 0a32 810a 2814 0900 30e4 ed01 0000 00fe .2..(...0.......
00000070: 004c 5031 3431 5758 352d 544c 5032 00eb .LP141WX5-TLP2..
-------------------------------------------------------------------------------------------
Vendor: Samsung
Model: LTN141AT12
Type: LED
Value: 0x15b315b3
Hz: 450
EDID:
00000000: 00ff ffff ffff ff00 30ae 3540 0000 0000 ........0.5@....
00000010: 0013 0103 801e 1378 ea01 f597 5752 8a27 .......x....WR.'
00000020: 2350 5400 0000 0101 0101 0101 0101 0101 #PT.............
00000030: 0101 0101 0101 0e20 0088 5120 1230 3440 ....... ..Q .04@
00000040: 3300 2fbe 1000 0019 fe17 00c1 5020 2230 3./.........P "0
00000050: 3440 3300 2fbe 1000 0019 0000 000f 0081 4@3./...........
00000060: 0a32 810a 2816 0900 4ca3 4154 0000 00fe .2..(...L.AT....
00000070: 004c 544e 3134 3141 5431 3234 3031 001f .LTN141AT12401..
-------------------------------------------------------------------------------------------
Vendor: Samsung
Model: LTN141W1-L05
Type: CCFL
Value: 0x58c758c7
Hz: 110
EDID:
00000000: 00ff ffff ffff ff00 30ae 3140 0000 0000 ........0.1@....
00000010: 0011 0103 801e 1378 eacd 7591 554f 8b26 .......x..u.UO.&
00000020: 2150 5400 0000 0101 0101 0101 0101 0101 !PT.............
00000030: 0101 0101 0101 261b 0088 5020 1230 3440 ......&...P .04@
00000040: 3300 2fbe 1000 0019 8b16 0068 5020 2230 3./........hP "0
00000050: 3440 3300 2fbe 1000 0019 0000 000f 0081 4@3./...........
00000060: 0a32 810a 2812 0100 4ca3 5731 0000 00fe .2..(...L.W1....
00000070: 004c 544e 3134 3157 312d 4c30 350a 00d7 .LTN141W1-L05...
-------------------------------------------------------------------------------------------
Vendor: Samsung
Model: LTN141WD-L05
Type: CCFL
Value: 0x58c758c7
Hz: 110
EDID:
00000000: 00ff ffff ffff ff00 30ae 3340 0000 0000 ........0.3@....
00000010: 000f 0103 801e 1378 eacd 7591 554f 8b26 .......x..u.UO.&
00000020: 2150 5400 0000 0101 0101 0101 0101 0101 !PT.............
00000030: 0101 0101 0101 b027 a060 5184 2d30 3020 .......'.`Q.-00
00000040: 3600 2fbe 1000 0019 d51f a040 5184 1a30 6./[email protected]
00000050: 3020 3600 2fbe 1000 0019 0000 000f 0090 0 6./...........
00000060: 0a32 900a 2814 0100 4ca3 4244 0000 00fe .2..(...L.BD....
00000070: 004c 544e 3134 3157 442d 4c30 350a 0032 .LTN141WD-L05..2
-------------------------------------------------------------------------------------------
## T500
-------------------------------------------------------------------------------------------
Vendor: LG
Model: LP154W02
Type: CCFL
Value: 0x58c758c7
Hz: 110
EDID:
00000000: 00ff ffff ffff ff00 244d 8728 0000 0000 ........$M.(....
00000010: 000f 0103 8021 1578 0abc a598 5855 8b28 .....!.x....XU.(
00000020: 2450 5400 0000 0101 0101 0101 0101 0101 $PT.............
00000030: 0101 0101 0101 1c2f 90d0 601a 0f40 2030 ......./..`..@ 0
00000040: 1300 4bcf 1000 0019 4527 90d0 601a 0f40 ..K.....E'..`..@
00000050: 2030 1300 4bcf 1000 0019 0000 000f 00b3 0..K...........
00000060: 0a32 b30a 2814 0100 320c 0000 0000 00fe .2..(...2.......
00000070: 004c 5031 3534 5730 322d 544c 3036 00bf .LP154W02-TL06..
-------------------------------------------------------------------------------------------
Vendor: Samsung
Model: LTN154P3-L02
Type: CCFL
Value: 0x58c758c7
Hz: 110
EDID:
00000000: 00ff ffff ffff ff00 30ae 5340 0000 0000 ........0.S@....
00000010: 0011 0103 8021 1578 eacd 7591 554f 8b26 .....!.x..u.UO.&
00000020: 2150 5400 0000 0101 0101 0101 0101 0101 !PT.............
00000030: 0101 0101 0101 a82f 90e0 601a 1040 2040 ......./..`..@ @
00000040: 1300 4bcf 1000 0019 b727 90e0 601a 1040 ..K......'..`..@
00000050: 2040 1300 4bcf 1000 0019 0000 000f 00b3 @..K...........
00000060: 0a32 b30a 2814 0100 4ca3 5033 0000 00fe .2..(...L.P3....
00000070: 004c 544e 3135 3450 332d 4c30 320a 007e .LTN154P3-L02..~
-------------------------------------------------------------------------------------------
x200 tablet Model ASCII string: LTN121AP03001
The thinkwiki.de website has a pretty exhaustive list of displays. Find datasheets, extract strings from it (and maybe backlight pwm value)