Bug 195096

Summary: Corrupted colours in X.org with x11/nvidia-driver 340.46
Product: Ports & Packages Reporter: Jason Mann <jason.mann>
Component: Individual Port(s)Assignee: Alexey Dokuchaev <danfe>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: konkovaa
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Photo of NVIDIA splash screen showing corrupted colours
none
Photo of twm desktop showing corrupted colours
none
Xorg log file none

Description Jason Mann 2014-11-17 09:31:47 UTC
- Overview:

nvidia-driver-340.46, the current version in ports/pkgs at this time, does not appear to work correctly with the GPU in my laptop when running X.org.  The entire colour palette appears to be corrupted.

- Steps to reproduce:

Install X.org and nvidia-driver-340.56.  Configure X.org to use the driver using nvidia-xconfig.

Start X.org.

- Actual results:

When the system switches into graphical mode upon starting X.org, all colour is corrupted.  Xterm windows that should be white are instead a shade of green, and all other elements on the screen are similarly miscoloured.

- Expected results:

Colour should be correct in X.org.

- Hardware:

Dell Vostro 1700 laptop, with NVIDIA GeForce 8600m GT GPU - confirmed as still supported by the current driver.

- Additional Information:

This problem occurs with both the prebuilt package and the port, with and without Linux support enabled.

It did not occur with the previous 331.67 version from ports/packages.

I downloaded and installed the newer 340.58 driver directly from NVIDIA.  Colour was correct with this version.  One of the "Release highlights" listed for this version is:

  "Fixed a bug that caused incorrect colors to be displayed on X screens running at depth 8 on some GPUs."

Not sure if this applies to this issue though, as X.org was running in a 24-bit graphics mode, unless NVIDIA was referring to bits per colour channel when referring to depth.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-11-19 09:45:41 UTC
auto-assigner couldn't figure out the maintainer from the title...
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2014-12-14 10:22:15 UTC
NVidia driver was just updated (ports r374695) to version 340.65, the latest to date, in order to fix recently discovered vulnerability CVE-2014-8298.

Please test it and report if it fixes palette corruption as well, thank you!
Comment 3 Jason Mann 2014-12-23 12:30:30 UTC
The corrupted colour problem persists in 340.65 on my system.  This was tested on a fresh 10.1-RELEASE installation, with only xorg, mate-desktop, and nvidia-driver installed from packages.
Comment 4 Jason Mann 2015-08-17 21:55:17 UTC
I have revisited this issue today by carrying out a clean installation of 10.2-RELEASE, with xorg and nvidia-driver-340 from packages.

It appears that GeForce 8600m GT support has been dropped from the nvidia-driver package, so version 340.76 as provided by the nvidia-driver-340 package is required.

The problem remains as previously described.  Colours are incorrect, both at the NVIDIA splash screen when starting X.org and once it is running.
Comment 5 Jason Mann 2015-08-18 06:51:17 UTC
Created attachment 159972 [details]
Photo of NVIDIA splash screen showing corrupted colours
Comment 6 Jason Mann 2015-08-18 06:52:12 UTC
Created attachment 159973 [details]
Photo of twm desktop showing corrupted colours
Comment 7 Jason Mann 2015-08-18 06:57:44 UTC
Created attachment 159974 [details]
Xorg log file
Comment 8 Jason Mann 2015-08-19 07:49:13 UTC
Removed the nvidia-driver-340 package and built the driver from the 340.76 tarball downloaded directly from NVIDIA.

The same problem with corrupted colours occurs.

It seems this is an upstream problem.
Comment 9 Alexey Dokuchaev freebsd_committer freebsd_triage 2016-07-07 01:49:48 UTC
The port was recently updated to the latest version; could you check it out and see if the problem still persists?
Comment 10 Alexey Dokuchaev freebsd_committer freebsd_triage 2016-11-22 09:32:22 UTC
Closing due to no feedback since July.  Feel free to reopen if needed.
Comment 11 Aleksandr Konkov 2018-09-25 10:34:06 UTC
Dell Inspirion 1520 with GeForce 8600M GT.
The corrupted color problem stil persists in 340.106 from ports and in 340.107 from nvidia.com.  Tested on a fresh 11.2-RELEASE installation, with only xorg installed from packages.