Why screen resolution remains 640x480 when I close a game?












5















I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640x480. It happened with Neighbours From Hell also, using Wine, and well... Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?










share|improve this question

























  • Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

    – Melebius
    Jan 8 at 13:05
















5















I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640x480. It happened with Neighbours From Hell also, using Wine, and well... Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?










share|improve this question

























  • Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

    – Melebius
    Jan 8 at 13:05














5












5








5


2






I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640x480. It happened with Neighbours From Hell also, using Wine, and well... Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?










share|improve this question
















I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640x480. It happened with Neighbours From Hell also, using Wine, and well... Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?







games






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 8 at 13:04









Melebius

4,57651839




4,57651839










asked Jan 6 '13 at 17:43









TibiTibi

35128




35128













  • Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

    – Melebius
    Jan 8 at 13:05



















  • Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

    – Melebius
    Jan 8 at 13:05

















Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

– Melebius
Jan 8 at 13:05





Please do not put (SOLVED) to the title. Accepting an answer is the correct way to mark a question solved here. Also your UPDATE did not add anything valuable to your question, so I reverted your recent edit.

– Melebius
Jan 8 at 13:05










2 Answers
2






active

oldest

votes


















3














Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use xrandr to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):



For a single monitor setup that would be simply something like:



xrandr --output DFP2 --mode "1680x1050"


For a multimonitor setup it would look like:



xrandr 
--output DFP2
--mode "800x600"
--panning "800x600+1280+0/0x0+0+0"
--output CRT1
--mode "1280x1024"
--panning "1280x1024+0+0/0x0+0+0"


Running xrandr without any option give you a list of supported modes and available displays.



Note there is also a bug in xrandr itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just run xrandr a second time.



Alternatively you can also set wine to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available in winecfg and then Graphics->Emulate a virtual desktop.






share|improve this answer































    0














    This happens to me sometimes when exiting a game. It seems random. I am not sure if it's a problem with Wine or the original game code (probably both).



    For me, the command to go back to my native resolution was:



    xrandr --output HDMI-0 --preferred





    share|improve this answer























      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%2f237018%2fwhy-screen-resolution-remains-640x480-when-i-close-a-game%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use xrandr to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):



      For a single monitor setup that would be simply something like:



      xrandr --output DFP2 --mode "1680x1050"


      For a multimonitor setup it would look like:



      xrandr 
      --output DFP2
      --mode "800x600"
      --panning "800x600+1280+0/0x0+0+0"
      --output CRT1
      --mode "1280x1024"
      --panning "1280x1024+0+0/0x0+0+0"


      Running xrandr without any option give you a list of supported modes and available displays.



      Note there is also a bug in xrandr itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just run xrandr a second time.



      Alternatively you can also set wine to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available in winecfg and then Graphics->Emulate a virtual desktop.






      share|improve this answer




























        3














        Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use xrandr to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):



        For a single monitor setup that would be simply something like:



        xrandr --output DFP2 --mode "1680x1050"


        For a multimonitor setup it would look like:



        xrandr 
        --output DFP2
        --mode "800x600"
        --panning "800x600+1280+0/0x0+0+0"
        --output CRT1
        --mode "1280x1024"
        --panning "1280x1024+0+0/0x0+0+0"


        Running xrandr without any option give you a list of supported modes and available displays.



        Note there is also a bug in xrandr itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just run xrandr a second time.



        Alternatively you can also set wine to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available in winecfg and then Graphics->Emulate a virtual desktop.






        share|improve this answer


























          3












          3








          3







          Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use xrandr to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):



          For a single monitor setup that would be simply something like:



          xrandr --output DFP2 --mode "1680x1050"


          For a multimonitor setup it would look like:



          xrandr 
          --output DFP2
          --mode "800x600"
          --panning "800x600+1280+0/0x0+0+0"
          --output CRT1
          --mode "1280x1024"
          --panning "1280x1024+0+0/0x0+0+0"


          Running xrandr without any option give you a list of supported modes and available displays.



          Note there is also a bug in xrandr itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just run xrandr a second time.



          Alternatively you can also set wine to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available in winecfg and then Graphics->Emulate a virtual desktop.






          share|improve this answer













          Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use xrandr to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):



          For a single monitor setup that would be simply something like:



          xrandr --output DFP2 --mode "1680x1050"


          For a multimonitor setup it would look like:



          xrandr 
          --output DFP2
          --mode "800x600"
          --panning "800x600+1280+0/0x0+0+0"
          --output CRT1
          --mode "1280x1024"
          --panning "1280x1024+0+0/0x0+0+0"


          Running xrandr without any option give you a list of supported modes and available displays.



          Note there is also a bug in xrandr itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just run xrandr a second time.



          Alternatively you can also set wine to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available in winecfg and then Graphics->Emulate a virtual desktop.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 7 '13 at 12:45









          GrumbelGrumbel

          2,73432540




          2,73432540

























              0














              This happens to me sometimes when exiting a game. It seems random. I am not sure if it's a problem with Wine or the original game code (probably both).



              For me, the command to go back to my native resolution was:



              xrandr --output HDMI-0 --preferred





              share|improve this answer




























                0














                This happens to me sometimes when exiting a game. It seems random. I am not sure if it's a problem with Wine or the original game code (probably both).



                For me, the command to go back to my native resolution was:



                xrandr --output HDMI-0 --preferred





                share|improve this answer


























                  0












                  0








                  0







                  This happens to me sometimes when exiting a game. It seems random. I am not sure if it's a problem with Wine or the original game code (probably both).



                  For me, the command to go back to my native resolution was:



                  xrandr --output HDMI-0 --preferred





                  share|improve this answer













                  This happens to me sometimes when exiting a game. It seems random. I am not sure if it's a problem with Wine or the original game code (probably both).



                  For me, the command to go back to my native resolution was:



                  xrandr --output HDMI-0 --preferred






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 6 at 15:22









                  rlhelinskirlhelinski

                  364




                  364






























                      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%2f237018%2fwhy-screen-resolution-remains-640x480-when-i-close-a-game%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