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 Ubuntu Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1813064/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs