how to stop spurious syslog messages on a lenovo t510 with nvidia graphics

description

on a lenovo t510 thinkpad equipped with nvidia graphics, the following message fills the system log:

Jul 31 18:36:00 dox kernel: [24959.762075] NVRM: os_raise_smp_barrier(), invalid context!

the message is caused by the nvidia X server PowerMizer setting; the default is Adaptive. it must be changed to Prefer Maximum Performance.

solution

edit the /etc/X11/xorg.conf file and the following line to the Device section:

Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x1; PowerMizerDefault=0x1; PowerMizerDefaultAC=0x1"

the result should look something like this:

Section "Device"
  Identifier      "Default Device"
  Driver  "nvidia"
  Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x1; PowerMizerDefault=0x1; PowerMizerDefaultAC=0x1"
  Option  "NoLogo"        "True"
EndSection

updated: 07/31/2011