Package: nvidia-settings
Version: 195.36.24-1
Severity: normal
Tags: patch

I experience the same bug that is described in:

https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/539196

I'm working on a freshly installed Debian Squeeze, with an nVidia board
detected by lspci as:

01:00.0 VGA compatible controller: nVidia Corporation NV36 [GeForce FX
5700LE] (rev a1)

I'm using the nvidia legacy driver 173xx. The patch proposed on
Launchpad solves the issue for me and is very easy to apply. I'm
attaching a copy of the patch for your convenience.

Thanks, Giovanni.
-- 
Giovanni Mascellani <[email protected]>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: [email protected] / [email protected]
Description: Do not fail if the driver doesn't support NV_CTRL_NO_SCANOUT
 NV_CTRL_NO_SCANOUT is not supported by legacy drivers such as series
 173 and 96. Pretending that the property exists and is set to false
 prevents nvidia-settings from breaking compatibility with these drivers.
Forwarded: no
Bug: https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/539196
Author: Alberto Milone <[email protected]>

diff -Nurp nvidia-settings-195.36.08.orig/src/gtk+-2.x/ctkdisplayconfig-utils.c nvidia-settings-195.36.08/src/gtk+-2.x/ctkdisplayconfig-utils.c
--- nvidia-settings-195.36.08.orig/src/gtk+-2.x/ctkdisplayconfig-utils.c	2010-02-25 14:44:28.000000000 +0100
+++ nvidia-settings-195.36.08/src/gtk+-2.x/ctkdisplayconfig-utils.c	2010-04-06 19:47:14.335936746 +0200
@@ -2112,11 +2112,14 @@ static int gpu_add_screen_from_server(nv
     /* See if the screen is set to not scanout */
     ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val);
     if (ret != NvCtrlSuccess) {
+        /*
         *err_str = g_strdup_printf("Failed to query NoScanout for "
                                    "screen %d.",
                                    screen_id);
         nv_warning_msg(*err_str);
         goto fail;
+        */
+        val = NV_CTRL_NO_SCANOUT_DISABLED;
     }
     screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED) ? TRUE : FALSE;
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to