Cannot get rid of nvidia drivers, restore nouveau driver and get desktop working












12















I made the mistake of installing the Nvidia Linux drivers direct from their website.
It failed because it could not remove the nouveau driver.



Next I manually installed the nvidia drivers from the repository which successfully installed the nvidia driver, but the Ubuntu desktop does not function; no launcher, no menu bar, no windows. (Gnome seems to work though).



So I want to revert back to the vanilla installed nouveau driver.
I tried



sudo stop lightdm
sudo apt-get purge nvidia*
sudo apt-get install xserver-xorg-video-nouveau
sudo rm /etc/X11/xorg.conf
sudo reboot


but lshw -c video reveals I still have one nvidia driver and one i915 driver.
nouveau has not returned and the desktop will not function.



I am considering a complete reinstall, is there anything else to try?



I have followed the other threads with the same issues, but the solutions did not work



sudo dpkg-reconfigure xserver-xorg


Creates an error.



sudo apt-get install --reinstall xserver-xorg.core libgl1-mesa-glx


Did not make a difference.



cccm


Same.










share|improve this question

























  • For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

    – xji
    Dec 6 '15 at 10:27
















12















I made the mistake of installing the Nvidia Linux drivers direct from their website.
It failed because it could not remove the nouveau driver.



Next I manually installed the nvidia drivers from the repository which successfully installed the nvidia driver, but the Ubuntu desktop does not function; no launcher, no menu bar, no windows. (Gnome seems to work though).



So I want to revert back to the vanilla installed nouveau driver.
I tried



sudo stop lightdm
sudo apt-get purge nvidia*
sudo apt-get install xserver-xorg-video-nouveau
sudo rm /etc/X11/xorg.conf
sudo reboot


but lshw -c video reveals I still have one nvidia driver and one i915 driver.
nouveau has not returned and the desktop will not function.



I am considering a complete reinstall, is there anything else to try?



I have followed the other threads with the same issues, but the solutions did not work



sudo dpkg-reconfigure xserver-xorg


Creates an error.



sudo apt-get install --reinstall xserver-xorg.core libgl1-mesa-glx


Did not make a difference.



cccm


Same.










share|improve this question

























  • For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

    – xji
    Dec 6 '15 at 10:27














12












12








12


3






I made the mistake of installing the Nvidia Linux drivers direct from their website.
It failed because it could not remove the nouveau driver.



Next I manually installed the nvidia drivers from the repository which successfully installed the nvidia driver, but the Ubuntu desktop does not function; no launcher, no menu bar, no windows. (Gnome seems to work though).



So I want to revert back to the vanilla installed nouveau driver.
I tried



sudo stop lightdm
sudo apt-get purge nvidia*
sudo apt-get install xserver-xorg-video-nouveau
sudo rm /etc/X11/xorg.conf
sudo reboot


but lshw -c video reveals I still have one nvidia driver and one i915 driver.
nouveau has not returned and the desktop will not function.



I am considering a complete reinstall, is there anything else to try?



I have followed the other threads with the same issues, but the solutions did not work



sudo dpkg-reconfigure xserver-xorg


Creates an error.



sudo apt-get install --reinstall xserver-xorg.core libgl1-mesa-glx


Did not make a difference.



cccm


Same.










share|improve this question
















I made the mistake of installing the Nvidia Linux drivers direct from their website.
It failed because it could not remove the nouveau driver.



Next I manually installed the nvidia drivers from the repository which successfully installed the nvidia driver, but the Ubuntu desktop does not function; no launcher, no menu bar, no windows. (Gnome seems to work though).



So I want to revert back to the vanilla installed nouveau driver.
I tried



sudo stop lightdm
sudo apt-get purge nvidia*
sudo apt-get install xserver-xorg-video-nouveau
sudo rm /etc/X11/xorg.conf
sudo reboot


but lshw -c video reveals I still have one nvidia driver and one i915 driver.
nouveau has not returned and the desktop will not function.



I am considering a complete reinstall, is there anything else to try?



I have followed the other threads with the same issues, but the solutions did not work



sudo dpkg-reconfigure xserver-xorg


Creates an error.



sudo apt-get install --reinstall xserver-xorg.core libgl1-mesa-glx


Did not make a difference.



cccm


Same.







drivers nvidia nouveau






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 24 '14 at 18:39









Andreas Løve Selvik

1033




1033










asked Oct 18 '13 at 4:46









leepubuntuleepubuntu

68117




68117













  • For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

    – xji
    Dec 6 '15 at 10:27



















  • For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

    – xji
    Dec 6 '15 at 10:27

















For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

– xji
Dec 6 '15 at 10:27





For me, substituting in a xorg.conf file worked, even using the failsafe one already in the folder. If there's absolutely no xorg.conf, it'll likely not work.

– xji
Dec 6 '15 at 10:27










5 Answers
5






active

oldest

votes


















12














Had the same problem.



sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx


This actually fixed it. Ubuntu 13.10 x64 + nVidia 740M. Thank you very much!



