I've got same issue on Linux Mint 18.3 x86_64 (Ubuntu 16.04 based) with
nvidia-340 "340.104-0ubuntu0.16.04.1", and for me very helps debdiff
patch of Seth Forshee from this bug report:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-
drivers-340/+bug/1737751. I also forced to find and add another one
patch for kernel 4.14, because it is not exist anymore in current
nvidia-340 sources, but mentioned in Seth patch.

So, I saw 2 ways to fix current nvidia driver for Ubuntu 16.04 v.340.104:
1) quick
  1.1) use chunks from Seth patch to fix nvidia sources right in DKMS directory 
/usr/src/nvidia-340-340.104/ (if you got error from this topic, you already 
have them there),
  1.2) build & install nvidia kernel module with DKMS.

2) longer, but you've got ready-to-use nvidia deb-packages.
  2.1) fix nvidia source deb-packages with modified Seth's debdiff patch
  2.2) rebuild nvidia deb-packages, purge original & install rebuilded ones

I used second way, now I have working nvidia-340 driver with 4.15 kernel.
Also, after installing rebuilded packages, nvidia module not loaded, even 
manually - I got error "modprobe: ERROR: could not insert 'nvidia_340': No such 
device" - I forced to remove loaded module "nouveau", load "nvidia-340", then 
rebuild initrd image.


** Patch added: "for fixing DKMS sources"
   
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750/+attachment/5171716/+files/buildfix_kernel_4.14.patch

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers-304 in Ubuntu.
https://bugs.launchpad.net/bugs/1737750

Title:
  nvidia-graphics-drivers-304 304.137-0ubuntu2 ADT test failure with
  linux 4.15.0-1.2 [error: implicit declaration of function
  ‘init_timer’]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to