SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    SAMSON with hybrid graphics cards (Intel/Nvidia)

    Getting started
    2
    20
    9521
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DmitriyMarin
      DmitriyMarin last edited by DmitriyMarin

      Have you tried to install SAMSON with primusrun and then launching SAMSON with it?

      If there is a configuration file for optirun/primusrun which allows specifying which apps should use GPU you may try specifying GPU for SAMSON.

      Is it possible for you to try with nvidia-prime? It should provide better OpenGL support compared to optirun since optirun has an additional layer VirtualGL which might be causing this issue.

      Dmitriy,
      The SAMSON Team, https://s-c.io

      Ivan 1 Reply Last reply Reply Quote 0
      • Ivan
        Ivan @DmitriyMarin last edited by Ivan

        @dmitriymarin said in SAMSON with hybrid graphics cards (Intel/Nvidia):

        Have you tried to install SAMSON with primusrun and then launching SAMSON with it?

        I tried, and that did not help.

        If there is a configuration file for optirun/primusrun which allows specifying which apps should use GPU you may try specifying GPU for SAMSON.

        There is no such a file :( It is controlled by the prefix in the command line when I calling the app.

        Is it possible for you to try with nvidia-prime? It should provide better OpenGL support compared to optirun since optirun has an additional layer VirtualGL which might be causing this issue.

        I have no such a command nvidia-prime... If I understand correct, primusrun have no such an extra layer.

        DmitriyMarin 1 Reply Last reply Reply Quote 0
        • DmitriyMarin
          DmitriyMarin @Ivan last edited by DmitriyMarin

          @ivan said in SAMSON with hybrid graphics cards (Intel/Nvidia):

          I tried, and that did not help.

          Apparently, SAMSON might be having a problem properly detecting your GPU during the installation, even with primusrun.

          Nvidia PRIME does not go with Bumblebee/optirun/primusrun, it is an Nvidia technology and it also allows one to switch between CPU and Nvidia GPU without additional layers giving a direct OpenGL access, which is more preferable. It is done via GPU offloading. But it comes with a downside: for a switch between CPU and GPU to take an effect one needs to log out and log in back (OS needs to do some re-initializations).
          0_1551542253508_nvidia-prime.png
          You can check whether you have Nvidia PRIME or not in the Nvidia X Server Settings. Nvidia PRIME is either installed together with an nvidia proprietary driver or you can install it via (after installing nvidia proprietary drivers):

          sudo apt install nvidia-prime 
          

          Note: To use Nvidia PRIME you might need to remove Bumblebee/optirun/primusrun.

          Note: In case, if you are using Nvidia PRIME, SAMSON should be installed with an active Nvidia GPU and to use SAMSON it would be necessary to enable to Nvidia GPU.

          Personally, on my laptop with Ubuntu 16.04 and equipped with Nvidia GeForce GTX 670MX I have the nvidia-384 driver installed with Nvidia PRIME. I had Bumblebee installed many years ago, but I could not make it work with CUDA.
          0_1551542531017_samson-about-gpu.png

          Dmitriy,
          The SAMSON Team, https://s-c.io

          1 Reply Last reply Reply Quote 0
          • Ivan
            Ivan last edited by

            I installed Linux Mint 19.1 and installed nvidia-driver-390. Now interface has no such troubles. Thank you for advices.

            DmitriyMarin 1 Reply Last reply Reply Quote 1
            • Ivan
              Ivan last edited by

              Should interface eat so much 96% CPU from one of cores ?

              DmitriyMarin 1 Reply Last reply Reply Quote 0
              • DmitriyMarin
                DmitriyMarin @Ivan last edited by

                @Ivan
                Great! I am glad that you solved the issue! Apparently, it was a problem with drivers. Do you use primusrun/optirun or just nvidia GPU directly?

                Dmitriy,
                The SAMSON Team, https://s-c.io

                Ivan 1 Reply Last reply Reply Quote 0
                • DmitriyMarin
                  DmitriyMarin @Ivan last edited by

                  @ivan
                  Yes, sorry, it can consume quite a lot sometimes. For me, for example, just the interface consumes sometimes 30-50% of one CPU core. To decrease the CPU consumption, you can hide the Document view (Ctrl/Cmd+1) or the Inspector (Ctrl/Cmd+I) when you do not need them. There is an issue with them which causes such consumption. It will be fixed in the next version of SAMSON.

                  Dmitriy,
                  The SAMSON Team, https://s-c.io

                  Ivan 1 Reply Last reply Reply Quote 0
                  • Ivan
                    Ivan @DmitriyMarin last edited by

                    @dmitriymarin Now I am using Nvidia PRIME like you showed in screenshot above. I do not think, that it is driver issue, but it is how you utilize them. I am also developing some software with OpenGL, however by using lower version API (1.2). So it works both Intel and Nvidia cards. I think, that advanced functions like in OpenGL 3.2 should be used using procedure addresses like it is doing with SDL_GL_GetProcAddress.

                    1 Reply Last reply Reply Quote 0
                    • Ivan
                      Ivan @DmitriyMarin last edited by Ivan

                      @dmitriymarin said in SAMSON with hybrid graphics cards (Intel/Nvidia):

                      @ivan
                      Yes, sorry, it can consume quite a lot sometimes. For me, for example, just the interface consumes sometimes 30-50% of one CPU core. To decrease the CPU consumption, you can hide the Document view (Ctrl/Cmd+1) or the Inspector (Ctrl/Cmd+I) when you do not need them. There is an issue with them which causes such consumption. It will be fixed in the next version of SAMSON.

                      Will wait :) SAMSON has very cute interface, however such cost of one core for that it is not acceptable!

                      1 Reply Last reply Reply Quote 0
                      • DmitriyMarin
                        DmitriyMarin last edited by

                        Dear @Ivan ,
                        Thanks to issues raised on the forum, we have fixed the issue in SAMSON causing problems with the viewport when using Intel integrated graphics processor. This issue might have been causing the problem you have posted in this thread. The new installation of SAMSON should resolve the issue.

                        Dmitriy,
                        The SAMSON Team, https://s-c.io

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post