As discussed (e.g.) in <http://ubuntuforums.org/showthread.php?t=1047029>, if one uses nvidia-settings to make use of a second display, then disables the second display and disconnects it, a subsequent invocation of nvidia-settings (e.g., to connect a different display) may (will?) cause nvidia-settings to display a message such as: Unable to load X Server Display Configuration page: Failed to find display device 0x00000001 on screen 0 (on GPU-0) while parsing metamode: 'CRT-0: nvidia-auto-select @1280x1024 +1440+0' if one tries to select "X Server Display Configuration". And at that point, it is no longer possible (in my experience, despite trying the circumventions mentioned in the above-cited ubuntuforums.org post) to perform any X Server Display Configuration using nvidia-settings --even if the display is re-attached ... unless one applies the attached patch and rebuilds nvidia-settings. A comment about the patch: it seemed to me that the existing behavior of nvidia-setting (whining and refusing to do anything because a display that used to be there wasn't there any more) was ... well, "unfortunate" (to say it politely). So I changed the code to bypass displays that it can't find -- which seems to me to be ... well, almost sensible. I note that ideally, this change would be made upstream. That, or some other change would be made upstream to fix the problem. In the mean time, the attached patch does resolve it for me, and we thus have a way to make the FreeBSD port usable despite the bug. Fix: Drop the attached patch into the port's files directory as patch-ctkdisplayconfig-utils.c, then rebuild the port. How-To-Repeat: I think I covered it fairly well in Description.
Responsible Changed From-To: freebsd-ports-bugs->bland Maintainer has GNATS access. Fix Synopsis.
bland 2012-04-07 15:39:05 UTC FreeBSD ports repository Modified files: x11/nvidia-settings Makefile Added files: x11/nvidia-settings/files patch-src__gtk+-2.x__ctkdisplayconfig-utils.c Log: Let users to recover from the situation when the display was used is removed. PR: 166647 Feature safe: yes Revision Changes Path 1.53 +1 -0 ports/x11/nvidia-settings/Makefile 1.1 +11 -0 ports/x11/nvidia-settings/files/patch-src__gtk+-2.x__ctkdisplayconfig-utils.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Modified version of patch commtted, thanks! I'd prefere nvidia-settings to make some noise on the console in a such situation. And please, do bug upstream about the issue.