Guest User

X230 FHD mod

a guest
Sep 20th, 2015
4,100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -uNr linux-4.1.3-vanilla/drivers/gpu/drm/i915/intel_dp.c linux-4.1.3/drivers/gpu/drm/i915/intel_dp.c
  2. --- linux-4.1.3-vanilla/drivers/gpu/drm/i915/intel_dp.c 2015-07-21 18:10:33.000000000 +0100
  3. +++ linux-4.1.3/drivers/gpu/drm/i915/intel_dp.c 2015-08-02 11:11:37.305576415 +0100
  4. @@ -102,8 +102,7 @@
  5.  static bool is_edp(struct intel_dp *intel_dp)
  6.  {
  7.     struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
  8. -
  9. -   return intel_dig_port->base.type == INTEL_OUTPUT_EDP;
  10. +   return intel_dig_port->base.type == INTEL_OUTPUT_EDP || strncmp(intel_dp->attached_connector->base.name, "DP-3", 4) == 0;
  11.  }
  12.  
  13.  static struct drm_device *intel_dp_to_dev(struct intel_dp *intel_dp)
  14. @@ -4743,7 +4742,7 @@
  15.         [PORT_D] = PORT_IDPD,
  16.     };
  17.  
  18. -   if (port == PORT_A)
  19. +   if (port == PORT_D)
  20.         return true;
  21.  
  22.     if (!dev_priv->vbt.child_dev_num)
  23. diff -uNr linux-4.1.3-vanilla/drivers/gpu/drm/i915/intel_lvds.c linux-4.1.3/drivers/gpu/drm/i915/intel_lvds.c
  24. --- linux-4.1.3-vanilla/drivers/gpu/drm/i915/intel_lvds.c   2015-07-21 18:10:33.000000000 +0100
  25. +++ linux-4.1.3/drivers/gpu/drm/i915/intel_lvds.c   2015-07-31 09:44:22.756192751 +0100
  26. @@ -552,201 +552,10 @@
  27.  static const struct dmi_system_id intel_no_lvds[] = {
  28.     {
  29.         .callback = intel_no_lvds_dmi_callback,
  30. -       .ident = "Apple Mac Mini (Core series)",
  31. +       .ident = "modded Thinkpad X230",
  32.         .matches = {
  33. -           DMI_MATCH(DMI_SYS_VENDOR, "Apple"),
  34. -           DMI_MATCH(DMI_PRODUCT_NAME, "Macmini1,1"),
  35. -       },
  36. -   },
  37. -   {
  38. -       .callback = intel_no_lvds_dmi_callback,
  39. -       .ident = "Apple Mac Mini (Core 2 series)",
  40. -       .matches = {
  41. -           DMI_MATCH(DMI_SYS_VENDOR, "Apple"),
  42. -           DMI_MATCH(DMI_PRODUCT_NAME, "Macmini2,1"),
  43. -       },
  44. -   },
  45. -   {
  46. -       .callback = intel_no_lvds_dmi_callback,
  47. -       .ident = "MSI IM-945GSE-A",
  48. -       .matches = {
  49. -           DMI_MATCH(DMI_SYS_VENDOR, "MSI"),
  50. -           DMI_MATCH(DMI_PRODUCT_NAME, "A9830IMS"),
  51. -       },
  52. -   },
  53. -   {
  54. -       .callback = intel_no_lvds_dmi_callback,
  55. -       .ident = "Dell Studio Hybrid",
  56. -       .matches = {
  57. -           DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  58. -           DMI_MATCH(DMI_PRODUCT_NAME, "Studio Hybrid 140g"),
  59. -       },
  60. -   },
  61. -   {
  62. -       .callback = intel_no_lvds_dmi_callback,
  63. -       .ident = "Dell OptiPlex FX170",
  64. -       .matches = {
  65. -           DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
  66. -           DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex FX170"),
  67. -       },
  68. -   },
  69. -   {
  70. -       .callback = intel_no_lvds_dmi_callback,
  71. -       .ident = "AOpen Mini PC",
  72. -       .matches = {
  73. -           DMI_MATCH(DMI_SYS_VENDOR, "AOpen"),
  74. -           DMI_MATCH(DMI_PRODUCT_NAME, "i965GMx-IF"),
  75. -       },
  76. -   },
  77. -   {
  78. -       .callback = intel_no_lvds_dmi_callback,
  79. -       .ident = "AOpen Mini PC MP915",
  80. -       .matches = {
  81. -           DMI_MATCH(DMI_BOARD_VENDOR, "AOpen"),
  82. -           DMI_MATCH(DMI_BOARD_NAME, "i915GMx-F"),
  83. -       },
  84. -   },
  85. -   {
  86. -       .callback = intel_no_lvds_dmi_callback,
  87. -       .ident = "AOpen i915GMm-HFS",
  88. -       .matches = {
  89. -           DMI_MATCH(DMI_BOARD_VENDOR, "AOpen"),
  90. -           DMI_MATCH(DMI_BOARD_NAME, "i915GMm-HFS"),
  91. -       },
  92. -   },
  93. -   {
  94. -       .callback = intel_no_lvds_dmi_callback,
  95. -                .ident = "AOpen i45GMx-I",
  96. -                .matches = {
  97. -                        DMI_MATCH(DMI_BOARD_VENDOR, "AOpen"),
  98. -                        DMI_MATCH(DMI_BOARD_NAME, "i45GMx-I"),
  99. -                },
  100. -        },
  101. -   {
  102. -       .callback = intel_no_lvds_dmi_callback,
  103. -       .ident = "Aopen i945GTt-VFA",
  104. -       .matches = {
  105. -           DMI_MATCH(DMI_PRODUCT_VERSION, "AO00001JW"),
  106. -       },
  107. -   },
  108. -   {
  109. -       .callback = intel_no_lvds_dmi_callback,
  110. -       .ident = "Clientron U800",
  111. -       .matches = {
  112. -           DMI_MATCH(DMI_SYS_VENDOR, "Clientron"),
  113. -           DMI_MATCH(DMI_PRODUCT_NAME, "U800"),
  114. -       },
  115. -   },
  116. -   {
  117. -                .callback = intel_no_lvds_dmi_callback,
  118. -                .ident = "Clientron E830",
  119. -                .matches = {
  120. -                        DMI_MATCH(DMI_SYS_VENDOR, "Clientron"),
  121. -                        DMI_MATCH(DMI_PRODUCT_NAME, "E830"),
  122. -                },
  123. -        },
  124. -        {
  125. -       .callback = intel_no_lvds_dmi_callback,
  126. -       .ident = "Asus EeeBox PC EB1007",
  127. -       .matches = {
  128. -           DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer INC."),
  129. -           DMI_MATCH(DMI_PRODUCT_NAME, "EB1007"),
  130. -       },
  131. -   },
  132. -   {
  133. -       .callback = intel_no_lvds_dmi_callback,
  134. -       .ident = "Asus AT5NM10T-I",
  135. -       .matches = {
  136. -           DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."),
  137. -           DMI_MATCH(DMI_BOARD_NAME, "AT5NM10T-I"),
  138. -       },
  139. -   },
  140. -   {
  141. -       .callback = intel_no_lvds_dmi_callback,
  142. -       .ident = "Hewlett-Packard HP t5740",
  143. -       .matches = {
  144. -           DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"),
  145. -           DMI_MATCH(DMI_PRODUCT_NAME, " t5740"),
  146. -       },
  147. -   },
  148. -   {
  149. -       .callback = intel_no_lvds_dmi_callback,
  150. -       .ident = "Hewlett-Packard t5745",
  151. -       .matches = {
  152. -           DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"),
  153. -           DMI_MATCH(DMI_PRODUCT_NAME, "hp t5745"),
  154. -       },
  155. -   },
  156. -   {
  157. -       .callback = intel_no_lvds_dmi_callback,
  158. -       .ident = "Hewlett-Packard st5747",
  159. -       .matches = {
  160. -           DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"),
  161. -           DMI_MATCH(DMI_PRODUCT_NAME, "hp st5747"),
  162. -       },
  163. -   },
  164. -   {
  165. -       .callback = intel_no_lvds_dmi_callback,
  166. -       .ident = "MSI Wind Box DC500",
  167. -       .matches = {
  168. -           DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., LTD"),
  169. -           DMI_MATCH(DMI_BOARD_NAME, "MS-7469"),
  170. -       },
  171. -   },
  172. -   {
  173. -       .callback = intel_no_lvds_dmi_callback,
  174. -       .ident = "Gigabyte GA-D525TUD",
  175. -       .matches = {
  176. -           DMI_MATCH(DMI_BOARD_VENDOR, "Gigabyte Technology Co., Ltd."),
  177. -           DMI_MATCH(DMI_BOARD_NAME, "D525TUD"),
  178. -       },
  179. -   },
  180. -   {
  181. -       .callback = intel_no_lvds_dmi_callback,
  182. -       .ident = "Supermicro X7SPA-H",
  183. -       .matches = {
  184. -           DMI_MATCH(DMI_SYS_VENDOR, "Supermicro"),
  185. -           DMI_MATCH(DMI_PRODUCT_NAME, "X7SPA-H"),
  186. -       },
  187. -   },
  188. -   {
  189. -       .callback = intel_no_lvds_dmi_callback,
  190. -       .ident = "Fujitsu Esprimo Q900",
  191. -       .matches = {
  192. -           DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
  193. -           DMI_MATCH(DMI_PRODUCT_NAME, "ESPRIMO Q900"),
  194. -       },
  195. -   },
  196. -   {
  197. -       .callback = intel_no_lvds_dmi_callback,
  198. -       .ident = "Intel D410PT",
  199. -       .matches = {
  200. -           DMI_MATCH(DMI_BOARD_VENDOR, "Intel"),
  201. -           DMI_MATCH(DMI_BOARD_NAME, "D410PT"),
  202. -       },
  203. -   },
  204. -   {
  205. -       .callback = intel_no_lvds_dmi_callback,
  206. -       .ident = "Intel D425KT",
  207. -       .matches = {
  208. -           DMI_MATCH(DMI_BOARD_VENDOR, "Intel"),
  209. -           DMI_EXACT_MATCH(DMI_BOARD_NAME, "D425KT"),
  210. -       },
  211. -   },
  212. -   {
  213. -       .callback = intel_no_lvds_dmi_callback,
  214. -       .ident = "Intel D510MO",
  215. -       .matches = {
  216. -           DMI_MATCH(DMI_BOARD_VENDOR, "Intel"),
  217. -           DMI_EXACT_MATCH(DMI_BOARD_NAME, "D510MO"),
  218. -       },
  219. -   },
  220. -   {
  221. -       .callback = intel_no_lvds_dmi_callback,
  222. -       .ident = "Intel D525MW",
  223. -       .matches = {
  224. -           DMI_MATCH(DMI_BOARD_VENDOR, "Intel"),
  225. -           DMI_EXACT_MATCH(DMI_BOARD_NAME, "D525MW"),
  226. +           DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
  227. +           DMI_MATCH(DMI_PRODUCT_NAME, "2324B14"),
  228.         },
  229.     },
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×