我想核实什么驱动程序是目前使用的NVIDIA,然后切换驱动程序到nvidia-331-更新,如有必要。
我该如何做到这一点?
sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00000FFBsv00001462sd000010DBbc03sc00i00
model : GK107GLM [Quadro K2000M]
vendor : NVIDIA Corporation
driver : nvidia-331-updates - distro non-free
driver : nvidia-304 - distro non-free
driver : nvidia-304-updates - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
sudo ubuntu-drivers list
nvidia-304
nvidia-331
nvidia-331-updates
nvidia-304-updates(我尝试了sudo ubuntu-drivers autoinstall和sudo ubuntu-drivers autoinstall nvidia-331-updates -绝望地,因为缺少有用的帮助文本-但没有结果)
最近也提出了一个类似的问题(如何使用命令行中的ubuntu驱动程序(公共或软件)属性来更改图形驱动程序?),但提问者接受了一个没有真正回答问题的答案。所以我想再试一次。
首先,我之所以对此感兴趣,是因为在试图设置第二个监视器之后,图形化的“附加驱动程序”-tool突然停止工作。
发布于 2014-04-18 18:34:57
不,你不能。至少用那个工具不行。没有一个命令可以帮助您安装不同的驱动程序:
list: Show all driver packages which apply to the current system.
debug: Print all available information and debug data about drivers.
devices: Show all devices which need drivers, and which packages apply to them.
autoinstall: Install drivers that are appropriate for automatic installation.list不安装,而是列出。debug只是打印更多的信息。devices信息丰富。autoinstall不允许其他参数:
def command_autoinstall(args):
'''Install drivers that are appropriate for automatic installation.'''
cache = apt.Cache()
packages = UbuntuDrivers.detect.system_driver_packages(cache)
packages = UbuntuDrivers.detect.auto_install_filter(packages)
if not packages:
print('No drivers found for automatic installation.')
return
# ignore packages which are already installed
to_install = []
for p in packages:
if not cache[p].installed:
to_install.append(p)
if not packages:
print('All drivers for automatic installation are already installed.')
return
ret = subprocess.call(['apt-get', 'install', '-o',
'DPkg::options::=--force-confnew', '-y'] + to_install)
# create package list
if ret == 0 and args.package_list:
with open(args.package_list, 'a') as f:
f.write('\n'.join(to_install))
f.write('\n')
return ret您可以忽略该工具,并使用apt手动安装包,然后按照您获得的输出。只需移除一个软件包并安装另一个:
sudo apt-get install nvidia-331-updateshttps://askubuntu.com/questions/449693
复制相似问题