Steps to add a new resolution 1366x768 @ 60 (Troubleshooting)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












I've just installed Ubuntu MATE 18.04 on a laptop and have a dual monitor setup, both displays worked out of the box and the native display even went off on boot. I now need to use 1366x768 resolution on one of the displays but it is not an option. I've added a resolution but the resulting resolution is not correct I accidentally added 1368x768



Trying again gives error:



cvt 1366 768 60
sudo xrandr --newmode "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 31
Current serial number in output stream: 31






share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    I've just installed Ubuntu MATE 18.04 on a laptop and have a dual monitor setup, both displays worked out of the box and the native display even went off on boot. I now need to use 1366x768 resolution on one of the displays but it is not an option. I've added a resolution but the resulting resolution is not correct I accidentally added 1368x768



    Trying again gives error:



    cvt 1366 768 60
    sudo xrandr --newmode "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
    X Error of failed request: BadName (named color or font does not exist)
    Major opcode of failed request: 140 (RANDR)
    Minor opcode of failed request: 16 (RRCreateMode)
    Serial number of failed request: 31
    Current serial number in output stream: 31






    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I've just installed Ubuntu MATE 18.04 on a laptop and have a dual monitor setup, both displays worked out of the box and the native display even went off on boot. I now need to use 1366x768 resolution on one of the displays but it is not an option. I've added a resolution but the resulting resolution is not correct I accidentally added 1368x768



      Trying again gives error:



      cvt 1366 768 60
      sudo xrandr --newmode "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
      X Error of failed request: BadName (named color or font does not exist)
      Major opcode of failed request: 140 (RANDR)
      Minor opcode of failed request: 16 (RRCreateMode)
      Serial number of failed request: 31
      Current serial number in output stream: 31






      share|improve this question














      I've just installed Ubuntu MATE 18.04 on a laptop and have a dual monitor setup, both displays worked out of the box and the native display even went off on boot. I now need to use 1366x768 resolution on one of the displays but it is not an option. I've added a resolution but the resulting resolution is not correct I accidentally added 1368x768



      Trying again gives error:



      cvt 1366 768 60
      sudo xrandr --newmode "1366x768_60.00" 85.25 1366 1440 1576 1784 768 771 781 798 -hsync +vsync
      X Error of failed request: BadName (named color or font does not exist)
      Major opcode of failed request: 140 (RANDR)
      Minor opcode of failed request: 16 (RRCreateMode)
      Serial number of failed request: 31
      Current serial number in output stream: 31








      share|improve this question













      share|improve this question




      share|improve this question








      edited May 3 at 15:56









      αғsнιη

      23.2k2191152




      23.2k2191152










      asked Apr 27 at 17:04









      userDepth

      86411035




      86411035




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted
          +50










          To add a new mode to an output requires several commands in sequence, like so:



          # create and name a new mode: "1366x768-0"
          xrandr --newmode "1366x768-0" 75.61 1366 1406 1438 1574 768 771 777 800 -hsync -vsync

          # attach the new mode to an output (VGA1)
          xrandr --addmode VGA1 "1366x768-0"

          # turn on the output using the new mode
          xrandr --output VGA1 --mode "1366x768-0"


          The reason for the error messages in the question is mode parameters cannot be changed. Use a new name (such as "1366x768-1") or remove the added mode. The sequence of commands to remove a mode follow:



          # turn off the output
          xrandr --output VGA1 --off

          # detach the mode from the output
          xrandr --delmode VGA1 "1366x768-0"

          # remove the mode
          xrandr --rmmode "1366x768-0"


          Changes to xrandr don't survive reboot. To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications. Then it will be run every time you log in. You might like to add it at boot up, rather than login.






          share|improve this answer






















          • Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
            – Fabby
            May 9 at 18:23










          • How would I add to the script to also turn off my other display plugged with HDMI?
            – userDepth
            May 14 at 13:46










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028868%2fsteps-to-add-a-new-resolution-1366x768-60-troubleshooting%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted
          +50










          To add a new mode to an output requires several commands in sequence, like so:



          # create and name a new mode: "1366x768-0"
          xrandr --newmode "1366x768-0" 75.61 1366 1406 1438 1574 768 771 777 800 -hsync -vsync

          # attach the new mode to an output (VGA1)
          xrandr --addmode VGA1 "1366x768-0"

          # turn on the output using the new mode
          xrandr --output VGA1 --mode "1366x768-0"


          The reason for the error messages in the question is mode parameters cannot be changed. Use a new name (such as "1366x768-1") or remove the added mode. The sequence of commands to remove a mode follow:



          # turn off the output
          xrandr --output VGA1 --off

          # detach the mode from the output
          xrandr --delmode VGA1 "1366x768-0"

          # remove the mode
          xrandr --rmmode "1366x768-0"


          Changes to xrandr don't survive reboot. To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications. Then it will be run every time you log in. You might like to add it at boot up, rather than login.






          share|improve this answer






















          • Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
            – Fabby
            May 9 at 18:23










          • How would I add to the script to also turn off my other display plugged with HDMI?
            – userDepth
            May 14 at 13:46














          up vote
          2
          down vote



          accepted
          +50










          To add a new mode to an output requires several commands in sequence, like so:



          # create and name a new mode: "1366x768-0"
          xrandr --newmode "1366x768-0" 75.61 1366 1406 1438 1574 768 771 777 800 -hsync -vsync

          # attach the new mode to an output (VGA1)
          xrandr --addmode VGA1 "1366x768-0"

          # turn on the output using the new mode
          xrandr --output VGA1 --mode "1366x768-0"


          The reason for the error messages in the question is mode parameters cannot be changed. Use a new name (such as "1366x768-1") or remove the added mode. The sequence of commands to remove a mode follow:



          # turn off the output
          xrandr --output VGA1 --off

          # detach the mode from the output
          xrandr --delmode VGA1 "1366x768-0"

          # remove the mode
          xrandr --rmmode "1366x768-0"


          Changes to xrandr don't survive reboot. To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications. Then it will be run every time you log in. You might like to add it at boot up, rather than login.






          share|improve this answer






















          • Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
            – Fabby
            May 9 at 18:23










          • How would I add to the script to also turn off my other display plugged with HDMI?
            – userDepth
            May 14 at 13:46












          up vote
          2
          down vote



          accepted
          +50







          up vote
          2
          down vote



          accepted
          +50




          +50




          To add a new mode to an output requires several commands in sequence, like so:



          # create and name a new mode: "1366x768-0"
          xrandr --newmode "1366x768-0" 75.61 1366 1406 1438 1574 768 771 777 800 -hsync -vsync

          # attach the new mode to an output (VGA1)
          xrandr --addmode VGA1 "1366x768-0"

          # turn on the output using the new mode
          xrandr --output VGA1 --mode "1366x768-0"


          The reason for the error messages in the question is mode parameters cannot be changed. Use a new name (such as "1366x768-1") or remove the added mode. The sequence of commands to remove a mode follow:



          # turn off the output
          xrandr --output VGA1 --off

          # detach the mode from the output
          xrandr --delmode VGA1 "1366x768-0"

          # remove the mode
          xrandr --rmmode "1366x768-0"


          Changes to xrandr don't survive reboot. To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications. Then it will be run every time you log in. You might like to add it at boot up, rather than login.






          share|improve this answer














          To add a new mode to an output requires several commands in sequence, like so:



          # create and name a new mode: "1366x768-0"
          xrandr --newmode "1366x768-0" 75.61 1366 1406 1438 1574 768 771 777 800 -hsync -vsync

          # attach the new mode to an output (VGA1)
          xrandr --addmode VGA1 "1366x768-0"

          # turn on the output using the new mode
          xrandr --output VGA1 --mode "1366x768-0"


          The reason for the error messages in the question is mode parameters cannot be changed. Use a new name (such as "1366x768-1") or remove the added mode. The sequence of commands to remove a mode follow:



          # turn off the output
          xrandr --output VGA1 --off

          # detach the mode from the output
          xrandr --delmode VGA1 "1366x768-0"

          # remove the mode
          xrandr --rmmode "1366x768-0"


          Changes to xrandr don't survive reboot. To make settings persist, ubstitute parameters as appropriate for your setup and save into a script in /usr/local/bin and add it to Startup Applications. Then it will be run every time you log in. You might like to add it at boot up, rather than login.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 14 at 14:43

























          answered May 4 at 7:04









          xiota

          1,0561422




          1,0561422











          • Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
            – Fabby
            May 9 at 18:23










          • How would I add to the script to also turn off my other display plugged with HDMI?
            – userDepth
            May 14 at 13:46
















          • Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
            – Fabby
            May 9 at 18:23










          • How would I add to the script to also turn off my other display plugged with HDMI?
            – userDepth
            May 14 at 13:46















          Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
          – Fabby
          May 9 at 18:23




          Upvoted yesterday, edited today as you forgot to add how to do it automatically. ;-)
          – Fabby
          May 9 at 18:23












          How would I add to the script to also turn off my other display plugged with HDMI?
          – userDepth
          May 14 at 13:46




          How would I add to the script to also turn off my other display plugged with HDMI?
          – userDepth
          May 14 at 13:46

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028868%2fsteps-to-add-a-new-resolution-1366x768-60-troubleshooting%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491