Emacs does not redraw properly inside VirtualBox












5















I am running Emacs inside a virtual machine, and are experiencing redrawing problems when scrolling or adding/removing lines of text. It seems only a small portion of the window is being redrawn, causing some lines to be repeated and others to be obscured.



I have not experienced any similar problems with other applications inside the virtual machine.



The problem is present whether I run the virtual machine in fullscreen or windowed mode.



This is my setup:




  • Windows 7 Pro 64-bit host OS


    • nVidia GTX 770 graphics card with latest drivers

    • VirtualBox 4.3.6



  • Ubuntu 13.10 64-bit guest OS


    • VirtualBox Guest Additions installed

    • 3D acceleration enabled

    • Cinnamon 2.0.14 desktop environment

    • Emacs 24.3.1




My workaround for now is to run Emacs in terminal mode, but I would prefer a solution that makes it work properly in its own graphical window.










share|improve this question





























    5















    I am running Emacs inside a virtual machine, and are experiencing redrawing problems when scrolling or adding/removing lines of text. It seems only a small portion of the window is being redrawn, causing some lines to be repeated and others to be obscured.



    I have not experienced any similar problems with other applications inside the virtual machine.



    The problem is present whether I run the virtual machine in fullscreen or windowed mode.



    This is my setup:




    • Windows 7 Pro 64-bit host OS


      • nVidia GTX 770 graphics card with latest drivers

      • VirtualBox 4.3.6



    • Ubuntu 13.10 64-bit guest OS


      • VirtualBox Guest Additions installed

      • 3D acceleration enabled

      • Cinnamon 2.0.14 desktop environment

      • Emacs 24.3.1




    My workaround for now is to run Emacs in terminal mode, but I would prefer a solution that makes it work properly in its own graphical window.










    share|improve this question



























      5












      5








      5


      1






      I am running Emacs inside a virtual machine, and are experiencing redrawing problems when scrolling or adding/removing lines of text. It seems only a small portion of the window is being redrawn, causing some lines to be repeated and others to be obscured.



      I have not experienced any similar problems with other applications inside the virtual machine.



      The problem is present whether I run the virtual machine in fullscreen or windowed mode.



      This is my setup:




      • Windows 7 Pro 64-bit host OS


        • nVidia GTX 770 graphics card with latest drivers

        • VirtualBox 4.3.6



      • Ubuntu 13.10 64-bit guest OS


        • VirtualBox Guest Additions installed

        • 3D acceleration enabled

        • Cinnamon 2.0.14 desktop environment

        • Emacs 24.3.1




      My workaround for now is to run Emacs in terminal mode, but I would prefer a solution that makes it work properly in its own graphical window.










      share|improve this question
















      I am running Emacs inside a virtual machine, and are experiencing redrawing problems when scrolling or adding/removing lines of text. It seems only a small portion of the window is being redrawn, causing some lines to be repeated and others to be obscured.



      I have not experienced any similar problems with other applications inside the virtual machine.



      The problem is present whether I run the virtual machine in fullscreen or windowed mode.



      This is my setup:




      • Windows 7 Pro 64-bit host OS


        • nVidia GTX 770 graphics card with latest drivers

        • VirtualBox 4.3.6



      • Ubuntu 13.10 64-bit guest OS


        • VirtualBox Guest Additions installed

        • 3D acceleration enabled

        • Cinnamon 2.0.14 desktop environment

        • Emacs 24.3.1




      My workaround for now is to run Emacs in terminal mode, but I would prefer a solution that makes it work properly in its own graphical window.







      ubuntu virtualbox virtual-machine emacs cinnamon






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 16 '14 at 12:55







      Lars Haugseth

















      asked Jan 16 '14 at 11:27









      Lars HaugsethLars Haugseth

      232317




      232317






















          3 Answers
          3






          active

          oldest

          votes


















          3














          I have had the same problem and it seems that disabling 3D acceleration in VirtualBox properties solved the problem.






          share|improve this answer



















          • 1





            Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

            – Lars Haugseth
            Apr 28 '14 at 18:29











          • Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

            – Francois
            Jun 1 '17 at 8:53



















          1














          As a workaround in cases where Cinnamon is not a requirement, I have found that when using the GNOME Flashback desktop that ships with Ubuntu 13.10, I do not experience this problem, even with 3D acceleration enabled. The functionality and feel of GNOME Flashback is pretty similar to Cinnamon, at least for my use.






          share|improve this answer































            1














            I followed the tip provided by Lars to great success. I wanted to provide some detail to help other users with this issue.



            My setup:




            • Windows 10 Host

            • Ubuntu 16.04 LTS Guest

            • 3D acceleration is enabled in VirtualBox settings.

            • Emacs 26.1

            • Guest Additions installed.

            • VirtualBox 5.2.22 r126460


            Steps:




            • Replace Unity with Gnome Flash Back Metacity.


            Instructions on how to do that:



            https://www.debugpoint.com/2016/04/install-classic-gnome-flashback-in-ubuntu-16-04-replacing-unity/



            Performance is great. Emacs, using the same init.el, loads faster in VirtualBox than on Windows.






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              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%2fsuperuser.com%2fquestions%2f702494%2femacs-does-not-redraw-properly-inside-virtualbox%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              I have had the same problem and it seems that disabling 3D acceleration in VirtualBox properties solved the problem.






              share|improve this answer



















              • 1





                Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

                – Lars Haugseth
                Apr 28 '14 at 18:29











              • Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

                – Francois
                Jun 1 '17 at 8:53
















              3














              I have had the same problem and it seems that disabling 3D acceleration in VirtualBox properties solved the problem.






              share|improve this answer



















              • 1





                Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

                – Lars Haugseth
                Apr 28 '14 at 18:29











              • Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

                – Francois
                Jun 1 '17 at 8:53














              3












              3








              3







              I have had the same problem and it seems that disabling 3D acceleration in VirtualBox properties solved the problem.






              share|improve this answer













              I have had the same problem and it seems that disabling 3D acceleration in VirtualBox properties solved the problem.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 23 '14 at 13:34









              TieumTieum

              462




              462








              • 1





                Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

                – Lars Haugseth
                Apr 28 '14 at 18:29











              • Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

                – Francois
                Jun 1 '17 at 8:53














              • 1





                Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

                – Lars Haugseth
                Apr 28 '14 at 18:29











              • Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

                – Francois
                Jun 1 '17 at 8:53








              1




              1





              Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

              – Lars Haugseth
              Apr 28 '14 at 18:29





              Thank you for the answer. I have since gone over to using GNOME Flashback desktop on this VM, and don't experience that problem there, even with 3D acceleration enabled. I will add that as a separate answer, but mark yours as the accepted one.

              – Lars Haugseth
              Apr 28 '14 at 18:29













              Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

              – Francois
              Jun 1 '17 at 8:53





              Switching to gnome-flashback also solved my emacs performance problems in a vmware linux guest (fedora).

              – Francois
              Jun 1 '17 at 8:53













              1














              As a workaround in cases where Cinnamon is not a requirement, I have found that when using the GNOME Flashback desktop that ships with Ubuntu 13.10, I do not experience this problem, even with 3D acceleration enabled. The functionality and feel of GNOME Flashback is pretty similar to Cinnamon, at least for my use.






              share|improve this answer




























                1














                As a workaround in cases where Cinnamon is not a requirement, I have found that when using the GNOME Flashback desktop that ships with Ubuntu 13.10, I do not experience this problem, even with 3D acceleration enabled. The functionality and feel of GNOME Flashback is pretty similar to Cinnamon, at least for my use.






                share|improve this answer


























                  1












                  1








                  1







                  As a workaround in cases where Cinnamon is not a requirement, I have found that when using the GNOME Flashback desktop that ships with Ubuntu 13.10, I do not experience this problem, even with 3D acceleration enabled. The functionality and feel of GNOME Flashback is pretty similar to Cinnamon, at least for my use.






                  share|improve this answer













                  As a workaround in cases where Cinnamon is not a requirement, I have found that when using the GNOME Flashback desktop that ships with Ubuntu 13.10, I do not experience this problem, even with 3D acceleration enabled. The functionality and feel of GNOME Flashback is pretty similar to Cinnamon, at least for my use.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 28 '14 at 18:34









                  Lars HaugsethLars Haugseth

                  232317




                  232317























                      1














                      I followed the tip provided by Lars to great success. I wanted to provide some detail to help other users with this issue.



                      My setup:




                      • Windows 10 Host

                      • Ubuntu 16.04 LTS Guest

                      • 3D acceleration is enabled in VirtualBox settings.

                      • Emacs 26.1

                      • Guest Additions installed.

                      • VirtualBox 5.2.22 r126460


                      Steps:




                      • Replace Unity with Gnome Flash Back Metacity.


                      Instructions on how to do that:



                      https://www.debugpoint.com/2016/04/install-classic-gnome-flashback-in-ubuntu-16-04-replacing-unity/



                      Performance is great. Emacs, using the same init.el, loads faster in VirtualBox than on Windows.






                      share|improve this answer




























                        1














                        I followed the tip provided by Lars to great success. I wanted to provide some detail to help other users with this issue.



                        My setup:




                        • Windows 10 Host

                        • Ubuntu 16.04 LTS Guest

                        • 3D acceleration is enabled in VirtualBox settings.

                        • Emacs 26.1

                        • Guest Additions installed.

                        • VirtualBox 5.2.22 r126460


                        Steps:




                        • Replace Unity with Gnome Flash Back Metacity.


                        Instructions on how to do that:



                        https://www.debugpoint.com/2016/04/install-classic-gnome-flashback-in-ubuntu-16-04-replacing-unity/



                        Performance is great. Emacs, using the same init.el, loads faster in VirtualBox than on Windows.






                        share|improve this answer


























                          1












                          1








                          1







                          I followed the tip provided by Lars to great success. I wanted to provide some detail to help other users with this issue.



                          My setup:




                          • Windows 10 Host

                          • Ubuntu 16.04 LTS Guest

                          • 3D acceleration is enabled in VirtualBox settings.

                          • Emacs 26.1

                          • Guest Additions installed.

                          • VirtualBox 5.2.22 r126460


                          Steps:




                          • Replace Unity with Gnome Flash Back Metacity.


                          Instructions on how to do that:



                          https://www.debugpoint.com/2016/04/install-classic-gnome-flashback-in-ubuntu-16-04-replacing-unity/



                          Performance is great. Emacs, using the same init.el, loads faster in VirtualBox than on Windows.






                          share|improve this answer













                          I followed the tip provided by Lars to great success. I wanted to provide some detail to help other users with this issue.



                          My setup:




                          • Windows 10 Host

                          • Ubuntu 16.04 LTS Guest

                          • 3D acceleration is enabled in VirtualBox settings.

                          • Emacs 26.1

                          • Guest Additions installed.

                          • VirtualBox 5.2.22 r126460


                          Steps:




                          • Replace Unity with Gnome Flash Back Metacity.


                          Instructions on how to do that:



                          https://www.debugpoint.com/2016/04/install-classic-gnome-flashback-in-ubuntu-16-04-replacing-unity/



                          Performance is great. Emacs, using the same init.el, loads faster in VirtualBox than on Windows.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 22 '18 at 9:31









                          rorsachrorsach

                          112




                          112






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • 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%2fsuperuser.com%2fquestions%2f702494%2femacs-does-not-redraw-properly-inside-virtualbox%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

                              "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                              Alcedinidae

                              Origin of the phrase “under your belt”?