You did not mention your GPU. If you've had that problem on a laptop, I'd suggest its because of the so-called "Fusion" system (which uses your integrated GPU in lieu of discrete one when you don't need it).






share|improve this answer


























  • This should be xserver-xorg-core I guess.

    – MadMike
    Dec 18 '13 at 6:38











  • Do not recommend to run it on 16.04. Just killed all xserver for me

    – danielleontiev
    Jan 9 at 3:30



















7














Ultimate fix:



sudo stop lightdm
sudo apt-get purge nvidia*
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get purge bumblebee
sudo reboot now


Do not remove xorg.conf file, I repeat do not remove xorg.conf.






share|improve this answer





















  • 1





    Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

    – Alex
    May 27 '16 at 9:54





















6














Be sure you remove all blacklist entries involving nouveau from /etc/modprobe.d as well.



Otherwise even if the system is configured to use it, it will not. I believe blacklist-local, and the nvidia backlists will be of primary concern.






share|improve this answer

































    1














    I had the same issue. Mine turned out to be a badly configured bumblebee.conf referencing nvidia-304 in one place and nvidia-current in another.






    share|improve this answer

































      1














      Try this:



      cd /etc/modules-load.d/ 
      mv nvidia.conf nvidia.conf.backup

      cd /etc/modprobe.d/
      mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup
      mv nvidia.conf nvidia.conf.backup
      mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup


      Good luck!






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f360761%2fcannot-get-rid-of-nvidia-drivers-restore-nouveau-driver-and-get-desktop-working%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        12














        Had the same problem.



        sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx


        This actually fixed it. Ubuntu 13.10 x64 + nVidia 740M. Thank you very much!



        You did not mention your GPU. If you've had that problem on a laptop, I'd suggest its because of the so-called "Fusion" system (which uses your integrated GPU in lieu of discrete one when you don't need it).






        share|improve this answer


























        • This should be xserver-xorg-core I guess.

          – MadMike
          Dec 18 '13 at 6:38











        • Do not recommend to run it on 16.04. Just killed all xserver for me

          – danielleontiev
          Jan 9 at 3:30
















        12














        Had the same problem.



        sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx


        This actually fixed it. Ubuntu 13.10 x64 + nVidia 740M. Thank you very much!



        You did not mention your GPU. If you've had that problem on a laptop, I'd suggest its because of the so-called "Fusion" system (which uses your integrated GPU in lieu of discrete one when you don't need it).






        share|improve this answer


























        • This should be xserver-xorg-core I guess.

          – MadMike
          Dec 18 '13 at 6:38











        • Do not recommend to run it on 16.04. Just killed all xserver for me

          – danielleontiev
          Jan 9 at 3:30














        12












        12








        12







        Had the same problem.



        sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx


        This actually fixed it. Ubuntu 13.10 x64 + nVidia 740M. Thank you very much!



        You did not mention your GPU. If you've had that problem on a laptop, I'd suggest its because of the so-called "Fusion" system (which uses your integrated GPU in lieu of discrete one when you don't need it).






        share|improve this answer















        Had the same problem.



        sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx


        This actually fixed it. Ubuntu 13.10 x64 + nVidia 740M. Thank you very much!



        You did not mention your GPU. If you've had that problem on a laptop, I'd suggest its because of the so-called "Fusion" system (which uses your integrated GPU in lieu of discrete one when you don't need it).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 18 '13 at 10:52









        chaos

        19.5k85767




        19.5k85767










        answered Dec 18 '13 at 6:07









        InertiaInertia

        12113




        12113













        • This should be xserver-xorg-core I guess.

          – MadMike
          Dec 18 '13 at 6:38











        • Do not recommend to run it on 16.04. Just killed all xserver for me

          – danielleontiev
          Jan 9 at 3:30



















        • This should be xserver-xorg-core I guess.

          – MadMike
          Dec 18 '13 at 6:38











        • Do not recommend to run it on 16.04. Just killed all xserver for me

          – danielleontiev
          Jan 9 at 3:30

















        This should be xserver-xorg-core I guess.

        – MadMike
        Dec 18 '13 at 6:38





        This should be xserver-xorg-core I guess.

        – MadMike
        Dec 18 '13 at 6:38













        Do not recommend to run it on 16.04. Just killed all xserver for me

        – danielleontiev
        Jan 9 at 3:30





        Do not recommend to run it on 16.04. Just killed all xserver for me

        – danielleontiev
        Jan 9 at 3:30













        7














        Ultimate fix:



        sudo stop lightdm
        sudo apt-get purge nvidia*
        sudo apt-get install xserver-xorg-video-nouveau
        sudo apt-get purge bumblebee
        sudo reboot now


        Do not remove xorg.conf file, I repeat do not remove xorg.conf.






        share|improve this answer





















        • 1





          Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

          – Alex
          May 27 '16 at 9:54


















        7














        Ultimate fix:



        sudo stop lightdm
        sudo apt-get purge nvidia*
        sudo apt-get install xserver-xorg-video-nouveau
        sudo apt-get purge bumblebee
        sudo reboot now


        Do not remove xorg.conf file, I repeat do not remove xorg.conf.






        share|improve this answer





















        • 1





          Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

          – Alex
          May 27 '16 at 9:54
















        7












        7








        7







        Ultimate fix:



        sudo stop lightdm
        sudo apt-get purge nvidia*
        sudo apt-get install xserver-xorg-video-nouveau
        sudo apt-get purge bumblebee
        sudo reboot now


        Do not remove xorg.conf file, I repeat do not remove xorg.conf.






        share|improve this answer















        Ultimate fix:



        sudo stop lightdm
        sudo apt-get purge nvidia*
        sudo apt-get install xserver-xorg-video-nouveau
        sudo apt-get purge bumblebee
        sudo reboot now


        Do not remove xorg.conf file, I repeat do not remove xorg.conf.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 11 '15 at 0:17









        shaneonabike

        35929




        35929










        answered Mar 12 '15 at 14:58









        ArsalanArsalan

        7111




        7111








        • 1





          Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

          – Alex
          May 27 '16 at 9:54
















        • 1





          Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

          – Alex
          May 27 '16 at 9:54










        1




        1





        Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

        – Alex
        May 27 '16 at 9:54







        Why not to remove xorg.conf ? If there is some nvidia-specific stuff inside, I quess it could bring X to dont work any more. I just moved it to xorg.conf.backup and did the reboot --> worked like a charm, so I deleted it.

        – Alex
        May 27 '16 at 9:54













        6














        Be sure you remove all blacklist entries involving nouveau from /etc/modprobe.d as well.



        Otherwise even if the system is configured to use it, it will not. I believe blacklist-local, and the nvidia backlists will be of primary concern.






        share|improve this answer






























          6














          Be sure you remove all blacklist entries involving nouveau from /etc/modprobe.d as well.



          Otherwise even if the system is configured to use it, it will not. I believe blacklist-local, and the nvidia backlists will be of primary concern.






          share|improve this answer




























            6












            6








            6







            Be sure you remove all blacklist entries involving nouveau from /etc/modprobe.d as well.



            Otherwise even if the system is configured to use it, it will not. I believe blacklist-local, and the nvidia backlists will be of primary concern.






            share|improve this answer















            Be sure you remove all blacklist entries involving nouveau from /etc/modprobe.d as well.



            Otherwise even if the system is configured to use it, it will not. I believe blacklist-local, and the nvidia backlists will be of primary concern.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 8 '14 at 3:55









            nux

            22.8k2995117




            22.8k2995117










            answered Mar 8 '14 at 3:27









            TylerTyler

            6111




            6111























                1














                I had the same issue. Mine turned out to be a badly configured bumblebee.conf referencing nvidia-304 in one place and nvidia-current in another.






                share|improve this answer






























                  1














                  I had the same issue. Mine turned out to be a badly configured bumblebee.conf referencing nvidia-304 in one place and nvidia-current in another.






                  share|improve this answer




























                    1












                    1








                    1







                    I had the same issue. Mine turned out to be a badly configured bumblebee.conf referencing nvidia-304 in one place and nvidia-current in another.






                    share|improve this answer















                    I had the same issue. Mine turned out to be a badly configured bumblebee.conf referencing nvidia-304 in one place and nvidia-current in another.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 15 '15 at 6:53









                    Eliah Kagan

                    82.4k22227368




                    82.4k22227368










                    answered May 15 '15 at 2:28









                    tomtom

                    111




                    111























                        1














                        Try this:



                        cd /etc/modules-load.d/ 
                        mv nvidia.conf nvidia.conf.backup

                        cd /etc/modprobe.d/
                        mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup
                        mv nvidia.conf nvidia.conf.backup
                        mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup


                        Good luck!






                        share|improve this answer




























                          1














                          Try this:



                          cd /etc/modules-load.d/ 
                          mv nvidia.conf nvidia.conf.backup

                          cd /etc/modprobe.d/
                          mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup
                          mv nvidia.conf nvidia.conf.backup
                          mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup


                          Good luck!






                          share|improve this answer


























                            1












                            1








                            1







                            Try this:



                            cd /etc/modules-load.d/ 
                            mv nvidia.conf nvidia.conf.backup

                            cd /etc/modprobe.d/
                            mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup
                            mv nvidia.conf nvidia.conf.backup
                            mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup


                            Good luck!






                            share|improve this answer













                            Try this:



                            cd /etc/modules-load.d/ 
                            mv nvidia.conf nvidia.conf.backup

                            cd /etc/modprobe.d/
                            mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup
                            mv nvidia.conf nvidia.conf.backup
                            mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup


                            Good luck!







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 8 '16 at 0:04









                            WeylerWeyler

                            111




                            111






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f360761%2fcannot-get-rid-of-nvidia-drivers-restore-nouveau-driver-and-get-desktop-working%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

                                How to make a Squid Proxy server?

                                Is this a new Fibonacci Identity?

                                19世紀