Using NVidia GPU on Clevo N871EJ1 laptop

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












0















I have a Clevo N871EJ1 (Schenker Media 17) laptop here which gives me quite a headache. I tried to install Ubuntu 18.10, Debian Stretch and Debian Buster (Testing) and all locked up during installation or after installation with "CPU stuck" kernel messages. Was easily reproducible by calling lspci on command line which immediately locked up the machine. I was able to solve this by specifying the pci=noacpi kernel parameter and everything works fine now EXCEPT the NVidia GPU and that's what my question here is about (Just mentioned the initial locking problems in case it is related).



The laptop has two GPUs:



$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)


The firmware of the machine (UEFI only, no legacy mode) has pretty much no configuration options so no way to select a dedicated GPU. So I guess this dreaded NVidia Optimus stuff is in use here.



The Intel GPU works without problems with video acceleration and 3D acceleration so that's fine. But it would be a shame not using this GTX 1050 in there.



So I installed bumblebee and the proprietary nvidia drivers (Debian package nvidia-driver version 390.87-6, Kernel 4.19.12-1), made sure the nouveau driver is properly blacklisted, buuuut it doesn't work:



$ optirun glxinfo
[29571.477699] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[29571.477772] [ERROR]Aborting because fallback start is disabled.


In the kernel log I see this:



[29571.206327] nvidia: module license 'NVIDIA' taints kernel.
[29571.206329] Disabling lock debugging due to kernel taint
[29571.224868] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[29571.225080] nvidia 0000:01:00.0: can't find IRQ for PCI INT A; please try using pci=biosirq
[29571.225082] NVRM: Can't find an IRQ for your NVIDIA card!
[29571.225083] NVRM: Please check your BIOS settings.
[29571.225083] NVRM: [Plug & Play OS] should be set to NO
[29571.225083] NVRM: [Assign IRQ to VGA] should be set to YES
[29571.225085] nvidia: probe of 0000:01:00.0 failed with error -1
[29571.225095] NVRM: The NVIDIA probe routine failed for 1 device(s).
[29571.225095] NVRM: None of the NVIDIA graphics adapters were initialized!
[29571.266406] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240


When I follow the tips in the output and set pci=biosirq then the machine locks up again during boot. There is also no option for "Plug & Play OS" or "Assign IRQ to VGA" in the firmware (UEFI only, no legacy mode).



So what else can I try to get the NVidia GPU working?










share|improve this question
























  • pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

    – Michael Prokopec
    Jan 16 at 16:44












  • The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

    – kayahr
    Jan 17 at 7:19















0















I have a Clevo N871EJ1 (Schenker Media 17) laptop here which gives me quite a headache. I tried to install Ubuntu 18.10, Debian Stretch and Debian Buster (Testing) and all locked up during installation or after installation with "CPU stuck" kernel messages. Was easily reproducible by calling lspci on command line which immediately locked up the machine. I was able to solve this by specifying the pci=noacpi kernel parameter and everything works fine now EXCEPT the NVidia GPU and that's what my question here is about (Just mentioned the initial locking problems in case it is related).



The laptop has two GPUs:



$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)


The firmware of the machine (UEFI only, no legacy mode) has pretty much no configuration options so no way to select a dedicated GPU. So I guess this dreaded NVidia Optimus stuff is in use here.



The Intel GPU works without problems with video acceleration and 3D acceleration so that's fine. But it would be a shame not using this GTX 1050 in there.



So I installed bumblebee and the proprietary nvidia drivers (Debian package nvidia-driver version 390.87-6, Kernel 4.19.12-1), made sure the nouveau driver is properly blacklisted, buuuut it doesn't work:



$ optirun glxinfo
[29571.477699] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[29571.477772] [ERROR]Aborting because fallback start is disabled.


In the kernel log I see this:



[29571.206327] nvidia: module license 'NVIDIA' taints kernel.
[29571.206329] Disabling lock debugging due to kernel taint
[29571.224868] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[29571.225080] nvidia 0000:01:00.0: can't find IRQ for PCI INT A; please try using pci=biosirq
[29571.225082] NVRM: Can't find an IRQ for your NVIDIA card!
[29571.225083] NVRM: Please check your BIOS settings.
[29571.225083] NVRM: [Plug & Play OS] should be set to NO
[29571.225083] NVRM: [Assign IRQ to VGA] should be set to YES
[29571.225085] nvidia: probe of 0000:01:00.0 failed with error -1
[29571.225095] NVRM: The NVIDIA probe routine failed for 1 device(s).
[29571.225095] NVRM: None of the NVIDIA graphics adapters were initialized!
[29571.266406] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240


When I follow the tips in the output and set pci=biosirq then the machine locks up again during boot. There is also no option for "Plug & Play OS" or "Assign IRQ to VGA" in the firmware (UEFI only, no legacy mode).



