diff options
author | bland <bland@FreeBSD.org> | 2012-08-21 22:49:33 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2012-08-21 22:49:33 +0800 |
commit | 40414b9c30d17618083c35a03a8a7ce450239073 (patch) | |
tree | ad6e16f53d77e92a4a154341994a2f8ab6f95167 /x11 | |
parent | aa9494228b6e96cc8fe9e4c7c0fa723af65209b5 (diff) | |
download | freebsd-ports-gnome-40414b9c30d17618083c35a03a8a7ce450239073.tar.gz freebsd-ports-gnome-40414b9c30d17618083c35a03a8a7ce450239073.tar.zst freebsd-ports-gnome-40414b9c30d17618083c35a03a8a7ce450239073.zip |
Allow display configuration with legacy nvidia-driver versions.
PR: 155011
Diffstat (limited to 'x11')
-rw-r--r-- | x11/nvidia-settings/Makefile | 1 | ||||
-rw-r--r-- | x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/x11/nvidia-settings/Makefile b/x11/nvidia-settings/Makefile index 25da6daa644c..f3691f084e44 100644 --- a/x11/nvidia-settings/Makefile +++ b/x11/nvidia-settings/Makefile @@ -7,6 +7,7 @@ PORTNAME= nvidia-settings PORTVERSION= 295.71 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= ftp://download.nvidia.com/XFree86/nvidia-settings/ \ ftp://download1.nvidia.com/XFree86/nvidia-settings/ diff --git a/x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c b/x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c index e67907b2a0cf..c26add5cd9bf 100644 --- a/x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c +++ b/x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c @@ -9,3 +9,20 @@ } +--- src/gtk+-2.x/ctkdisplayconfig-utils.c.orig 2012-08-21 23:36:11.000000000 +0900 ++++ src/gtk+-2.x/ctkdisplayconfig-utils.c 2012-08-21 23:36:46.000000000 +0900 +@@ -2534,11 +2534,14 @@ + /* See if the screen is set to not scanout */ + ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val); + if (ret != NvCtrlSuccess) { ++#if 0 + *err_str = g_strdup_printf("Failed to query NoScanout for " + "screen %d.", + screen_id); + nv_warning_msg(*err_str); + goto fail; ++#endif ++ val = NV_CTRL_NO_SCANOUT_DISABLED; + } + screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED); + |