{"id":2258,"date":"2018-04-01T13:51:48","date_gmt":"2018-04-01T11:51:48","guid":{"rendered":"http:\/\/stephane.weblog.starend.org\/?p=2258"},"modified":"2018-05-09T21:50:35","modified_gmt":"2018-05-09T19:50:35","slug":"lg-31mu97-forcer-les-resolutions-decrans-mal-detectees","status":"publish","type":"post","link":"http:\/\/stephane.weblog.starend.org\/?p=2258","title":{"rendered":"LG 31MU97 &#8211; Forcer les r\u00e9solutions d&rsquo;\u00e9crans mal d\u00e9tect\u00e9es"},"content":{"rendered":"<p style=\"text-align: justify;\">Depuis que j&rsquo;ai re\u00e7u mon LG 31MU97 je me r\u00e9gale les yeux !<\/p>\n<p style=\"text-align: justify;\">Mais&#8230; c&rsquo;est aussi une source de frustration dans certains configurations, l&rsquo;\u00e9cran ne renvoie pas toujours correctement les r\u00e9solutions et fr\u00e9quences \u00e0 utiliser par l&rsquo;ordinateur.<\/p>\n<p style=\"text-align: justify;\">Cet \u00e9cran en particulier supporte :<\/p>\n<ul>\n<li style=\"text-align: justify;\">HDMI 1 et 2 : 3840&#215;2160 \u00e0 30Hz ou 4096&#215;2160 \u00e0 24Hz<\/li>\n<li style=\"text-align: justify;\">DisplayPort et miniDP : 4096&#215;2160 \u00e0 60Hz<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Ici on travaille sous Linux. Ces probl\u00e8mes sont r\u00e9solus diff\u00e9remment sous Windows&#8230; on installe le pilote de l&rsquo;\u00e9cran.<\/p>\n<h2 style=\"text-align: justify;\">Forcer \u00e0 la main pour un essai<\/h2>\n<p style=\"text-align: justify;\">La commande <code>xrandr<\/code> dans un terminal Linux permet tout de suite de savoir o\u00f9 on habite et les r\u00e9solutions support\u00e9es.<\/p>\n<p style=\"text-align: justify;\">Le calcul des bons param\u00e8tres se font sur <a title=\"modelines\" href=\"https:\/\/arachnoid.com\/modelines\/index.html\" target=\"_blank\">https:\/\/arachnoid.com\/modelines\/index.html<\/a><\/p>\n<p style=\"text-align: justify;\">On commence par d\u00e9clarer les r\u00e9solutions :<\/p>\n<pre>xrandr --newmode \"4096x2160_60\" 556.730 \\\r\n 4096 4104 4136 4176  2160 2208 2216 2222 \\\r\n +hsync +vsync\r\nxrandr --newmode \"3840x2160_30\" 339.57 \\\r\n 3840 4080 4496 5152  2160 2161 2164 2197 \\\r\n +hsync +vsync\r\nxrandr --newmode \"4096x2160_24\" 284.24 \\\r\n 4096 4320 4752 5408  2160 2161 2164 2190 \\\r\n +hsync +vsync<\/pre>\n<p style=\"text-align: justify;\">Puis on affecte une ou plusieurs r\u00e9solutions \u00e0 des sorties de la machine :<\/p>\n<pre>xrandr --addmode DP-1 4096x2160_60\r\nxrandr --addmode HDMI-2 3840x2160_30\r\nxrandr --addmode HDMI-2 4096x2160_24<\/pre>\n<p style=\"text-align: justify;\">Maintenant on peut les utiliser classiquement dans notre gestionnaire de fen\u00eatres, par exemple sous Gnome Shell :<\/p>\n<p style=\"text-align: justify;\"><a href=\"\/wp-content\/uploads\/stephane\/2018\/04\/Capture-d'\u00e9cran-de-2018-04-01-13-15-36.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2259\" src=\"\/wp-content\/uploads\/stephane\/2018\/04\/Capture-d'\u00e9cran-de-2018-04-01-13-15-36-450x315.png\" alt=\"capture-decran-de-2018-04-01-13-15-36\" width=\"450\" height=\"315\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">On notera que curieusement LG s&rsquo;appelle en interne Goldstar Company Ltd&#8230; Grosses chevilles&#8230;<\/p>\n<h2 style=\"text-align: justify;\">Figer dans la configuration<\/h2>\n<p style=\"text-align: justify;\">Cr\u00e9er le script <code>\/etc\/X11\/Xsession.d\/10xrandr<\/code> et le remplir avec :<\/p>\n<pre>#!\/bin\/bash\r\nxrandr --newmode \"4096x2160_60\" 556.730  4096 4104 4136 4176  2160 2208 2216 2222 +hsync +vsync\r\nxrandr --newmode \"3840x2160_30\" 284.24   4096 4320 4752 5408  2160 2161 2164 2190 +hsync +vsync\r\nxrandr --newmode \"4096x2160_24\" 284.24   4096 4320 4752 5408  2160 2161 2164 2190 +hsync +vsync\r\nxrandr --addmode DP-1 4096x2160_60\r\nxrandr --addmode HDMI-2 3840x2160_30\r\nxrandr --addmode HDMI-2 4096x2160_24\r\n<\/pre>\n<p style=\"text-align: justify;\">etc&#8230;<\/p>\n<p style=\"text-align: justify;\">CF : <a title=\"https:\/\/wiki.archlinux.org\/index.php\/xrandr\" href=\"https:\/\/wiki.archlinux.org\/index.php\/xrandr\" target=\"_blank\">https:\/\/wiki.archlinux.org\/index.php\/xrandr<\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"\/wp-content\/uploads\/stephane\/2018\/04\/Capture-d'\u00e9cran-de-2018-04-01-14-52-15.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2268\" src=\"\/wp-content\/uploads\/stephane\/2018\/04\/Capture-d'\u00e9cran-de-2018-04-01-14-52-15-450x237.png\" alt=\"capture-decran-de-2018-04-01-14-52-15\" width=\"450\" height=\"237\" \/><\/a>Edit 09\/05\/2018 : Dans certaines configurations, le <code>\"4096x2160_60\"<\/code> n&rsquo;est pas reconnu par <code>xrandr<\/code> et il faut utiliser \u00e0 la place une syntaxe sans underscore <code>\"4096x2160x60\"<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Depuis que j&rsquo;ai re\u00e7u mon LG 31MU97 je me r\u00e9gale les yeux ! Mais&#8230; c&rsquo;est aussi une source de frustration dans certains configurations, l&rsquo;\u00e9cran ne renvoie pas toujours correctement les r\u00e9solutions et fr\u00e9quences \u00e0 utiliser par l&rsquo;ordinateur. Cet \u00e9cran en particulier supporte : HDMI 1 et 2 : 3840&#215;2160 \u00e0 30Hz ou 4096&#215;2160 \u00e0 24Hz &hellip; <a href=\"http:\/\/stephane.weblog.starend.org\/?p=2258\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">LG 31MU97 &#8211; Forcer les r\u00e9solutions d&rsquo;\u00e9crans mal d\u00e9tect\u00e9es<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48,10,11,18],"tags":[433,432,431],"_links":{"self":[{"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/posts\/2258"}],"collection":[{"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2258"}],"version-history":[{"count":10,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/posts\/2258\/revisions"}],"predecessor-version":[{"id":2275,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=\/wp\/v2\/posts\/2258\/revisions\/2275"}],"wp:attachment":[{"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2258"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephane.weblog.starend.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}