So what else can I try to get the NVidia GPU working?










share|improve this question
























  • pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

    – Michael Prokopec
    Jan 16 at 16:44












  • The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

    – kayahr
    Jan 17 at 7:19













0












0








0


1






I have a Clevo N871EJ1 (Schenker Media 17) laptop here which gives me quite a headache. I tried to install Ubuntu 18.10, Debian Stretch and Debian Buster (Testing) and all locked up during installation or after installation with "CPU stuck" kernel messages. Was easily reproducible by calling lspci on command line which immediately locked up the machine. I was able to solve this by specifying the pci=noacpi kernel parameter and everything works fine now EXCEPT the NVidia GPU and that's what my question here is about (Just mentioned the initial locking problems in case it is related).



The laptop has two GPUs:



$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)


The firmware of the machine (UEFI only, no legacy mode) has pretty much no configuration options so no way to select a dedicated GPU. So I guess this dreaded NVidia Optimus stuff is in use here.



The Intel GPU works without problems with video acceleration and 3D acceleration so that's fine. But it would be a shame not using this GTX 1050 in there.



So I installed bumblebee and the proprietary nvidia drivers (Debian package nvidia-driver version 390.87-6, Kernel 4.19.12-1), made sure the nouveau driver is properly blacklisted, buuuut it doesn't work:



$ optirun glxinfo
[29571.477699] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[29571.477772] [ERROR]Aborting because fallback start is disabled.


In the kernel log I see this:



[29571.206327] nvidia: module license 'NVIDIA' taints kernel.
[29571.206329] Disabling lock debugging due to kernel taint
[29571.224868] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[29571.225080] nvidia 0000:01:00.0: can't find IRQ for PCI INT A; please try using pci=biosirq
[29571.225082] NVRM: Can't find an IRQ for your NVIDIA card!
[29571.225083] NVRM: Please check your BIOS settings.
[29571.225083] NVRM: [Plug & Play OS] should be set to NO
[29571.225083] NVRM: [Assign IRQ to VGA] should be set to YES
[29571.225085] nvidia: probe of 0000:01:00.0 failed with error -1
[29571.225095] NVRM: The NVIDIA probe routine failed for 1 device(s).
[29571.225095] NVRM: None of the NVIDIA graphics adapters were initialized!
[29571.266406] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240


When I follow the tips in the output and set pci=biosirq then the machine locks up again during boot. There is also no option for "Plug & Play OS" or "Assign IRQ to VGA" in the firmware (UEFI only, no legacy mode).



So what else can I try to get the NVidia GPU working?










share|improve this question
















I have a Clevo N871EJ1 (Schenker Media 17) laptop here which gives me quite a headache. I tried to install Ubuntu 18.10, Debian Stretch and Debian Buster (Testing) and all locked up during installation or after installation with "CPU stuck" kernel messages. Was easily reproducible by calling lspci on command line which immediately locked up the machine. I was able to solve this by specifying the pci=noacpi kernel parameter and everything works fine now EXCEPT the NVidia GPU and that's what my question here is about (Just mentioned the initial locking problems in case it is related).



The laptop has two GPUs:



$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)


The firmware of the machine (UEFI only, no legacy mode) has pretty much no configuration options so no way to select a dedicated GPU. So I guess this dreaded NVidia Optimus stuff is in use here.



The Intel GPU works without problems with video acceleration and 3D acceleration so that's fine. But it would be a shame not using this GTX 1050 in there.



So I installed bumblebee and the proprietary nvidia drivers (Debian package nvidia-driver version 390.87-6, Kernel 4.19.12-1), made sure the nouveau driver is properly blacklisted, buuuut it doesn't work:



$ optirun glxinfo
[29571.477699] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[29571.477772] [ERROR]Aborting because fallback start is disabled.


In the kernel log I see this:



[29571.206327] nvidia: module license 'NVIDIA' taints kernel.
[29571.206329] Disabling lock debugging due to kernel taint
[29571.224868] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[29571.225080] nvidia 0000:01:00.0: can't find IRQ for PCI INT A; please try using pci=biosirq
[29571.225082] NVRM: Can't find an IRQ for your NVIDIA card!
[29571.225083] NVRM: Please check your BIOS settings.
[29571.225083] NVRM: [Plug & Play OS] should be set to NO
[29571.225083] NVRM: [Assign IRQ to VGA] should be set to YES
[29571.225085] nvidia: probe of 0000:01:00.0 failed with error -1
[29571.225095] NVRM: The NVIDIA probe routine failed for 1 device(s).
[29571.225095] NVRM: None of the NVIDIA graphics adapters were initialized!
[29571.266406] nvidia-nvlink: Unregistered the Nvlink Core, major device number 240


