选择显示器后 nvidia-settings 崩溃

选择显示器后 nvidia-settings 崩溃

在我的计算机上首次安装 ubuntu 14.04 LTS 后,我遇到了一些 nvidia 问题,尤其是 nvidia 设置。当我尝试更改分辨率并按“应用”时,它只是关闭并在我的终端上输出错误:

The program 'nvidia-settings' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
 (Details: serial 785 error_code 2 request_code 157 minor_code 25)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

我尝试使用搜索选项和终端上的 sudo 打开

dpkg -l | grep nvidia 的输出:

ii  nvidia-304                                                  304.131-0ubuntu0.14.04.1                            i386         NVIDIA legacy binary driver - version 304.131
ii  nvidia-current                                              304.131-0ubuntu0.14.04.1                            i386         Transitional package for nvidia-current
rc  nvidia-libopencl1-304                                       304.131-0ubuntu0.14.04.1                            i386         NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-opencl-icd-304                                       304.131-0ubuntu0.14.04.1                            i386         NVIDIA OpenCL ICD
ii  nvidia-settings                                             331.20-0ubuntu8                                     i386         Tool for configuring the NVIDIA graphics driver

答案1

我建议尝试一下这个:

sudo apt-get purge nvidia*  
sudo reboot 

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot

有关详细信息,请参阅我的线

这就是在我的系统中的样子

root@ashu-700-430qe:/var/opt# dpkg -l | grep nvidia
ii  nvidia-358                                            358.16-0ubuntu0~gpu14.04.2                          amd64        NVIDIA binary driver - version 358.16
ii  nvidia-opencl-icd-358                                 358.16-0ubuntu0~gpu14.04.2                          amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                          0.6.2                                               amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                       361.28-0ubuntu0~gpu14.04.1                          amd64        Tool for configuring the NVIDIA graphics driver
root@ashu-700-430qe:/var/opt# 

相关内容