Can't switch to dedicated nVidia graphics card

5,535

There is a known bug to nvidia settings: Bug #1341140.

If you receive the following error message, you are probably affected by it:

ERROR: nvidia-settings could not find the registry key file.
This file should have been installed along with this driver at either
/usr/share/nvidia/nvidia-application-profiles-337.25-key-documentation or
/usr/share/nvidia/nvidia-application-profiles-key-documentation.
The application profiles will continue to work, but values cannot be preopulated
or validated, and will not be listed in the help text.
Please see the README for possible values and descriptions.

There is a workaround to this bug, also contained in the bug report. Execute the following from a root shell, replacing the 340.24 by the actual driver number. (I yet have to find out what they mean...)

mkdir -p /etc/nvidia
cd /etc/nvidia
ln -s /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile_keys nvidia-application-profiles-340.24-key-documentation
ln -s /etc/alternatives/x86_64-linux-gnu_nvidia_app_profile nvidia-application-profiles-340.24-rc

Now the problem should be fixed, according to the bug report.


EDIT: The OP mentioned that he had to alter above commands as follows:

cd /usr/share/nvidia
mv nvidia-application-profiles-340.76-key-documentation nvidia-application-profiles-key-documentation
mv nvidia-application-profiles-340.76-rc nvidia-application-profiles-rc
Share:
5,535

Related videos on Youtube

kos
Author by

kos

Full-time Linux user. Currently dual-booting Parabola and Ubuntu. I've read and signed the Ubuntu Code of Conduct. My Launchpad profile

Updated on September 18, 2022

Comments

  • kos
    kos over 1 year

    I have an ASUS F552CL laptop with Ubuntu 15.04 installed.

    The laptop comes with a dedicated nVidia GeForce GT 710M graphics card.

    I have installed and enabled all the proprietary drivers suggested in Software Updates - Additional Drivers:

    screenshot1

    When I try to switch to the dedicated graphics card using NVIDIA X Server Settings, a message pops up asking me to log out and log back in to apply the changes:

    screenshot2

    And it looks like the dedicated graphics card has been selected:

    enter image description here

    However, if I log out and log back in the integrated graphics card shows up as the card in use:

    enter image description here

    I also tried to reboot instead of to log out and log back in but the integrated graphics card keeps showing up as the card in use.

    When I run gksudo nvidia-settings in Terminal, after having closed NVIDIA X Server Settings I get the following message:

    ERROR: nvidia-settings could not find the registry key file. This file
           should have been installed along with this driver at
           /usr/share/nvidia/nvidia-application-profiles-key-documentation. The
           application profiles will continue to work, but values cannot be
           preopulated or validated, and will not be listed in the help text.
           Please see the README for possible values and descriptions.
    
    • JoKeR
      JoKeR almost 9 years
      did you use gksudo? Once I had similar situation when I simply launch nvidia-settings the result won't affect when run with gksudo and vice versa.
    • s3lph
      s3lph almost 9 years
      Please add possible error output from running nvidia-settings from a terminal. It may be that you are affected by this bug
    • kos
      kos almost 9 years
      @JoKeR Thanks for the suggestion, but I've always started NVIDIA X Settings from the dash
    • kos
      kos almost 9 years
      @the_Seppi Good catch. That's it (same identical message). If you want to post that as an answer I'll accept it.
  • kos
    kos almost 9 years
    Thanks, however this didn't work, and I managed to solve it in a different way. See my update on the question to read the exact error message. I had to change the filenames of the symbolic links in /usr/share/nvidia (nvidia-application-profiles-340.76-key-documentation and nvidia-application-profiles-340.76-rc in my case) to nvidia-application-profiles-key-documentation and nvidia-application-profiles-340.76-rc as the error message implicitly suggests