{"id":1020,"date":"2019-12-09T10:07:50","date_gmt":"2019-12-09T01:07:50","guid":{"rendered":"https:\/\/ahnbk.com\/?p=1020"},"modified":"2020-01-18T12:36:59","modified_gmt":"2020-01-18T03:36:59","slug":"fix-screen-flickering-on-ubuntu-18-04-3","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=1020","title":{"rendered":"Fix Screen Flickering of Dell Laptop on Ubuntu 18.04.3"},"content":{"rendered":"\n<p>\ud604\uc7ac \uc791\uc5c5\uc6a9\uc73c\ub85c \ub378 XPS15 9570 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ucc98\uc74c Ubuntu\ub97c \uc124\uce58\ud558\uc5ec \uc0ac\uc6a9\ud560 \ub54c\ub294 \ud070 \ubb38\uc81c\ub294 \uc5c6\uc5c8\ub294\ub370, \ucd5c\uadfc\ub4e4\uc5b4 Ubuntu \uc124\uce58\ub54c\ubd80\ud130 \uc0ac\uc6a9\uc911\uc5d0\ub3c4 \ud654\uba74\uc774 \uacc4\uc18d \uae5c\ube61\uc774\uac70\ub098 \ud53d\uc140\uc774 \uae68\uc9c0\ub294 \ub4f1\uc758 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\ub367: \uac80\uc0c9\ud574 \ubcf8 \uacb0\uacfc, i915 (\uc778\ud154 \uadf8\ub798\ud53d \ub4dc\ub77c\uc774\ubc84)\uc758 \ubb38\uc81c\ub85c, 4K \ubaa8\ub2c8\ud130\ub97c \uac00\uc9c4 \uc778\ud154 \ub7a9\ud0d1\uc5d0\uc11c \ub300\ubd80\ubd84 \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub85c \ubcf4\uc784.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\ub9c8\uce58 \ud558\ub4dc\uc6e8\uc5b4 (\ub514\uc2a4\ud50c\ub808\uc774 \ubd80\ubd84)\uc758 \ubd88\ub7c9\uc778\ub4ef \ubcf4\uc600\uc9c0\ub9cc, \uc708\ub3c4\uc6b0\ub85c \ubd80\ud305\ud558\uac8c\ub418\uba74 \uc774\ub7f0 \uc99d\uc0c1\uc740 \ub098\ud0c0\ub098\uc9c0 \uc54a\uc558\uae30\uc5d0 \uc11c\ube44\uc2a4\ub97c \ub9e1\uae30\uae30\uc5d0\ub3c4 \uc560\ub9e4\ud558\uc600\ub294\ub370\uc694. \uac80\uc0c9\uc744 \ud574\ubcf4\ub2c8 (\ud0a4\uc6cc\ub4dc: kernel 5.0, screen flickering) \ub9ac\ub205\uc2a4 \ucee4\ub110\uc774 5.0 \ubc84\uc804\uc73c\ub85c \uc62c\ub77c\uac00\uba74\uc11c eDP (\uc544\ub9c8\ub3c4 \ub514\uc2a4\ud50c\ub808\uc774 \ud328\ub110 \uad00\ub828) \ub4dc\ub77c\uc774\ubc84\uc758 \ucf54\ub4dc\uac00 \ubcc0\uacbd\ub428\uc5d0 \ub530\ub77c \uc77c\ubd80 LCD \ud328\ub110\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub77c\uace0 \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>It was introduced by an optimization for eDP 1.4+ (&#8220;link config fast and narrow&#8221;) in the 5.x kernel; the patch doesn&#8217;t work for some panels, including that of the XPS 15, and had to be rolled back.<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-attachment-id=\"1022\" data-permalink=\"https:\/\/ahnbk.com\/?attachment_id=1022\" data-orig-file=\"https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?fit=1840%2C1504&amp;ssl=1\" data-orig-size=\"1840,1504\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?fit=1000%2C817&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?fit=525%2C429&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?resize=473%2C386&#038;ssl=1\" alt=\"\" class=\"wp-image-1022\" width=\"473\" height=\"386\" srcset=\"https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?w=1840&amp;ssl=1 1840w, https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?resize=1000%2C817&amp;ssl=1 1000w, https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?resize=768%2C628&amp;ssl=1 768w, https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?resize=1536%2C1256&amp;ssl=1 1536w, https:\/\/i0.wp.com\/ahnbk.com\/wp-content\/uploads\/2019\/12\/image-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"(max-width: 473px) 100vw, 473px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc73c\ub860 \ucee4\ub110 \ubc84\uc804\uc744 \uc774\ub97c \ud574\uacb0\ud55c \ubc84\uc804\uc73c\ub85c \uc62c\ub824\uc57c \ud55c\ub2e4\uace0 \ud558\ub294\ub370, \ucc3e\uc544\ubcf4\uace0 \uc124\uce58\ud574 \ubcf8 \uacb0\uacfc \ucee4\ub110 \ubc84\uc804\uc744 \uc62c\ub824\ub3c4 \uc774\uc640 \uac19\uc740 \ubb38\uc81c\uac00 \ud574\uacb0\ub418\uc9c4 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c \ubc29\ubc95\uc73c\ub860 \ucee4\ub110 \uc18c\uc2a4\ub97c \uc9c1\uc811 \ubc1b\uc544, \ubb38\uc81c\ub418\ub294 \ubd80\ubd84\uc744 \uc218\uc815\ud558\uace0, \ucee4\ub110\uc744 \ube4c\ub4dc\ud558\uc5ec \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc758 \uacfc\uc815\uc740 \uc774\uc640 \uac19\uc740 \uacfc\uc815\uc744 \uc815\ub9ac\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uba3c\uc81c \ucee4\ub110 \ube4c\ub4dc\uc5d0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4. (Install necessary packages)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install git build-essential kernel-package fakeroot libncurses5-dev libssl-dev ccache flex bison<\/code><\/pre>\n\n\n\n<p>\uc791\uc5c5\uc744 \uc704\ud55c \ub514\ub809\ud1a0\ub9ac\ub97c \uc0dd\uc131\ud558\uace0, \ucee4\ub110 \uc18c\uc2a4\ub97c \ubc1b\uc544\uc635\ub2c8\ub2e4. \ud604\uc7ac \uc0ac\uc6a9\ud558\uace0 \uc788\ub294 \ucee4\ub110 \ubc84\uc804\uacfc \uac00\uc7a5 \uc720\uc0ac\ud55c \ubc84\uc804\uc744 \uac00\uc838\uc624\uba74 \ub429\ub2c8\ub2e4. \uc0ac\uc6a9\ud558\uace0 \uc788\ub294 \ucee4\ub110 \ubc84\uc804\uc740 &#8220;uname -r&#8221; \uba85\ub839\uc744 \ud1b5\ud574 \ud655\uc778 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>make directory for kernel build and clone kernel source<\/p>\n\n\n\n<p>\uc5c5\ub370\uc774\ud2b8: \ud604\uc7ac (2010\/01) LTS \ucd5c\uc2e0 \ucee4\ub110 \ubc84\uc804\uc740 5.3.0-26\uc774\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd ~\n$ mkdir kernel_build \n$ cd kernel_build \n$ git clone -b linux-5.3.y git:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/stable\/linux-stable.git\nCloning into 'linux-stable'...\n\nremote: Enumerating objects: 8131608, done.\nremote: Counting objects: 100% (8131608\/8131608), done.\nremote: Compressing objects: 100% (1204105\/1204105), done.\nReceiving objects: 100% (8131608\/8131608), 1.30 GiB | 2.21 MiB\/s, done.\nremote: Total 8131608 (delta 6878708), reused 8130931 (delta 6878032)\nResolving deltas: 100% (6878708\/6878708), done.\nChecking out files: 100% (63144\/63144), done.<\/code><\/pre>\n\n\n\n<p>\uc18c\uc2a4\ub97c \ubc1b\uc544\uc624\ub294\ub370 \uc880 \uc2dc\uac04\uc774 \uac78\ub9bd\ub2c8\ub2e4. \ud574\uc678\ub9dd \uc18d\ub3c4\uac00 \ube60\ub974\uba74 \ube68\ub9ac \ubc1b\uc544\uc624\uae30\ub3c4&#8230;<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc73c\ub85c \ud604\uc7ac \uc0ac\uc6a9\uc911\uc778 \ucee4\ub110 \ubc84\uc804\uc758 \ube4c\ub4dc configuration \ud30c\uc77c\uc744 \ubcf5\uc0ac\ud574\uc635\ub2c8\ub2e4. move linux-stable directory, and copy current configuration of your current kernel.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd linux-stable\n$ cp \/boot\/config-`uname -r` .config<\/code><\/pre>\n\n\n\n<p>\uc774\uc81c, \ubcf5\uc0ac\ud574\uc628 configuration \ud30c\uc77c\uc744 \ud604\uc7ac \ubc1b\uc740 \ucee4\ub110 \uc18c\uc2a4\uc758 \ube4c\ub4dc \ud658\uacbd\uc5d0 \uc801\uc6a9\ud574 \uc8fc\ub3c4\ub85d \ud569\ub2c8\ub2e4. Now you have to adapt the old configuration to the new kernel.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ yes '' | make oldconfig<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\uc774\uc81c \ubb38\uc81c\uac00 \ub41c eDP \uad00\ub828 \uc18c\uc2a4 \ud30c\uc77c\uc744 \uc218\uc815\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi drivers\/gpu\/drm\/i915\/display\/intel_dp.c<\/code><\/pre>\n\n\n\n<p>\ub300\ub7b5 2120\ubc88 \ub77c\uc778\uc73c\ub85c \uac00\ubcf4\uba74, intel_dp_compute_link_config \ud568\uc218 \ub0b4\uc5d0 \ub2e4\uc74c\uc758 \ub77c\uc778\uc744 \uc218\uc815\ud574\uc90d\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc5c5\ub370\uc774\ud2b8: \ucee4\ub110 \ubc84\uc804\uc774 \ubc14\ub00c\uba74\uc11c \uc18c\uc2a4 \ud30c\uc77c\uc758 \uc704\uce58 \ubc0f \ub77c\uc778 \ubcc0\uacbd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        if (intel_dp_is_edp(intel_dp)) {\n\t\t\/*\n\t\t * Use the maximum clock and number of lanes the eDP panel\n\t\t * advertizes being capable of. The panels are generally\n\t\t * designed to support only a single clock and lane\n\t\t * configuration, and typically these values correspond to the\n\t\t * native resolution of the panel.\n\t\t *\/\n\t\tlimits.min_lane_count = limits.max_lane_count;\n\t\tlimits.min_clock = limits.max_clock;\n\t}<\/code><\/pre>\n\n\n\n<p>\uc774 \ubd80\ubd84\uc744,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        if (false &amp;&amp; intel_dp_is_edp(intel_dp)) {\n\t\t\/*\n\t\t * Use the maximum clock and number of lanes the eDP panel\n\t\t * advertizes being capable of. The panels are generally\n\t\t * designed to support only a single clock and lane\n\t\t * configuration, and typically these values correspond to the\n\t\t * native resolution of the panel.\n\t\t *\/\n\t\tlimits.min_lane_count = limits.max_lane_count;\n\t\tlimits.min_clock = limits.max_clock;\n\t}<\/code><\/pre>\n\n\n\n<p>\uc640 \uac19\uc774 \uc218\uc815\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\uc774\uc81c \ucee4\ub110\uc744 \ube4c\ub4dc\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ make -j8 deb-pkg<\/code><\/pre>\n\n\n\n<p>\uc2dc\uac04\uc774 \uaf64 \uac78\ub9b0 \ud6c4\uc5d0 \ube4c\ub4dc\uac00 \uc644\ub8cc\ub418\uba74 \uc0c1\uc704 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uba87\uac1c\uc758 deb \ud30c\uc77c\uc774 \uc0dd\uc131\ub429\ub2c8\ub2e4. \uc774\ub97c \uc124\uce58\ud574\uc8fc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ll *.deb\n-rw-r--r-- 1 byeongkyu byeongkyu  11204740 Jan 18 07:20 linux-headers-5.3.18+_5.3.18+-1_amd64.deb\n-rw-r--r-- 1 byeongkyu byeongkyu  59519512 Jan 18 07:21 linux-image-5.3.18+_5.3.18+-1_amd64.deb\n-rw-r--r-- 1 byeongkyu byeongkyu 841223388 Jan 18 07:26 linux-image-5.3.18+-dbg_5.3.18+-1_amd64.deb\n-rw-r--r-- 1 byeongkyu byeongkyu   1057176 Jan 18 07:20 linux-libc-dev_5.3.18+-1_amd64.deb\n<\/code><\/pre>\n\n\n\n<p>linux-libc-dev, linux-headers, linux-image \uc694 \uc138\uac1c\uc758 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud558\uace0 \uc644\ub8cc\ub41c \uc774\ud6c4 \uc7ac\ubd80\ud305\ud558\uba74 \uc801\uc6a9\ub428\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ubb3c\ub860 \ud654\uba74\uc758 \uae5c\ube61\uc784 \uc5ed\uc2dc \ud574\uacb0\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\uc7ac \uc791\uc5c5\uc6a9\uc73c\ub85c \ub378 XPS15 9570 \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ucc98\uc74c Ubuntu\ub97c \uc124\uce58\ud558\uc5ec \uc0ac\uc6a9\ud560 \ub54c\ub294 \ud070 \ubb38\uc81c\ub294 \uc5c6\uc5c8\ub294\ub370, \ucd5c\uadfc\ub4e4\uc5b4 Ubuntu \uc124\uce58\ub54c\ubd80\ud130 \uc0ac\uc6a9\uc911\uc5d0\ub3c4 \ud654\uba74\uc774 \uacc4\uc18d \uae5c\ube61\uc774\uac70\ub098 \ud53d\uc140\uc774 \uae68\uc9c0\ub294 \ub4f1\uc758 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uc600\uc2b5\ub2c8\ub2e4. \ub367: \uac80\uc0c9\ud574 \ubcf8 \uacb0\uacfc, i915 (\uc778\ud154 \uadf8\ub798\ud53d \ub4dc\ub77c\uc774\ubc84)\uc758 \ubb38\uc81c\ub85c, 4K \ubaa8\ub2c8\ud130\ub97c \uac00\uc9c4 \uc778\ud154 \ub7a9\ud0d1\uc5d0\uc11c \ub300\ubd80\ubd84 \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub85c \ubcf4\uc784. \ub9c8\uce58 \ud558\ub4dc\uc6e8\uc5b4 (\ub514\uc2a4\ud50c\ub808\uc774 \ubd80\ubd84)\uc758 \ubd88\ub7c9\uc778\ub4ef \ubcf4\uc600\uc9c0\ub9cc, \uc708\ub3c4\uc6b0\ub85c \ubd80\ud305\ud558\uac8c\ub418\uba74 \uc774\ub7f0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ahnbk.com\/?p=1020\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fix Screen Flickering of Dell Laptop on Ubuntu 18.04.3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[59],"tags":[43,246,247,203,248],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-gs","jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1020"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1020"}],"version-history":[{"count":4,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1020\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1020\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}