首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用ubuntu驱动程序更改图形卡驱动程序?

如何使用ubuntu驱动程序更改图形卡驱动程序?
EN

Ask Ubuntu用户
提问于 2014-04-18 12:34:55
回答 1查看 17.4K关注 0票数 8

我想核实什么驱动程序是目前使用的NVIDIA,然后切换驱动程序到nvidia-331-更新,如有必要。

我该如何做到这一点?

代码语言:javascript
复制
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 autoinstallsudo ubuntu-drivers autoinstall nvidia-331-updates -绝望地,因为缺少有用的帮助文本-但没有结果)

最近也提出了一个类似的问题(如何使用命令行中的ubuntu驱动程序(公共或软件)属性来更改图形驱动程序?),但提问者接受了一个没有真正回答问题的答案。所以我想再试一次。

首先,我之所以对此感兴趣,是因为在试图设置第二个监视器之后,图形化的“附加驱动程序”-tool突然停止工作。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2014-04-18 18:34:57

不,你不能。至少用那个工具不行。没有一个命令可以帮助您安装不同的驱动程序:

代码语言:javascript
复制
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不允许其他参数:

代码语言:javascript
复制
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手动安装包,然后按照您获得的输出。只需移除一个软件包并安装另一个:

代码语言:javascript
复制
sudo apt-get install nvidia-331-updates
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/449693

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档