Here is my issue: Ubuntu starts perfectly, but when I get to the login screen and try to log in, I get a black screen and a few seconds later I'm back to the login screen.
I believe the problem comes from the graphic card driver since I had just switched from the alternative driver to the proprietary one before I got the issue. (I used the Software and Updates app to do so.)
I have an Asus with i7 and a dual-boot with Windows and Ubuntu 18.04 (Grub starts fine). My graphic card is Nvidia Geforce 920M.
Thank you!
PS: I'm a beginner Ubuntu user, don't hesitate to ask if I forgot essential info.
EDIT: following @JoshuaBesneatte answer, I did the following :
sudo apt-get purge nvidia
andreboot
. I can now log in, but the window is now "zoomed in". (Weirdly, the "zoomed in" problem wasn't there the first time I did step 1).I added the graphics drivers repository:
sudo add-apt-repository ppa:graphics-drivers
. Checking Software and Updates a bit later (not sure the change comes from this command), I now have 4 possibilities : 3 Nvidia drivers (390, 400 and 415) and Nouveau display driver (I only had one Nvidia possibility before).I Updated (
sudo apt update
) :leo@leo:~$ sudo apt-get update [sudo] password for leo: Hit:1 http://uk-mirrors.evowise.com/ubuntu bionic InRelease Hit:2 http://archive.canonical.com/ubuntu bionic InRelease Hit:3 http://uk-mirrors.evowise.com/ubuntu bionic-backports InRelease Hit:4 http://uk-mirrors.evowise.com/ubuntu bionic-security InRelease Hit:5 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic InRelease Hit:6 http://uk-mirrors.evowise.com/ubuntu bionic-updates InRelease Hit:7 http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu bionic InRelease Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease Hit:9 http://ppa.launchpad.net/linrunner/tlp/ubuntu bionic InRelease Hit:10 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu bionic InRelease Reading package lists... Done
I tried installing Nvidia drivers :
nvidia-current didn't work (
sudo apt install nvidia-current
) :leo@leo:~$ sudo apt install nvidia-current Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: nvidia-current : Depends: nvidia-304 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
After doing step 1 again, I tried installing 390 (
sudo apt install nvidia-driver-390
). It seemed to work, and thesudo nvidia-xconfig
gave the following result :sudo nvidia-xconfig Using X configuration file: "/etc/X11/xorg.conf". Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup' New X configuration file written to '/etc/X11/xorg.conf'
But after rebooting, my computer freezes when I try to log in. I had the same result when I tried with
sudo apt install nvidia-driver-415
andsudo ubuntu-drivers autoinstall
.When I try to install nvidia 400 (
sudo apt install nvidia-driver-400
), I get the following :Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nvidia-driver-400
NB: weirdly, Firefox doesn't work anymore, while Chrome does.
SOLUTION: After purging Nvidia, simply remove the xorg.conf file in /etc/X11. It doesn't make the Nvidia driver works, but at least Nouveau works.
ubuntu-drivers list
and then install an older or newer driver than previous... see this..askubuntu.com/questions/22118/…sudo apt-get install nvidia-driver-390
I have had issues with the 400 series ones... so what you should do is (after purging everything) install the 390 driver instead and see if that works... updating answer now... be sure to follow all steps of answer, in order...sudo nvidia-xconfig
, maybe my configuration file is not correct ?