On 04/04/14 17:42, Klier Rainer wrote:
Am 03.04.2014 18:55, schrieb Patrick Shanahan:
See attached the patch you need to have the actual 331.49 ( present in nvidia repo ) build with at least a kernel-stable I use it for myself, but I'm with stock 13.1 + kernel-stable . build work and for the moment xorg seems happy.
--- a/kernel/nv-linux.h 2014-02-13 04:57:14.000000000 +0100 +++ b/kernel/nv-linux.h 2014-04-03 11:27:14.888851657 +0200 @@ -266,8 +266,7 @@ #endif
#if !defined(NV_VMWARE) && defined(CONFIG_ACPI) -#include <acpi/acpi.h> -#include <acpi/acpi_drivers.h> +#include <linux/acpi.h> #if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID) #define NV_LINUX_ACPI_EVENTS_SUPPORTED 1 #endif unfortunately neither patch works for me with 331.49 or 331.38
both fail to find /kernel/nv-linux.h then you maybe patching wrong.
to apply the above patch you have to change to directory NVIDIA-Linux-x86_64-334.21 and then use:
patch -p1 </patch/to/patch-file
The patch which I used and which worked perfectly is: diff -Naurp nvidia-331-331.38.orig/nv-linux.h nvidia-331-331.38/nv-linux.h --- a/kernel/nv-linux.h 2014-02-04 00:20:25.756253881 +0100 +++ b/kernel/nv-linux.h 2014-02-04 00:22:32.076257264 +0100 @@ -268,6 +268,11 @@ extern int nv_pat_mode; #if !defined(NV_VMWARE) && defined(CONFIG_ACPI) #include <acpi/acpi.h> #include <acpi/acpi_drivers.h> + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) +#include <acpi/acpi_bus.h> +#endif + #if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID) #define NV_LINUX_ACPI_EVENTS_SUPPORTED 1 #endif The patch was provided by Masaru Nomiya who posted it in a reply to my message in openSUSE 'HELP' list. The patch is for 331.49 and kernel 3.14.x (actually my kernel was 3.14.0-2). BC -- A civilisation is judged by how it treats the most vulnerable. Lauren Smith - 30 January 2014 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org