How to unload kernel module 'nvidia-drm'?How do I know if my kernel supports module unloading?Lenovo Ideapad...

How do I minimise waste on a flight?

My parents are Afghan

Is there an idiom that means that a clothe fits perfectly?

Picking a theme as a discovery writer

Antivirus for Ubuntu 18.04

And now you see it

Game artist computer workstation set-up – is this overkill?

What is the meaning of "matter" in physics?

How to get the decimal part of a number in apex

Do the Zhentarim fire members for killing fellow members?

Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?

Why was Gemini VIII terminated after recovering from the OAMS thruster failure?

What does the copyright in a dissertation protect exactly?

shebang or not shebang

Why did Dr. Strange keep looking into the future after the snap?

Assuming a normal distribution: what is the sd for a given mean?

Crime rates in a post-scarcity economy

Is it safe to keep the GPU on 100% utilization for a very long time?

cd ` command meaning and how to exit it?

Justification of physical currency in an interstellar civilization?

While drilling into kitchen wall, hit a wire - any advice?

Scaling rounded rectangles in Illustrator

Where do 5 or more U.S. counties meet in a single point?

Searching for a sentence that I only know part of it using Google's operators



How to unload kernel module 'nvidia-drm'?


How do I know if my kernel supports module unloading?Lenovo Ideapad 330-15ICH overheats in Kubuntu 18.04 onlyCannot create “Hello World” module (and NVIDIA, and VirtualBox)Cannot start xserver - “Failed to assign any connected display devices to X screen 0”custom built kernel module problemsInstalling new NVIDIA driver failsCan't enable proprietary nVidia driver on debian 8 with bumblebeeDebian 9 issue installing nvidia drivers on asus zenbook ux501Broadcom wireless undetected in Fedora 27How do I know if my kernel supports module unloading?optirun-Cannot access secondary GPUold nvidia driver from apt install and new one from .run file






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







16















I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do



sudo sh ./NVIDIA-Linux-x86_64-390.48.run


as suggested, an error message appears.



ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel.  This may be because it is in use (for example, by an X server, a CUDA program, or 
the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs
that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading,
and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to
reboot your computer.


When I try to find out who is using nvidia-drm (or nvidia_drm), I see nothing.



~$ sudo lsof | grep nvidia-drm
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
~$ sudo lsof -e /run/user/1000/gvfs | grep nvidia-drm
~$


And when I try to remove it, it says it's being used.



~$ sudo modprobe -r nvidia-drm
modprobe: FATAL: Module nvidia_drm is in use.
~$


I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2 before giving username/password), but I got the same error.



Besides it, how do I "know that my kernel supports module unloading"?



I'm getting a few warnings on boot up related to nvidia, no idea if they're related, though:



Apr 30 00:46:15 debian-9 kernel: nvidia: loading out-of-tree module taints kernel.
Apr 30 00:46:15 debian-9 kernel: nvidia: module license 'NVIDIA' taints kernel.
Apr 30 00:46:15 debian-9 kernel: Disabling lock debugging due to kernel taint
Apr 30 00:46:15 debian-9 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts)









share|improve this question

























  • can you try to do it in rescue mode?

    – vfbsilva
    Apr 30 '18 at 5:35











  • See this issue on github : systemctl stop systemd-logind before unloading the modules.

    – GAD3R
    Apr 30 '18 at 12:02











  • @vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

    – Rodrigo
    Apr 30 '18 at 15:11











  • @GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

    – Rodrigo
    Apr 30 '18 at 15:13


















16















I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do



sudo sh ./NVIDIA-Linux-x86_64-390.48.run


as suggested, an error message appears.



ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel.  This may be because it is in use (for example, by an X server, a CUDA program, or 
the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs
that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading,
and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to
reboot your computer.


When I try to find out who is using nvidia-drm (or nvidia_drm), I see nothing.



~$ sudo lsof | grep nvidia-drm
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
~$ sudo lsof -e /run/user/1000/gvfs | grep nvidia-drm
~$


And when I try to remove it, it says it's being used.



~$ sudo modprobe -r nvidia-drm
modprobe: FATAL: Module nvidia_drm is in use.
~$


I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2 before giving username/password), but I got the same error.



Besides it, how do I "know that my kernel supports module unloading"?



I'm getting a few warnings on boot up related to nvidia, no idea if they're related, though:



Apr 30 00:46:15 debian-9 kernel: nvidia: loading out-of-tree module taints kernel.
Apr 30 00:46:15 debian-9 kernel: nvidia: module license 'NVIDIA' taints kernel.
Apr 30 00:46:15 debian-9 kernel: Disabling lock debugging due to kernel taint
Apr 30 00:46:15 debian-9 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts)









share|improve this question

























  • can you try to do it in rescue mode?

    – vfbsilva
    Apr 30 '18 at 5:35











  • See this issue on github : systemctl stop systemd-logind before unloading the modules.

    – GAD3R
    Apr 30 '18 at 12:02











  • @vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

    – Rodrigo
    Apr 30 '18 at 15:11











  • @GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

    – Rodrigo
    Apr 30 '18 at 15:13














16












16








16


8






I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do



sudo sh ./NVIDIA-Linux-x86_64-390.48.run


as suggested, an error message appears.



ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel.  This may be because it is in use (for example, by an X server, a CUDA program, or 
the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs
that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading,
and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to
reboot your computer.


When I try to find out who is using nvidia-drm (or nvidia_drm), I see nothing.



~$ sudo lsof | grep nvidia-drm
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
~$ sudo lsof -e /run/user/1000/gvfs | grep nvidia-drm
~$


And when I try to remove it, it says it's being used.



~$ sudo modprobe -r nvidia-drm
modprobe: FATAL: Module nvidia_drm is in use.
~$


I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2 before giving username/password), but I got the same error.



Besides it, how do I "know that my kernel supports module unloading"?



I'm getting a few warnings on boot up related to nvidia, no idea if they're related, though:



Apr 30 00:46:15 debian-9 kernel: nvidia: loading out-of-tree module taints kernel.
Apr 30 00:46:15 debian-9 kernel: nvidia: module license 'NVIDIA' taints kernel.
Apr 30 00:46:15 debian-9 kernel: Disabling lock debugging due to kernel taint
Apr 30 00:46:15 debian-9 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts)









share|improve this question
















I'm trying to install the most up-to-date NVIDIA driver in Debian Stretch. I've downloaded NVIDIA-Linux-x86_64-390.48.run from here, but when I try to do



sudo sh ./NVIDIA-Linux-x86_64-390.48.run


as suggested, an error message appears.



ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel.  This may be because it is in use (for example, by an X server, a CUDA program, or 
the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs
that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading,
and you still receive this message, then an error may have occured that has corrupted an NVIDIA kernel module's usage count, for which the simplest remedy is to
reboot your computer.


When I try to find out who is using nvidia-drm (or nvidia_drm), I see nothing.



~$ sudo lsof | grep nvidia-drm
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
~$ sudo lsof -e /run/user/1000/gvfs | grep nvidia-drm
~$


And when I try to remove it, it says it's being used.



~$ sudo modprobe -r nvidia-drm
modprobe: FATAL: Module nvidia_drm is in use.
~$


I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2 before giving username/password), but I got the same error.



Besides it, how do I "know that my kernel supports module unloading"?



I'm getting a few warnings on boot up related to nvidia, no idea if they're related, though:



Apr 30 00:46:15 debian-9 kernel: nvidia: loading out-of-tree module taints kernel.
Apr 30 00:46:15 debian-9 kernel: nvidia: module license 'NVIDIA' taints kernel.
Apr 30 00:46:15 debian-9 kernel: Disabling lock debugging due to kernel taint
Apr 30 00:46:15 debian-9 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 375.82 Wed Jul 19 21:16:49 PDT 2017 (using threaded interrupts)






debian kernel systemd nvidia kernel-modules






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 14 '18 at 17:43









filbranden

11k21849




11k21849










asked Apr 30 '18 at 4:07









RodrigoRodrigo

2772318




2772318













  • can you try to do it in rescue mode?

    – vfbsilva
    Apr 30 '18 at 5:35











  • See this issue on github : systemctl stop systemd-logind before unloading the modules.

    – GAD3R
    Apr 30 '18 at 12:02











  • @vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

    – Rodrigo
    Apr 30 '18 at 15:11











  • @GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

    – Rodrigo
    Apr 30 '18 at 15:13



















  • can you try to do it in rescue mode?

    – vfbsilva
    Apr 30 '18 at 5:35











  • See this issue on github : systemctl stop systemd-logind before unloading the modules.

    – GAD3R
    Apr 30 '18 at 12:02











  • @vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

    – Rodrigo
    Apr 30 '18 at 15:11











  • @GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

    – Rodrigo
    Apr 30 '18 at 15:13

















can you try to do it in rescue mode?

– vfbsilva
Apr 30 '18 at 5:35





can you try to do it in rescue mode?

– vfbsilva
Apr 30 '18 at 5:35













See this issue on github : systemctl stop systemd-logind before unloading the modules.

– GAD3R
Apr 30 '18 at 12:02





See this issue on github : systemctl stop systemd-logind before unloading the modules.

– GAD3R
Apr 30 '18 at 12:02













@vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

– Rodrigo
Apr 30 '18 at 15:11





@vfbsilva My rescue mode is strange, it's looping forever, identifying all USB devices again and again. I managed to press Enter, give the root password and get a prompt, but there's no /dev, so no mount of the disk is possible.

– Rodrigo
Apr 30 '18 at 15:11













@GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

– Rodrigo
Apr 30 '18 at 15:13





@GAD3R All I have is systemctl stop systemd-logind.service, but this closes the screen and takes me back to the graphic login, where I have to do Ctrl+Alt+F2 again.

– Rodrigo
Apr 30 '18 at 15:13










6 Answers
6






active

oldest

votes


















14





+50









I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers.



After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:



# systemctl isolate multi-user.target


At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r (or rmmod directly):



# modprobe -r nvidia-drm


Once you've managed to replace/upgrade it and you're ready to start the graphical environment again, you can use this command:



# systemctl start graphical.target





share|improve this answer


























  • I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:23






  • 4





    This worked for me without the modprobe step.

    – Don Kirkby
    Nov 7 '18 at 15:22






  • 1





    Yeah, I didn't need modprobe step neither.

    – David Jung
    Apr 22 at 4:59



















5














lsof lists any files that are in use by userspace processes. But nvidia_drm is a kernel module, so lsof won't necessarily see whether or not it is actually in use. (The module file won't be open because the kernel has already completely loaded it into RAM. But the module might be providing services to the userspace or other kernel components, and that is what prevents the unloading of the module.)



Run lsmod | grep nvidia.drm and see the numbers to the right of the nvidia_drm module name. The first number is simply the size of the module; the second is the use count. In order to successfully remove the module, the use count must be 0 first.



If the X11 server is running and using the nvidia driver, then the nvidia_drm kernel module will most assuredly be in use. So you'll need, at the very least, switch into text console and shutdown the X11 server. Usually this can be done by stopping whichever X Display Manager service you're using (depends on which desktop environment you're using).



As the error message said, if you are running nvidia-persistenced, you'll need to stop that too before you can unload the nvidia_drm module.






share|improve this answer
























  • After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

    – Rodrigo
    Apr 30 '18 at 15:50



















2














I had a similar problem.




*Reason: nvidia.drm package was in use






I fixed it by purging all NVIDIA packages.



Remove all previous NVIDIA installations with these 2 commands:




$ sudo apt-get purge nvidia*

$ sudo apt-get autoremove



Module should be removed.



Reboot and go forth.






share|improve this answer


























  • Thank you! This may come in handy if I need to format it again...

    – Rodrigo
    Sep 29 '18 at 3:13



















1














You report in comments that stopping the systemd-logind service takes you back to the graphic login. If you have a graphical login then X is running, so the video driver is loaded and in use. This very likely explains in part why the nvidia-drm module is in use.



Additionally, you betray an apparent misconception when you say




I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2
before giving username/password), but I got the same error.




Pressing Ctrl+Alt+F2 switches to a virtual terminal #2, which may well be configured for text-mode login, but that's a far cry from "starting in text mode". If you had a graphical login screen on the default virtual terminal then X is running, and switching to a different VT doesn't change that. You're just logging in to a non-X session.



The first and easiest thing to try is to actually shut down the X server. The old-school way to do this would be to log in to your text-mode session and execute the command



telinit 3


to switch to runlevel 3. That should work with systemd, too, but the native systemd way would be to instead run



systemctl isolate multi-user.target


Both of those require privilege, of course, so you'll need to use sudo or make yourself root.



If that doesn't remove the module, or at least make it possible for you to do so manually, then your next best bet would be to boot the system directly into runlevel 3 (multi-user target), or maybe even into runlevel 1 (rescue target). I usually do this by adding "3" (or "1") to the end of the kernel argument list at boot time via the bootloader. You can also change the default boot target as described in this article.



Do also note that the nVidia driver is available in pre-built packages for most Linux distros. Few include those packages in their own standard repos because the driver is, after all, proprietary, but you can surely find a reputable 3rd-party repo that has it. I strongly recommend using such packages instead of running the installer directly, but to get there from where you are now, you may need to first manually uninstall the driver.






share|improve this answer
























  • I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:22











  • @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

    – John Bollinger
    May 7 '18 at 20:59











  • Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

    – Rodrigo
    May 7 '18 at 21:09



















0














Had the same problem with Debian Stretch when trying to install the Nvidia drivers. When in text mod my only solution was to remove the driver, reinstall gdm and gnome-shell. I know it's a clumsy solution, but I remember I first tried fixing the gnome-shell and only removing Nvidia driver and reinstalling GDM. Turned out it was much easier to just reinstall the whole shell.






share|improve this answer
























  • Guess I'll wait for a less clumsy solution, if any shows up.

    – Rodrigo
    May 1 '18 at 14:51



















0














I also encountered the same problem. The reason for the error was that I accidentally selected "Install nvidia driver" during the installation of cuda.



So, during the installation of CUDA, when you encounter the following options:




Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
(y)es/(n)o/(q)uit:




Please select q , the problem will be solved.





share








New contributor



JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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%2f440840%2fhow-to-unload-kernel-module-nvidia-drm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    6 Answers
    6






    active

    oldest

    votes








    6 Answers
    6






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    14





    +50









    I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers.



    After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:



    # systemctl isolate multi-user.target


    At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r (or rmmod directly):



    # modprobe -r nvidia-drm


    Once you've managed to replace/upgrade it and you're ready to start the graphical environment again, you can use this command:



    # systemctl start graphical.target





    share|improve this answer


























    • I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:23






    • 4





      This worked for me without the modprobe step.

      – Don Kirkby
      Nov 7 '18 at 15:22






    • 1





      Yeah, I didn't need modprobe step neither.

      – David Jung
      Apr 22 at 4:59
















    14





    +50









    I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers.



    After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:



    # systemctl isolate multi-user.target


    At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r (or rmmod directly):



    # modprobe -r nvidia-drm


    Once you've managed to replace/upgrade it and you're ready to start the graphical environment again, you can use this command:



    # systemctl start graphical.target





    share|improve this answer


























    • I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:23






    • 4





      This worked for me without the modprobe step.

      – Don Kirkby
      Nov 7 '18 at 15:22






    • 1





      Yeah, I didn't need modprobe step neither.

      – David Jung
      Apr 22 at 4:59














    14





    +50







    14





    +50



    14




    +50





    I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers.



    After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:



    # systemctl isolate multi-user.target


    At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r (or rmmod directly):



    # modprobe -r nvidia-drm


    Once you've managed to replace/upgrade it and you're ready to start the graphical environment again, you can use this command:



    # systemctl start graphical.target





    share|improve this answer















    I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers.



    After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the following command to disable the graphical target, which is what keeps the display manager running:



    # systemctl isolate multi-user.target


    At this point, I'd expect you'd be able to unload the Nvidia drivers using modprobe -r (or rmmod directly):



    # modprobe -r nvidia-drm


    Once you've managed to replace/upgrade it and you're ready to start the graphical environment again, you can use this command:



    # systemctl start graphical.target






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 16 at 14:49









    Rui F Ribeiro

    42.7k1486146




    42.7k1486146










    answered May 4 '18 at 16:14









    filbrandenfilbranden

    11k21849




    11k21849













    • I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:23






    • 4





      This worked for me without the modprobe step.

      – Don Kirkby
      Nov 7 '18 at 15:22






    • 1





      Yeah, I didn't need modprobe step neither.

      – David Jung
      Apr 22 at 4:59



















    • I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:23






    • 4





      This worked for me without the modprobe step.

      – Don Kirkby
      Nov 7 '18 at 15:22






    • 1





      Yeah, I didn't need modprobe step neither.

      – David Jung
      Apr 22 at 4:59

















    I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:23





    I managed to uninstall it (using your answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:23




    4




    4





    This worked for me without the modprobe step.

    – Don Kirkby
    Nov 7 '18 at 15:22





    This worked for me without the modprobe step.

    – Don Kirkby
    Nov 7 '18 at 15:22




    1




    1





    Yeah, I didn't need modprobe step neither.

    – David Jung
    Apr 22 at 4:59





    Yeah, I didn't need modprobe step neither.

    – David Jung
    Apr 22 at 4:59













    5














    lsof lists any files that are in use by userspace processes. But nvidia_drm is a kernel module, so lsof won't necessarily see whether or not it is actually in use. (The module file won't be open because the kernel has already completely loaded it into RAM. But the module might be providing services to the userspace or other kernel components, and that is what prevents the unloading of the module.)



    Run lsmod | grep nvidia.drm and see the numbers to the right of the nvidia_drm module name. The first number is simply the size of the module; the second is the use count. In order to successfully remove the module, the use count must be 0 first.



    If the X11 server is running and using the nvidia driver, then the nvidia_drm kernel module will most assuredly be in use. So you'll need, at the very least, switch into text console and shutdown the X11 server. Usually this can be done by stopping whichever X Display Manager service you're using (depends on which desktop environment you're using).



    As the error message said, if you are running nvidia-persistenced, you'll need to stop that too before you can unload the nvidia_drm module.






    share|improve this answer
























    • After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

      – Rodrigo
      Apr 30 '18 at 15:50
















    5














    lsof lists any files that are in use by userspace processes. But nvidia_drm is a kernel module, so lsof won't necessarily see whether or not it is actually in use. (The module file won't be open because the kernel has already completely loaded it into RAM. But the module might be providing services to the userspace or other kernel components, and that is what prevents the unloading of the module.)



    Run lsmod | grep nvidia.drm and see the numbers to the right of the nvidia_drm module name. The first number is simply the size of the module; the second is the use count. In order to successfully remove the module, the use count must be 0 first.



    If the X11 server is running and using the nvidia driver, then the nvidia_drm kernel module will most assuredly be in use. So you'll need, at the very least, switch into text console and shutdown the X11 server. Usually this can be done by stopping whichever X Display Manager service you're using (depends on which desktop environment you're using).



    As the error message said, if you are running nvidia-persistenced, you'll need to stop that too before you can unload the nvidia_drm module.






    share|improve this answer
























    • After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

      – Rodrigo
      Apr 30 '18 at 15:50














    5












    5








    5







    lsof lists any files that are in use by userspace processes. But nvidia_drm is a kernel module, so lsof won't necessarily see whether or not it is actually in use. (The module file won't be open because the kernel has already completely loaded it into RAM. But the module might be providing services to the userspace or other kernel components, and that is what prevents the unloading of the module.)



    Run lsmod | grep nvidia.drm and see the numbers to the right of the nvidia_drm module name. The first number is simply the size of the module; the second is the use count. In order to successfully remove the module, the use count must be 0 first.



    If the X11 server is running and using the nvidia driver, then the nvidia_drm kernel module will most assuredly be in use. So you'll need, at the very least, switch into text console and shutdown the X11 server. Usually this can be done by stopping whichever X Display Manager service you're using (depends on which desktop environment you're using).



    As the error message said, if you are running nvidia-persistenced, you'll need to stop that too before you can unload the nvidia_drm module.






    share|improve this answer













    lsof lists any files that are in use by userspace processes. But nvidia_drm is a kernel module, so lsof won't necessarily see whether or not it is actually in use. (The module file won't be open because the kernel has already completely loaded it into RAM. But the module might be providing services to the userspace or other kernel components, and that is what prevents the unloading of the module.)



    Run lsmod | grep nvidia.drm and see the numbers to the right of the nvidia_drm module name. The first number is simply the size of the module; the second is the use count. In order to successfully remove the module, the use count must be 0 first.



    If the X11 server is running and using the nvidia driver, then the nvidia_drm kernel module will most assuredly be in use. So you'll need, at the very least, switch into text console and shutdown the X11 server. Usually this can be done by stopping whichever X Display Manager service you're using (depends on which desktop environment you're using).



    As the error message said, if you are running nvidia-persistenced, you'll need to stop that too before you can unload the nvidia_drm module.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 30 '18 at 6:39









    telcoMtelcoM

    21.4k12553




    21.4k12553













    • After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

      – Rodrigo
      Apr 30 '18 at 15:50



















    • After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

      – Rodrigo
      Apr 30 '18 at 15:50

















    After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

    – Rodrigo
    Apr 30 '18 at 15:50





    After Ctrl+Alt+F2, lsmod is telling me there's 1 process using nvidia_drm. So I did sudo /etc/init.d/gdm3 stop, which went ok in stopping it. But still 1 process in lsmod. Now inside Gnome, ps aux | grep nvidia shows [irq/129-nvidia] and [nvidia] but no nvidia-persistenced. Also, here lsmod shows 2 processes using nvidia_drm. I'm stuck.

    – Rodrigo
    Apr 30 '18 at 15:50











    2














    I had a similar problem.




    *Reason: nvidia.drm package was in use






    I fixed it by purging all NVIDIA packages.



    Remove all previous NVIDIA installations with these 2 commands:




    $ sudo apt-get purge nvidia*

    $ sudo apt-get autoremove



    Module should be removed.



    Reboot and go forth.






    share|improve this answer


























    • Thank you! This may come in handy if I need to format it again...

      – Rodrigo
      Sep 29 '18 at 3:13
















    2














    I had a similar problem.




    *Reason: nvidia.drm package was in use






    I fixed it by purging all NVIDIA packages.



    Remove all previous NVIDIA installations with these 2 commands:




    $ sudo apt-get purge nvidia*

    $ sudo apt-get autoremove



    Module should be removed.



    Reboot and go forth.






    share|improve this answer


























    • Thank you! This may come in handy if I need to format it again...

      – Rodrigo
      Sep 29 '18 at 3:13














    2












    2








    2







    I had a similar problem.




    *Reason: nvidia.drm package was in use






    I fixed it by purging all NVIDIA packages.



    Remove all previous NVIDIA installations with these 2 commands:




    $ sudo apt-get purge nvidia*

    $ sudo apt-get autoremove



    Module should be removed.



    Reboot and go forth.






    share|improve this answer















    I had a similar problem.




    *Reason: nvidia.drm package was in use






    I fixed it by purging all NVIDIA packages.



    Remove all previous NVIDIA installations with these 2 commands:




    $ sudo apt-get purge nvidia*

    $ sudo apt-get autoremove



    Module should be removed.



    Reboot and go forth.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 9 '18 at 21:04

























    answered Sep 28 '18 at 23:42









    KellyKelly

    1514




    1514













    • Thank you! This may come in handy if I need to format it again...

      – Rodrigo
      Sep 29 '18 at 3:13



















    • Thank you! This may come in handy if I need to format it again...

      – Rodrigo
      Sep 29 '18 at 3:13

















    Thank you! This may come in handy if I need to format it again...

    – Rodrigo
    Sep 29 '18 at 3:13





    Thank you! This may come in handy if I need to format it again...

    – Rodrigo
    Sep 29 '18 at 3:13











    1














    You report in comments that stopping the systemd-logind service takes you back to the graphic login. If you have a graphical login then X is running, so the video driver is loaded and in use. This very likely explains in part why the nvidia-drm module is in use.



    Additionally, you betray an apparent misconception when you say




    I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2
    before giving username/password), but I got the same error.




    Pressing Ctrl+Alt+F2 switches to a virtual terminal #2, which may well be configured for text-mode login, but that's a far cry from "starting in text mode". If you had a graphical login screen on the default virtual terminal then X is running, and switching to a different VT doesn't change that. You're just logging in to a non-X session.



    The first and easiest thing to try is to actually shut down the X server. The old-school way to do this would be to log in to your text-mode session and execute the command



    telinit 3


    to switch to runlevel 3. That should work with systemd, too, but the native systemd way would be to instead run



    systemctl isolate multi-user.target


    Both of those require privilege, of course, so you'll need to use sudo or make yourself root.



    If that doesn't remove the module, or at least make it possible for you to do so manually, then your next best bet would be to boot the system directly into runlevel 3 (multi-user target), or maybe even into runlevel 1 (rescue target). I usually do this by adding "3" (or "1") to the end of the kernel argument list at boot time via the bootloader. You can also change the default boot target as described in this article.



    Do also note that the nVidia driver is available in pre-built packages for most Linux distros. Few include those packages in their own standard repos because the driver is, after all, proprietary, but you can surely find a reputable 3rd-party repo that has it. I strongly recommend using such packages instead of running the installer directly, but to get there from where you are now, you may need to first manually uninstall the driver.






    share|improve this answer
























    • I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:22











    • @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

      – John Bollinger
      May 7 '18 at 20:59











    • Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

      – Rodrigo
      May 7 '18 at 21:09
















    1














    You report in comments that stopping the systemd-logind service takes you back to the graphic login. If you have a graphical login then X is running, so the video driver is loaded and in use. This very likely explains in part why the nvidia-drm module is in use.



    Additionally, you betray an apparent misconception when you say




    I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2
    before giving username/password), but I got the same error.




    Pressing Ctrl+Alt+F2 switches to a virtual terminal #2, which may well be configured for text-mode login, but that's a far cry from "starting in text mode". If you had a graphical login screen on the default virtual terminal then X is running, and switching to a different VT doesn't change that. You're just logging in to a non-X session.



    The first and easiest thing to try is to actually shut down the X server. The old-school way to do this would be to log in to your text-mode session and execute the command



    telinit 3


    to switch to runlevel 3. That should work with systemd, too, but the native systemd way would be to instead run



    systemctl isolate multi-user.target


    Both of those require privilege, of course, so you'll need to use sudo or make yourself root.



    If that doesn't remove the module, or at least make it possible for you to do so manually, then your next best bet would be to boot the system directly into runlevel 3 (multi-user target), or maybe even into runlevel 1 (rescue target). I usually do this by adding "3" (or "1") to the end of the kernel argument list at boot time via the bootloader. You can also change the default boot target as described in this article.



    Do also note that the nVidia driver is available in pre-built packages for most Linux distros. Few include those packages in their own standard repos because the driver is, after all, proprietary, but you can surely find a reputable 3rd-party repo that has it. I strongly recommend using such packages instead of running the installer directly, but to get there from where you are now, you may need to first manually uninstall the driver.






    share|improve this answer
























    • I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:22











    • @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

      – John Bollinger
      May 7 '18 at 20:59











    • Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

      – Rodrigo
      May 7 '18 at 21:09














    1












    1








    1







    You report in comments that stopping the systemd-logind service takes you back to the graphic login. If you have a graphical login then X is running, so the video driver is loaded and in use. This very likely explains in part why the nvidia-drm module is in use.



    Additionally, you betray an apparent misconception when you say




    I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2
    before giving username/password), but I got the same error.




    Pressing Ctrl+Alt+F2 switches to a virtual terminal #2, which may well be configured for text-mode login, but that's a far cry from "starting in text mode". If you had a graphical login screen on the default virtual terminal then X is running, and switching to a different VT doesn't change that. You're just logging in to a non-X session.



    The first and easiest thing to try is to actually shut down the X server. The old-school way to do this would be to log in to your text-mode session and execute the command



    telinit 3


    to switch to runlevel 3. That should work with systemd, too, but the native systemd way would be to instead run



    systemctl isolate multi-user.target


    Both of those require privilege, of course, so you'll need to use sudo or make yourself root.



    If that doesn't remove the module, or at least make it possible for you to do so manually, then your next best bet would be to boot the system directly into runlevel 3 (multi-user target), or maybe even into runlevel 1 (rescue target). I usually do this by adding "3" (or "1") to the end of the kernel argument list at boot time via the bootloader. You can also change the default boot target as described in this article.



    Do also note that the nVidia driver is available in pre-built packages for most Linux distros. Few include those packages in their own standard repos because the driver is, after all, proprietary, but you can surely find a reputable 3rd-party repo that has it. I strongly recommend using such packages instead of running the installer directly, but to get there from where you are now, you may need to first manually uninstall the driver.






    share|improve this answer













    You report in comments that stopping the systemd-logind service takes you back to the graphic login. If you have a graphical login then X is running, so the video driver is loaded and in use. This very likely explains in part why the nvidia-drm module is in use.



    Additionally, you betray an apparent misconception when you say




    I have rebooted and started in text-only mode (by pressing Ctrl+Alt+F2
    before giving username/password), but I got the same error.




    Pressing Ctrl+Alt+F2 switches to a virtual terminal #2, which may well be configured for text-mode login, but that's a far cry from "starting in text mode". If you had a graphical login screen on the default virtual terminal then X is running, and switching to a different VT doesn't change that. You're just logging in to a non-X session.



    The first and easiest thing to try is to actually shut down the X server. The old-school way to do this would be to log in to your text-mode session and execute the command



    telinit 3


    to switch to runlevel 3. That should work with systemd, too, but the native systemd way would be to instead run



    systemctl isolate multi-user.target


    Both of those require privilege, of course, so you'll need to use sudo or make yourself root.



    If that doesn't remove the module, or at least make it possible for you to do so manually, then your next best bet would be to boot the system directly into runlevel 3 (multi-user target), or maybe even into runlevel 1 (rescue target). I usually do this by adding "3" (or "1") to the end of the kernel argument list at boot time via the bootloader. You can also change the default boot target as described in this article.



    Do also note that the nVidia driver is available in pre-built packages for most Linux distros. Few include those packages in their own standard repos because the driver is, after all, proprietary, but you can surely find a reputable 3rd-party repo that has it. I strongly recommend using such packages instead of running the installer directly, but to get there from where you are now, you may need to first manually uninstall the driver.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 7 '18 at 15:03









    John BollingerJohn Bollinger

    21618




    21618













    • I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:22











    • @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

      – John Bollinger
      May 7 '18 at 20:59











    • Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

      – Rodrigo
      May 7 '18 at 21:09



















    • I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

      – Rodrigo
      May 7 '18 at 20:22











    • @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

      – John Bollinger
      May 7 '18 at 20:59











    • Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

      – Rodrigo
      May 7 '18 at 21:09

















    I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:22





    I managed to uninstall it (using Filipe's answer), and install the new version to the point where there was no more working graphic mode. I had to format the PC and reinstall Debian. Now to a completely different set of bugs... All this just to see "GPU" as an option of rendering in Blender, and I still don't see it. Proprietary drivers sucks!

    – Rodrigo
    May 7 '18 at 20:22













    @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

    – John Bollinger
    May 7 '18 at 20:59





    @Rodrigo, I'm sorry you had such a poor experience. But that sort of problem is an example of why I recommend using packages instead of performing manual installations.

    – John Bollinger
    May 7 '18 at 20:59













    Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

    – Rodrigo
    May 7 '18 at 21:09





    Yes, I prefer using packages. But I've read somewhere that GPU option in Blender wasn't enabled probably because of an outdated driver...

    – Rodrigo
    May 7 '18 at 21:09











    0














    Had the same problem with Debian Stretch when trying to install the Nvidia drivers. When in text mod my only solution was to remove the driver, reinstall gdm and gnome-shell. I know it's a clumsy solution, but I remember I first tried fixing the gnome-shell and only removing Nvidia driver and reinstalling GDM. Turned out it was much easier to just reinstall the whole shell.






    share|improve this answer
























    • Guess I'll wait for a less clumsy solution, if any shows up.

      – Rodrigo
      May 1 '18 at 14:51
















    0














    Had the same problem with Debian Stretch when trying to install the Nvidia drivers. When in text mod my only solution was to remove the driver, reinstall gdm and gnome-shell. I know it's a clumsy solution, but I remember I first tried fixing the gnome-shell and only removing Nvidia driver and reinstalling GDM. Turned out it was much easier to just reinstall the whole shell.






    share|improve this answer
























    • Guess I'll wait for a less clumsy solution, if any shows up.

      – Rodrigo
      May 1 '18 at 14:51














    0












    0








    0







    Had the same problem with Debian Stretch when trying to install the Nvidia drivers. When in text mod my only solution was to remove the driver, reinstall gdm and gnome-shell. I know it's a clumsy solution, but I remember I first tried fixing the gnome-shell and only removing Nvidia driver and reinstalling GDM. Turned out it was much easier to just reinstall the whole shell.






    share|improve this answer













    Had the same problem with Debian Stretch when trying to install the Nvidia drivers. When in text mod my only solution was to remove the driver, reinstall gdm and gnome-shell. I know it's a clumsy solution, but I remember I first tried fixing the gnome-shell and only removing Nvidia driver and reinstalling GDM. Turned out it was much easier to just reinstall the whole shell.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 1 '18 at 11:55









    Vlad SkurtolovVlad Skurtolov

    101




    101













    • Guess I'll wait for a less clumsy solution, if any shows up.

      – Rodrigo
      May 1 '18 at 14:51



















    • Guess I'll wait for a less clumsy solution, if any shows up.

      – Rodrigo
      May 1 '18 at 14:51

















    Guess I'll wait for a less clumsy solution, if any shows up.

    – Rodrigo
    May 1 '18 at 14:51





    Guess I'll wait for a less clumsy solution, if any shows up.

    – Rodrigo
    May 1 '18 at 14:51











    0














    I also encountered the same problem. The reason for the error was that I accidentally selected "Install nvidia driver" during the installation of cuda.



    So, during the installation of CUDA, when you encounter the following options:




    Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
    (y)es/(n)o/(q)uit:




    Please select q , the problem will be solved.





    share








    New contributor



    JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      I also encountered the same problem. The reason for the error was that I accidentally selected "Install nvidia driver" during the installation of cuda.



      So, during the installation of CUDA, when you encounter the following options:




      Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
      (y)es/(n)o/(q)uit:




      Please select q , the problem will be solved.





      share








      New contributor



      JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        I also encountered the same problem. The reason for the error was that I accidentally selected "Install nvidia driver" during the installation of cuda.



        So, during the installation of CUDA, when you encounter the following options:




        Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
        (y)es/(n)o/(q)uit:




        Please select q , the problem will be solved.





        share








        New contributor



        JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        I also encountered the same problem. The reason for the error was that I accidentally selected "Install nvidia driver" during the installation of cuda.



        So, during the installation of CUDA, when you encounter the following options:




        Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
        (y)es/(n)o/(q)uit:




        Please select q , the problem will be solved.






        share








        New contributor



        JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.







        share


        share






        New contributor



        JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        answered 5 mins ago









        JNingJNing

        1012




        1012




        New contributor



        JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




        New contributor




        JNing is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.
































            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%2f440840%2fhow-to-unload-kernel-module-nvidia-drm%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

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...