Ubuntu 16.04 Could not apply the stored configuration for monitors












0















Good afternoon,



system is Ubuntu 16.04 on a Lenovo Thinkpad X220 in a docking station, which outputs sound via DP and video via VGA cable.



Since sometimes VGA output or DP (in xrandr HDMI-2) sound is not connected there is a startup-script:



if xrandr | grep -i "VGA-1 connected"; then 
xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
xrandr --addmode VGA-1 "720p"
xrandr --output VGA-1 --mode "720p"
xrandr --output VGA-1 --primary
if xrandr | grep -i "HDMI-2 connected"; then
xrandr --addmode HDMI-2 "720p"
xrandr --output LVDS-1 --off
xrandr --output HDMI-2 --mode "720p"
xrandr --output HDMI-2 --same-as VGA-1
fi
elif xrandr | grep -i "HDMI-2 connected"; then
xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
xrandr --addmode HDMI-2 "720p"
xrandr --output LVDS-1 --mode "1280x720"
xrandr --output HDMI-2 --mode "720p" --same-as LVDS-1
else
echo "kein Beamer an"
fi


works fine :), but still having the error message "Could not apply the stored configuration for monitors" each startup.



Some advise was checking monitors.xml



cat $HOME/.config/monitors.xml


but it looks perfect:



<monitors version="1">
<configuration>
<clone>yes</clone>
<output name="LVDS-1">
<vendor>LGD</vendor>
<product>0x02d8</product>
<serial>0x00000000</serial>
</output>
<output name="VGA-1">
<vendor>???</vendor>
<product>0x0000</product>
<serial>0x00000000</serial>
<width>1280</width>
<height>720</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="HDMI-1">
</output>
<output name="DP-1">
</output>
<output name="HDMI-2">
<vendor>MEI</vendor>
<product>0xd043</product>
<serial>0x15121053</serial>
<width>1280</width>
<height>720</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
<output name="HDMI-3">
</output>
<output name="DP-2">
</output>
<output name="DP-3">
</output>
</configuration>
</monitors>


So now I am posting...



Thanks in advance, best regards, Joachim










