V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Solitudechn
V2EX  ›  Linux

请教如何在 linux 下启动 amd 开源的显卡驱动

  •  
  •   Solitudechn · 2015-03-13 16:15:57 +08:00 · 9850 次点击
    这是一个创建于 3333 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在使用的环境是debian 8 gnome 的桌面。多次尝试在gnome环境下安装amd私有驱动,但是均崩溃,或者自动回滚。以前就知道amd拥有开源驱动,并且我一直认为是默认开启的,直到同群的人说我的电脑默认采用的是intel的集成显卡。便上网查找如何开启,但是由于网上多为以前的帖子,均需修改/etc/x11 这个文件夹。但是我并未在我的电脑中发现 x11 这个文件夹。特来寻求解决方法...
    15 条回复    2015-03-14 16:12:11 +08:00
    chaucerling
        1
    chaucerling  
       2015-03-13 17:34:00 +08:00
    lspci | grep VGA #查看显卡信息
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff)

    sudo cat /sys/kernel/debug/vgaswitcheroo/switch #查看显卡状态
    0:IGD:+:Pwr:0000:00:02.0 #i卡
    1:DIS: :DynOff:0000:01:00.0
    chaucerling
        2
    chaucerling  
       2015-03-13 17:36:36 +08:00   ❤️ 1
    没x11估计是没安装开源驱动
    https://wiki.archlinux.org/index.php/ATI_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E6.A6.82.E8.A7.88
    先卸载闭源驱动,再安装开源驱动
    sudo apt-get install xorg
    Solitudechn
        3
    Solitudechn  
    OP
       2015-03-13 22:43:01 +08:00
    @chaucerling 我没有安装过任何闭源驱动,并且我不能够查看显卡当前启动状态...原因是没有/sys/kernel/debug/下的 /vgaswitcheroo 这个文件夹

    返回值

    # lspci | grep -i VGA
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series]
    chaucerling
        4
    chaucerling  
       2015-03-14 01:16:01 +08:00
    @Solitudechn
    dpkg -l | grep video-ati
    看看有没有安装xserver-xorg-video-ati或者xf86-video-ati
    chaucerling
        5
    chaucerling  
       2015-03-14 01:19:16 +08:00
    忘了说,内核要 kernels >= 3.12 才有vgaswitcheroo这个模块
    chaucerling
        6
    chaucerling  
       2015-03-14 01:32:38 +08:00
    看错了,archlinux的wiki是说内核大于等于3.12,用开源驱动是会自动切换的
    2.6.38以上的内核开始支持双显卡的切换,3.06下切换显卡的模块仍然处于debug状态
    sudo mount -t debugfs debugfs /sys/kernel/debug #加载模块
    Solitudechn
        7
    Solitudechn  
    OP
       2015-03-14 08:45:03 +08:00
    @chaucerling 谢谢,现在我的内核是linux 3.16 也就是说,我的独立显卡会自动切换?在开源的驱动情况下?
    chaucerling
        8
    chaucerling  
       2015-03-14 10:09:11 +08:00
    @Solitudechn
    应该是的
    ujmxyd
        9
    ujmxyd  
       2015-03-14 10:24:27 +08:00
    @chaucerling 能否指出是Arhc Wiki的哪一段?大概浏览了一下,没看见类似的。
    yadam
        11
    yadam  
       2015-03-14 13:07:13 +08:00
    前一阵子配置ubuntu装成功了一次, 不知道有没有参考价值
    http://yadam.sinaapp.com/article/26
    yadam
        12
    yadam  
       2015-03-14 13:09:21 +08:00
    哦 闭源的..
    ujmxyd
        13
    ujmxyd  
       2015-03-14 14:30:13 +08:00 via Android
    @chaucerling https://help.ubuntu.com/community/HybridGraphics#Enabling_vga_switcheroo vga_switcheroo is the kernel mechanism that allows you to switch between GPUs if your machine has a hardware mux.(multiplexer,多路复用器)

    http://www.x.org/wiki/RadeonFeature/#note_5
    MUXed systems can be switched using vgaswitcheroo.

    Most new laptops (2011+) are MUX-less.

    所以不能用vga_switcheroo是因为这个笔记本是MUX-less的
    但是radeon到底能不能支持MUX-less的东西我不是很确定
    https://wiki.archlinux.org/index.php/hybrid_graphics#Current_Problems_2
    恕我英语不好,“This is not needed for kernels version >= 3.12 with radeon DPM enabled; the open source graphics driver manages the card automatically.”的意思到底是radeon DPM能够搞定双显卡自动切换还是会检测到双显卡就自动关闭独显?
    ujmxyd
        14
    ujmxyd  
       2015-03-14 15:57:20 +08:00 via Android
    另外,“同群的人”是怎么知道的……glxinfo?
    ujmxyd
        15
    ujmxyd  
       2015-03-14 16:12:11 +08:00 via Android
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5716 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 03:11 · PVG 11:11 · LAX 20:11 · JFK 23:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.