gm45_lcd.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. @import url('../css/main.css');
  8. </style>
  9. <title>LCD compatibility on GM45 laptops</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">LCD compatibility on GM45 laptops</h1>
  14. <p>
  15. On the T400 and T500 (maybe others), some of the higher resolution panels
  16. (e.g. 1440x900, 1680x1050, 1920x1200) fail in libreboot.
  17. </p>
  18. <p>
  19. It is currently unknown, whether there exist any compatibility issues on the ThinkPad R500.
  20. </p>
  21. <p>
  22. <b>All X200/X200S/X200T LCD panels are believed to be compatible.</b>
  23. </p>
  24. <p>
  25. <a href="index.html">Back to previous index</a>.
  26. </p>
  27. </div>
  28. <div class="section">
  29. <h1>The problem</h1>
  30. <p>
  31. In some cases, backlight turns on during boot, sometimes not. In all cases,
  32. no display is shown in GRUB, nor in GNU/Linux.
  33. </p>
  34. <h1>
  35. Current workaround:
  36. </h1>
  37. <p>
  38. T500/R400 are clones of the T400. See <b>coreboot/src/mainboard/lenovo/t400/devicetree.cb</b> in libreboot,
  39. and note that <b>register "gfx.lvds_dual_channel" = "0"</b> - in other words, single channel LVDS mode is
  40. enforced. This works on the lower resolution panels (1280x800), but not on the higher ones.
  41. </p>
  42. <p>
  43. For the high-res panels, re-compiling with <b>register "gfx.lvds_dual_channel" = "1"</b> partially solves
  44. the problem for those displays; there is still no display in GRUB, but once the kernel takes over, there
  45. is a display.
  46. </p>
  47. <p>
  48. Linux (kernel) has its own init code (including EDID parsing). The current suspicion is that coreboot's
  49. own initialization code has buggy EDID parsing in some way, such that the proper settings for the panel
  50. are not used, leading to the failure. The actual graphics initialization does work.
  51. </p>
  52. <p>
  53. The i915 module in the Linux kernel also provides an option to set the LVDS link configuration.
  54. lvds_channel_mode:Specify LVDS channel mode (0=probe BIOS [default], 1=single-channel, 2=dual-channel) (int)
  55. - from /sbin/modinfo i915
  56. </p>
  57. </div>
  58. <div class="section">
  59. <h1>Differences in dmesg (kernel parameter added: )</h1>
  60. <p>
  61. <a href="https://01.org/linuxgraphics/documentation/how-report-bugs">https://01.org/linuxgraphics/documentation/how-report-bugs</a>
  62. </p>
  63. <p>
  64. These panels all work in the original firmware, so the idea is to see what differences there are in how coreboot handles them.
  65. </p>
  66. <p>
  67. <a href="http://www.coreboot.org/pipermail/coreboot/attachments/20150712/d2e214bb/attachment-0002.txt">dmesg with coreboot-libre</a> (coreboot) -
  68. See: <i>[drm:intel_lvds_init] detected single-link lvds configuration</i>
  69. </p>
  70. <p>
  71. <a href="http://www.coreboot.org/pipermail/coreboot/attachments/20150712/d2e214bb/attachment-0003.txt">dmesg with lenovobios</a> (lenovobios) -
  72. For the same line, it says dual-channel lvds configuration.
  73. </p>
  74. </div>
  75. <div class="section">
  76. <h2 id="edid">EDID</h2>
  77. <p>
  78. One T500 had a screen (1920x1200) that is currently incompatible. Working to fix it. EDID:
  79. </p>
  80. <pre>
  81. user@user-ThinkPad-T500:~/Desktop$ sudo i2cdump -y 2 0x50
  82. No size specified (using byte-data access)
  83. 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
  84. 00: XX ff ff ff ff ff ff 00 30 ae 55 40 00 00 00 00 X.......0?U@....
  85. 10: 00 11 01 03 80 21 15 78 ea ba 70 98 59 52 8c 28 .????!?x??p?YR?(
  86. 20: 25 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 %PT...??????????
  87. 30: 01 01 01 01 01 01 e7 3a 80 8c 70 b0 14 40 1e 50 ???????:??p??@?P
  88. 40: 24 00 4b cf 10 00 00 19 16 31 80 8c 70 b0 14 40 $.K??..??1??p??@
  89. 50: 1e 50 24 00 4b cf 10 00 00 19 00 00 00 0f 00 d1 ?P$.K??..?...?.?
  90. 60: 0a 32 d1 0a 28 11 01 00 32 0c 00 00 00 00 00 fe ?2??(??.2?.....?
  91. 70: 00 4c 50 31 35 34 57 55 31 2d 54 4c 42 31 00 9a .LP154WU1-TLB1.?
  92. 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  93. 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  94. a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  95. b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  96. c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  97. d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  98. e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  99. f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  100. </pre>
  101. <p>
  102. What happens: backlight turns on at boot, then turns off. At no point is there
  103. a working visual display.
  104. </p>
  105. <p>
  106. Another incompatible screen (EDID) 1680 x 1050 with the same issue:
  107. </p>
  108. <pre>
  109. EDID:
  110. 00 ff ff ff ff ff ff 00 30 ae 53 40 00 00 00 00
  111. 00 11 01 03 80 21 15 78 ea cd 75 91 55 4f 8b 26
  112. 21 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
  113. 01 01 01 01 01 01 a8 2f 90 e0 60 1a 10 40 20 40
  114. 13 00 4b cf 10 00 00 19 b7 27 90 e0 60 1a 10 40
  115. 20 40 13 00 4b cf 10 00 00 19 00 00 00 0f 00 b3
  116. 0a 32 b3 0a 28 14 01 00 4c a3 50 33 00 00 00 fe
  117. 00 4c 54 4e 31 35 34 50 33 2d 4c 30 32 0a 00 7e
  118. Extracted contents:
  119. header: 00 ff ff ff ff ff ff 00
  120. serial number: 30 ae 53 40 00 00 00 00 00 11
  121. version: 01 03
  122. basic params: 80 21 15 78 ea
  123. chroma info: cd 75 91 55 4f 8b 26 21 50 54
  124. established: 00 00 00
  125. standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
  126. descriptor 1: a8 2f 90 e0 60 1a 10 40 20 40 13 00 4b cf 10 00 00 19
  127. descriptor 2: b7 27 90 e0 60 1a 10 40 20 40 13 00 4b cf 10 00 00 19
  128. descriptor 3: 00 00 00 0f 00 b3 0a 32 b3 0a 28 14 01 00 4c a3 50 33
  129. descriptor 4: 00 00 00 fe 00 4c 54 4e 31 35 34 50 33 2d 4c 30 32 0a
  130. extensions: 00
  131. checksum: 7e
  132. Manufacturer: LEN Model 4053 Serial Number 0
  133. Made week 0 of 2007
  134. EDID version: 1.3
  135. Digital display
  136. Maximum image size: 33 cm x 21 cm
  137. Gamma: 220%
  138. Check DPMS levels
  139. DPMS levels: Standby Suspend Off
  140. Supported color formats: RGB 4:4:4, YCrCb 4:2:2
  141. First detailed timing is preferred timing
  142. Established timings supported:
  143. Standard timings supported:
  144. Detailed timings
  145. Hex of detail: a82f90e0601a1040204013004bcf10000019
  146. Did detailed timing
  147. Detailed mode (IN HEX): Clock 122000 KHz, 14b mm x cf mm
  148. 0690 06b0 06f0 0770 hborder 0
  149. 041a 041b 041e 042a vborder 0
  150. -hsync -vsync
  151. Hex of detail: b72790e0601a1040204013004bcf10000019
  152. Detailed mode (IN HEX): Clock 122000 KHz, 14b mm x cf mm
  153. 0690 06b0 06f0 0770 hborder 0
  154. 041a 041b 041e 042a vborder 0
  155. -hsync -vsync
  156. Hex of detail: 0000000f00b30a32b30a281401004ca35033
  157. Manufacturer-specified data, tag 15
  158. Hex of detail: 000000fe004c544e31353450332d4c30320a
  159. ASCII string: LTN154P3-L02
  160. Checksum
  161. Checksum: 0x7e (valid)
  162. WARNING: EDID block does NOT fully conform to EDID 1.3.
  163. Missing name descriptor
  164. Missing monitor ranges
  165. bringing up panel at resolution 1680 x 1050
  166. Borders 0 x 0
  167. Blank 224 x 16
  168. Sync 64 x 3
  169. Front porch 32 x 1
  170. Spread spectrum clock
  171. Single channel
  172. Polarities 1, 1
  173. Data M1=2132104, N1=8388608
  174. Link frequency 270000 kHz
  175. Link M1=236900, N1=524288
  176. Pixel N=9, M1=24, M2=8, P1=1
  177. Pixel clock 243809 kHz
  178. waiting for panel powerup
  179. panel powered up
  180. </pre>
  181. <p>
  182. Another incompatible (T400) screen:
  183. </p>
  184. <pre>
  185. No size specified (using byte-data access)
  186. 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
  187. 00: XX ff ff ff ff ff ff 00 30 ae 33 40 00 00 00 00 X.......0?3@....
  188. 10: 00 0f 01 03 80 1e 13 78 ea cd 75 91 55 4f 8b 26 .??????x??u?UO?&amp;
  189. 20: 21 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 !PT...??????????
  190. 30: 01 01 01 01 01 01 b0 27 a0 60 51 84 2d 30 30 20 ???????'?`Q?-00
  191. 40: 36 00 2f be 10 00 00 19 d5 1f a0 40 51 84 1a 30 6./??..????@Q??0
  192. 50: 30 20 36 00 2f be 10 00 00 19 00 00 00 0f 00 90 0 6./??..?...?.?
  193. 60: 0a 32 90 0a 28 14 01 00 4c a3 42 44 00 00 00 fe ?2??(??.L?BD...?
  194. 70: 00 4c 54 4e 31 34 31 57 44 2d 4c 30 35 0a 00 32 .LTN141WD-L05?.2
  195. 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  196. 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  197. a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  198. b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  199. c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  200. d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  201. e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  202. f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  203. </pre>
  204. <p>
  205. For comparison, here is a working display (T400 screen, but was
  206. connected to a T500. Some T500 displays also work, but no EDID
  207. available on this page yet):
  208. </p>
  209. <pre>
  210. EDID:
  211. 00 ff ff ff ff ff ff 00 30 ae 31 40 00 00 00 00
  212. 00 12 01 03 80 1e 13 78 ea b3 85 95 58 53 8a 28
  213. 25 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
  214. 01 01 01 01 01 01 26 1b 00 7d 50 20 16 30 30 20
  215. 36 00 30 be 10 00 00 18 8b 16 00 7d 50 20 16 30
  216. 30 20 36 00 30 be 10 00 00 18 00 00 00 0f 00 81
  217. 0a 32 81 0a 28 14 01 00 30 e4 28 01 00 00 00 fe
  218. 00 4c 50 31 34 31 57 58 33 2d 54 4c 52 31 00 d8
  219. Extracted contents:
  220. header: 00 ff ff ff ff ff ff 00
  221. serial number: 30 ae 31 40 00 00 00 00 00 12
  222. version: 01 03
  223. basic params: 80 1e 13 78 ea
  224. chroma info: b3 85 95 58 53 8a 28 25 50 54
  225. established: 00 00 00
  226. standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
  227. descriptor 1: 26 1b 00 7d 50 20 16 30 30 20 36 00 30 be 10 00 00 18
  228. descriptor 2: 8b 16 00 7d 50 20 16 30 30 20 36 00 30 be 10 00 00 18
  229. descriptor 3: 00 00 00 0f 00 81 0a 32 81 0a 28 14 01 00 30 e4 28 01
  230. descriptor 4: 00 00 00 fe 00 4c 50 31 34 31 57 58 33 2d 54 4c 52 31
  231. extensions: 00
  232. checksum: d8
  233. Manufacturer: LEN Model 4031 Serial Number 0
  234. Made week 0 of 2008
  235. EDID version: 1.3
  236. Digital display
  237. Maximum image size: 30 cm x 19 cm
  238. Gamma: 220%
  239. Check DPMS levels
  240. DPMS levels: Standby Suspend Off
  241. Supported color formats: RGB 4:4:4, YCrCb 4:2:2
  242. First detailed timing is preferred timing
  243. Established timings supported:
  244. Standard timings supported:
  245. Detailed timings
  246. Hex of detail: 261b007d502016303020360030be10000018
  247. Did detailed timing
  248. Detailed mode (IN HEX): Clock 69500 KHz, 130 mm x be mm
  249. 0500 0530 0550 057d hborder 0
  250. 0320 0323 0329 0336 vborder 0
  251. -hsync -vsync
  252. Hex of detail: 8b16007d502016303020360030be10000018
  253. Detailed mode (IN HEX): Clock 69500 KHz, 130 mm x be mm
  254. 0500 0530 0550 057d hborder 0
  255. 0320 0323 0329 0336 vborder 0
  256. -hsync -vsync
  257. Hex of detail: 0000000f00810a32810a2814010030e42801
  258. Manufacturer-specified data, tag 15
  259. Hex of detail: 000000fe004c503134315758332d544c5231
  260. ASCII string: LP141WX3-TLR1
  261. Checksum
  262. Checksum: 0xd8 (valid)
  263. WARNING: EDID block does NOT fully conform to EDID 1.3.
  264. Missing name descriptor
  265. Missing monitor ranges
  266. bringing up panel at resolution 1280 x 800
  267. Borders 0 x 0
  268. Blank 125 x 22
  269. Sync 32 x 6
  270. Front porch 48 x 3
  271. Spread spectrum clock
  272. Single channel
  273. Polarities 1, 1
  274. Data M1=1214600, N1=8388608
  275. Link frequency 270000 kHz
  276. Link M1=134955, N1=524288
  277. Pixel N=10, M1=14, M2=11, P1=1
  278. Pixel clock 138857 kHz
  279. waiting for panel powerup
  280. panel powered up
  281. </pre>
  282. <p>
  283. Another compatible T400 screen:
  284. </p>
  285. <pre>
  286. trisquel@trisquel:~$ sudo i2cdump -y 2 0x50
  287. No size specified (using byte-data access)
  288. 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
  289. 00: 00 ff ff ff ff ff ff 00 30 ae 31 40 00 00 00 00 ........0?1@....
  290. 10: 00 12 01 03 80 1e 13 78 ea b3 85 95 58 53 8a 28 .??????x????XS?(
  291. 20: 25 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 %PT...??????????
  292. 30: 01 01 01 01 01 01 26 1b 00 7d 50 20 16 30 30 20 ??????&?.}P ?00
  293. 40: 36 00 30 be 10 00 00 18 8b 16 00 7d 50 20 16 30 6.0??..???.}P ?0
  294. 50: 30 20 36 00 30 be 10 00 00 18 00 00 00 0f 00 81 0 6.0??..?...?.?
  295. 60: 0a 32 81 0a 28 14 01 00 30 e4 28 01 00 00 00 fe ?2??(??.0?(?...?
  296. 70: 00 4c 50 31 34 31 57 58 33 2d 54 4c 52 31 00 d8 .LP141WX3-TLR1.?
  297. 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  298. 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  299. a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  300. b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  301. c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  302. d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  303. e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  304. f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
  305. </pre>
  306. </div>
  307. <div class="section">
  308. <p>
  309. Copyright &copy; 2015 Francis Rowe &lt;info@gluglug.org.uk&gt;<br/>
  310. Permission is granted to copy, distribute and/or modify this document
  311. under the terms of the GNU Free Documentation License, Version 1.3
  312. or any later version published by the Free Software Foundation;
  313. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  314. A copy of the license can be found at <a href="../gfdl-1.3.txt">../gfdl-1.3.txt</a>
  315. </p>
  316. <p>
  317. Updated versions of the license (when available) can be found at
  318. <a href="https://www.gnu.org/licenses/licenses.html">https://www.gnu.org/licenses/licenses.html</a>
  319. </p>
  320. <p>
  321. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  322. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  323. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  324. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  325. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  326. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  327. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  328. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  329. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  330. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  331. </p>
  332. <p>
  333. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  334. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  335. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  336. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  337. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  338. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  339. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  340. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  341. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  342. </p>
  343. <p>
  344. The disclaimer of warranties and limitation of liability provided
  345. above shall be interpreted in a manner that, to the extent
  346. possible, most closely approximates an absolute disclaimer and
  347. waiver of all liability.
  348. </p>
  349. </div>
  350. </body>
  351. </html>