2

I recently upgraded to 15.10 from 14.04 (15.04). I seem to have everything working OK but installing proprietary Nvidia drivers has proved beyond me.

I have tried all the available options in software updates (340 and 352) and also some from the graphics-drivers ppa however all lead to what I assume are Load Kernel Module errors before any log in screens appear. I can only resolve these by reinstalling nvidia-current (304) from a terminal.

I am running with Nvidia GT730M and Intel HD4000

What are my best options to resolve the errors? I would rather not have to do a clean reinstall (but I can if necessary). I apologise for the lack of information, this is my first question, although I have found many helpful responses here in the past.

If you need any info I will try to provide. Many thanks in advance.

  • what are the errors? – Goddard Nov 17 '15 at 17:10
  • Hard to tell, a screen which has a line saying [FAILED]Failed Load Kernel Module and sometimes just a flashing black screen, anywhere specific I can look for more info. – Hugh Williams Nov 17 '15 at 17:40
  • Have tried again with 355 and the boot just hangs at the Ubuntu splash, if I use recovery I can get to login but upon entering my password it just loops back to the login – Hugh Williams Nov 17 '15 at 17:52

2 Answers2

0

Try this

sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/ld.so.conf
sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/alt_ld.so.conf

When you have the nvidia drivers installed. Obviously the versions should match.

Also you might have to boot into "recovery mode" when the GRUB menu is displayed and then when asked what you want to do just select resume normal boot.

At that point ctrl + alt + f1 then log in and then run those commands. You can make this easier by creating a .sh file and then just run that file rather then trying to enter this super long command.

Goddard
  • 4,724
  • 2
  • 33
  • 51
  • I am running 64 bit do I only need to run the first line? – Hugh Williams Nov 17 '15 at 18:29
  • no you need to run both. – Goddard Nov 17 '15 at 18:30
  • Thanks for your help but it still just loops at login, message during recovery boot is 'Failed to start Load Kernel Modules' see 'systemctl status systemd-modules-load.service' for details – Hugh Williams Nov 17 '15 at 18:45
  • I have to run this command at every reboot. First I go into recovery mode and then I can boot normally upon rebooting. Do you get a lightdm screen(login screen) when you boot into recovery mode? – Goddard Nov 17 '15 at 18:48
  • I get to the login screen but when i enter my password it just flashes a screen of text too quickly to see and then goes back to login – Hugh Williams Nov 17 '15 at 18:53
  • yeah you need to hit alt + ctrl + f1 and then enter those commands and then reboot and boot normally. I need to do this every time I reboot. It is a bug I have already submitted. Hoping it gets resolved. But it requires us to do this each time. – Goddard Nov 17 '15 at 18:54
  • I am not really doing anything graphically intensive atm so I will probably leave it until things get sorted out. Thank you for your help! – Hugh Williams Nov 19 '15 at 19:50
  • Just curious are you getting any errors when booting up? Are you using "Online Accounts"? – Goddard Nov 23 '15 at 21:35
  • I get some errors on startup when not using proprietary, plymouthd and kactivitymanager but those dont seem to be related. I do not use online accounts. I haven't tried to get Nvidia going recently as I haven't needed my gfx card but might try again soon. – Hugh Williams Dec 05 '15 at 19:08
  • I think this might be related to having the wrong resolution set on lightdm. I also had this issue because my laptop can do 2k resolutions, but that hurts battery life so I downscaled to 1080p. Not sure if that is the exact cause, but check out this answer and give it a shot if you have a similar situation - http://askubuntu.com/questions/507726/gnome-shell-cant-save-screen-resolution/536167#536167 – Goddard Dec 05 '15 at 19:11
0

These instructions were key to cleaning up my failed installation attempts until I got the process right.

sudo nvidia-settings --uninstall
sudo apt-get remove --purge nvidia*
sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv
sudo apt-get install nvidia-common
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg

Then I updated my grub configuration thusly:

GRUB_CMDLINE_LINUX_DEFAULT="nomdmonddf nomdmonisw nouveau.modeset=0 rdblacklist=nouveau nomodeset"

It seems to work just as described in most guides - however most of my issues were due to boot/grub-config failures, which was due to issues with my MBR and grub. I suspect boot-repair might be useful for many others like me.

One install failed b/c I chose Yes to build with DKMS support, but something was wrong with my headers and/or source. I fixed this by changing to /usr/src and running

sudo apt-get install --reinstall linux-headers-$(uname -r)
sudo apt-get source linux-headers-$(uname -r) 

Once I was confident that I had a clean (non-nvidia) driver situation and that disabling nouveau was going to work, I proceeded with the installation of the downloaded driver:

sudo service lightdm stop
sudo modprobe -r nouveau
sudo sh [nvidia-installer].run