{"id":388,"date":"2021-02-25T14:45:28","date_gmt":"2021-02-25T09:15:28","guid":{"rendered":"https:\/\/www.bhuvankrishna.in\/blog\/?p=388"},"modified":"2021-02-25T14:45:28","modified_gmt":"2021-02-25T09:15:28","slug":"xrandr-adding-custom-display-resolution","status":"publish","type":"post","link":"https:\/\/www.bhuvankrishna.in\/blog\/2021\/02\/25\/xrandr-adding-custom-display-resolution\/","title":{"rendered":"Xrandr adding custom display resolution"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code># First we need to get the modeline string for xrandr\n# Luckily, the tool \"gtf\" will help you calculate it.\n# All you have to do is to pass the resolution &amp; the-\n# refresh-rate as the command parameters:\ngtf 1920 1080 60\n\n# In this case, the horizontal resolution is 1920px the\n# vertical resolution is 1080px &amp; refresh-rate is 60Hz.\n# IMPORTANT: BE SURE THE MONITOR SUPPORTS THE RESOLUTION\n\n# Typically, it outputs a line starting with \"Modeline\"\n# e.g. \"1920x1080_60.00\"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync\n# Copy this entire string (except for the starting \"Modeline\")\n\n# Now, use \"xrandr\" to make the system recognize a new\n# display mode. Pass the copied string as the parameter\n# to the --newmode option:\nxrandr --newmode \"1920x1080_60.00\"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync\n\n# Well, the string within the quotes is the nick\/alias\n# of the display mode - you can as well pass something\n# as \"MyAwesomeHDResolution\". But, careful! :-|\n\n# Then all you have to do is to add the new mode to the\n# display you want to apply, like this:\nxrandr --addmode VGA1 \"1920x1080_60.00\"\n\n# VGA1 is the display name, it might differ for you.\n# Run \"xrandr\" without any parameters to be sure.\n# The last parameter is the mode-alias\/name which\n# you've set in the previous command (--newmode)\n\n# It should add the new mode to the display &amp; apply it.\n# Usually unlikely, but if it doesn't apply automatically\n# then force it with this command:\nxrandr --output VGA1 --mode \"1920x1080_60.00\"\n\nhttps:&#47;&#47;unix.stackexchange.com\/questions\/227876\/how-to-set-custom-resolution-using-xrandr-when-the-resolution-is-not-available-i<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":1,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/388\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}