share|improve this question





























    0















    Good afternoon,



    system is Ubuntu 16.04 on a Lenovo Thinkpad X220 in a docking station, which outputs sound via DP and video via VGA cable.



    Since sometimes VGA output or DP (in xrandr HDMI-2) sound is not connected there is a startup-script:



    if xrandr | grep -i "VGA-1 connected"; then 
    xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
    xrandr --addmode VGA-1 "720p"
    xrandr --output VGA-1 --mode "720p"
    xrandr --output VGA-1 --primary
    if xrandr | grep -i "HDMI-2 connected"; then
    xrandr --addmode HDMI-2 "720p"
    xrandr --output LVDS-1 --off
    xrandr --output HDMI-2 --mode "720p"
    xrandr --output HDMI-2 --same-as VGA-1
    fi
    elif xrandr | grep -i "HDMI-2 connected"; then
    xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
    xrandr --addmode HDMI-2 "720p"
    xrandr --output LVDS-1 --mode "1280x720"
    xrandr --output HDMI-2 --mode "720p" --same-as LVDS-1
    else
    echo "kein Beamer an"
    fi


    works fine :), but still having the error message "Could not apply the stored configuration for monitors" each startup.



    Some advise was checking monitors.xml



    cat $HOME/.config/monitors.xml


    but it looks perfect:



    <monitors version="1">
    <configuration>
    <clone>yes</clone>
    <output name="LVDS-1">
    <vendor>LGD</vendor>
    <product>0x02d8</product>
    <serial>0x00000000</serial>
    </output>
    <output name="VGA-1">
    <vendor>???</vendor>
    <product>0x0000</product>
    <serial>0x00000000</serial>
    <width>1280</width>
    <height>720</height>
    <rate>60</rate>
    <x>0</x>
    <y>0</y>
    <rotation>normal</rotation>
    <reflect_x>no</reflect_x>
    <reflect_y>no</reflect_y>
    <primary>no</primary>
    </output>
    <output name="HDMI-1">
    </output>
    <output name="DP-1">
    </output>
    <output name="HDMI-2">
    <vendor>MEI</vendor>
    <product>0xd043</product>
    <serial>0x15121053</serial>
    <width>1280</width>
    <height>720</height>
    <rate>60</rate>
    <x>0</x>
    <y>0</y>
    <rotation>normal</rotation>
    <reflect_x>no</reflect_x>
    <reflect_y>no</reflect_y>
    <primary>yes</primary>
    </output>
    <output name="HDMI-3">
    </output>
    <output name="DP-2">
    </output>
    <output name="DP-3">
    </output>
    </configuration>
    </monitors>


    So now I am posting...



    Thanks in advance, best regards, Joachim










    share|improve this question



























      0












      0








      0








      Good afternoon,



      system is Ubuntu 16.04 on a Lenovo Thinkpad X220 in a docking station, which outputs sound via DP and video via VGA cable.



      Since sometimes VGA output or DP (in xrandr HDMI-2) sound is not connected there is a startup-script:



      if xrandr | grep -i "VGA-1 connected"; then 
      xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
      xrandr --addmode VGA-1 "720p"
      xrandr --output VGA-1 --mode "720p"
      xrandr --output VGA-1 --primary
      if xrandr | grep -i "HDMI-2 connected"; then
      xrandr --addmode HDMI-2 "720p"
      xrandr --output LVDS-1 --off
      xrandr --output HDMI-2 --mode "720p"
      xrandr --output HDMI-2 --same-as VGA-1
      fi
      elif xrandr | grep -i "HDMI-2 connected"; then
      xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
      xrandr --addmode HDMI-2 "720p"
      xrandr --output LVDS-1 --mode "1280x720"
      xrandr --output HDMI-2 --mode "720p" --same-as LVDS-1
      else
      echo "kein Beamer an"
      fi


      works fine :), but still having the error message "Could not apply the stored configuration for monitors" each startup.



      Some advise was checking monitors.xml



      cat $HOME/.config/monitors.xml


      but it looks perfect:



      <monitors version="1">
      <configuration>
      <clone>yes</clone>
      <output name="LVDS-1">
      <vendor>LGD</vendor>
      <product>0x02d8</product>
      <serial>0x00000000</serial>
      </output>
      <output name="VGA-1">
      <vendor>???</vendor>
      <product>0x0000</product>
      <serial>0x00000000</serial>
      <width>1280</width>
      <height>720</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
      </output>
      <output name="HDMI-1">
      </output>
      <output name="DP-1">
      </output>
      <output name="HDMI-2">
      <vendor>MEI</vendor>
      <product>0xd043</product>
      <serial>0x15121053</serial>
      <width>1280</width>
      <height>720</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      </output>
      <output name="HDMI-3">
      </output>
      <output name="DP-2">
      </output>
      <output name="DP-3">
      </output>
      </configuration>
      </monitors>


      So now I am posting...



      Thanks in advance, best regards, Joachim










      share|improve this question
















      Good afternoon,



      system is Ubuntu 16.04 on a Lenovo Thinkpad X220 in a docking station, which outputs sound via DP and video via VGA cable.



      Since sometimes VGA output or DP (in xrandr HDMI-2) sound is not connected there is a startup-script:



      if xrandr | grep -i "VGA-1 connected"; then 
      xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
      xrandr --addmode VGA-1 "720p"
      xrandr --output VGA-1 --mode "720p"
      xrandr --output VGA-1 --primary
      if xrandr | grep -i "HDMI-2 connected"; then
      xrandr --addmode HDMI-2 "720p"
      xrandr --output LVDS-1 --off
      xrandr --output HDMI-2 --mode "720p"
      xrandr --output HDMI-2 --same-as VGA-1
      fi
      elif xrandr | grep -i "HDMI-2 connected"; then
      xrandr --newmode "720p" 74.48 1280 1336 1472 1664 720 721 724 746 -HSync +Vsync
      xrandr --addmode HDMI-2 "720p"
      xrandr --output LVDS-1 --mode "1280x720"
      xrandr --output HDMI-2 --mode "720p" --same-as LVDS-1
      else
      echo "kein Beamer an"
      fi


      works fine :), but still having the error message "Could not apply the stored configuration for monitors" each startup.



      Some advise was checking monitors.xml



      cat $HOME/.config/monitors.xml


      but it looks perfect:



      <monitors version="1">
      <configuration>
      <clone>yes</clone>
      <output name="LVDS-1">
      <vendor>LGD</vendor>
      <product>0x02d8</product>
      <serial>0x00000000</serial>
      </output>
      <output name="VGA-1">
      <vendor>???</vendor>
      <product>0x0000</product>
      <serial>0x00000000</serial>
      <width>1280</width>
      <height>720</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
      </output>
      <output name="HDMI-1">
      </output>
      <output name="DP-1">
      </output>
      <output name="HDMI-2">
      <vendor>MEI</vendor>
      <product>0xd043</product>
      <serial>0x15121053</serial>
      <width>1280</width>
      <height>720</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      </output>
      <output name="HDMI-3">
      </output>
      <output name="DP-2">
      </output>
      <output name="DP-3">
      </output>
      </configuration>
      </monitors>


      So now I am posting...



      Thanks in advance, best regards, Joachim







      hdmi display-resolution xrandr






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 29 at 22:49







      josewe

















      asked Jan 29 at 22:26









      josewejosewe

      614




      614






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f1113948%2fubuntu-16-04-could-not-apply-the-stored-configuration-for-monitors%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113948%2fubuntu-16-04-could-not-apply-the-stored-configuration-for-monitors%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mouse cursor on multiple screens with different PPI

          Agildo Ribeiro

          Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”