When I follow the tips in the output and set pci=biosirq then the machine locks up again during boot. There is also no option for "Plug & Play OS" or "Assign IRQ to VGA" in the firmware (UEFI only, no legacy mode).



So what else can I try to get the NVidia GPU working?







linux debian nvidia laptop optimus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 at 15:49







kayahr

















asked Jan 16 at 15:43









kayahrkayahr

1016




1016












  • pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

    – Michael Prokopec
    Jan 16 at 16:44












  • The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

    – kayahr
    Jan 17 at 7:19

















  • pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

    – Michael Prokopec
    Jan 16 at 16:44












  • The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

    – kayahr
    Jan 17 at 7:19
















pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

– Michael Prokopec
Jan 16 at 16:44






pci=biosirq expects the BIOS to assign IRQ. Have you tried it setting the IRQ in the BIOS for VGA? If not try it. If so what was the result?

– Michael Prokopec
Jan 16 at 16:44














The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

– kayahr
Jan 17 at 7:19





The BIOS (UEFI-only firmware) of the machine doesn't have any options except boot device order, toggling secure boot and toggling the network stack. No PCI settings, no GPU settings...

– kayahr
Jan 17 at 7:19










1 Answer
1






active

oldest

votes


















0














To answer my own question, I finally found the solution here:



  • https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-448327665

So the actual problem is that the X Server and lspci freezes the system when encountering an NVidia GPU which is powered off. I guess setting the kernel option pci=noacpi just accidentally worked around this problem by breaking access to the NVidia GPU completely (Driver can't be loaded).



The fix is to modify /etc/bumblebee/bumblebee.conf:



  • Set PMMethod to none

  • Set AlwaysUnloadKernelDriver to true

After this I was able to remove the pci=noacpi kernel option and the system boots up correctly, lspci no longer freezes and I'm able to use the NVidia GPU with optirun.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f494860%2fusing-nvidia-gpu-on-clevo-n871ej1-laptop%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    To answer my own question, I finally found the solution here:



    • https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-448327665

    So the actual problem is that the X Server and lspci freezes the system when encountering an NVidia GPU which is powered off. I guess setting the kernel option pci=noacpi just accidentally worked around this problem by breaking access to the NVidia GPU completely (Driver can't be loaded).



    The fix is to modify /etc/bumblebee/bumblebee.conf:



    • Set PMMethod to none

    • Set AlwaysUnloadKernelDriver to true

    After this I was able to remove the pci=noacpi kernel option and the system boots up correctly, lspci no longer freezes and I'm able to use the NVidia GPU with optirun.






    share|improve this answer



























      0














      To answer my own question, I finally found the solution here:



      • https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-448327665

      So the actual problem is that the X Server and lspci freezes the system when encountering an NVidia GPU which is powered off. I guess setting the kernel option pci=noacpi just accidentally worked around this problem by breaking access to the NVidia GPU completely (Driver can't be loaded).



      The fix is to modify /etc/bumblebee/bumblebee.conf:



      • Set PMMethod to none

      • Set AlwaysUnloadKernelDriver to true

      After this I was able to remove the pci=noacpi kernel option and the system boots up correctly, lspci no longer freezes and I'm able to use the NVidia GPU with optirun.






      share|improve this answer

























        0












        0








        0







        To answer my own question, I finally found the solution here:



        • https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-448327665

        So the actual problem is that the X Server and lspci freezes the system when encountering an NVidia GPU which is powered off. I guess setting the kernel option pci=noacpi just accidentally worked around this problem by breaking access to the NVidia GPU completely (Driver can't be loaded).



        The fix is to modify /etc/bumblebee/bumblebee.conf:



        • Set PMMethod to none

        • Set AlwaysUnloadKernelDriver to true

        After this I was able to remove the pci=noacpi kernel option and the system boots up correctly, lspci no longer freezes and I'm able to use the NVidia GPU with optirun.






        share|improve this answer













        To answer my own question, I finally found the solution here:



        • https://github.com/Bumblebee-Project/Bumblebee/issues/764#issuecomment-448327665

        So the actual problem is that the X Server and lspci freezes the system when encountering an NVidia GPU which is powered off. I guess setting the kernel option pci=noacpi just accidentally worked around this problem by breaking access to the NVidia GPU completely (Driver can't be loaded).



        The fix is to modify /etc/bumblebee/bumblebee.conf:



        • Set PMMethod to none

        • Set AlwaysUnloadKernelDriver to true

        After this I was able to remove the pci=noacpi kernel option and the system boots up correctly, lspci no longer freezes and I'm able to use the NVidia GPU with optirun.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 17 at 10:29









        kayahrkayahr

        1016




        1016



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f494860%2fusing-nvidia-gpu-on-clevo-n871ej1-laptop%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

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)