There's actually a second patch that is recommended as per the libreelec tree:
https://github.com/LibreELEC/LibreELEC.tv/blob/9012226b40baa26241069317fdce6174935ca71b/packages/x11/driver/xf86 -video-nvidia-legacy/patches/xf86-video-nvidia-legacy-02-fix- linux-5.1.patch I've combined both patches. ** Patch added: "buildfix_kernel_5.1.patch" https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1813064/+attachment/5264095/+files/buildfix_kernel_5.1.patch -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-graphics-drivers-340 in Ubuntu. https://bugs.launchpad.net/bugs/1813064 Title: nvidia-graphics-drivers-340 340.107-0ubuntu2 ADT test failure with linux 5.0.0-1.2 Status in nvidia-graphics-drivers-340 package in Ubuntu: Fix Released Bug description: Testing failed on: amd64: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-disco-canonical-kernel-team-unstable/disco/amd64/n/nvidia-graphics-drivers-340/20190123_164221_e6b8e@/log.gz i386: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-disco-canonical-kernel-team-unstable/disco/i386/n/nvidia-graphics-drivers-340/20190123_165434_e6b8e@/log.gz To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1813064/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp