技术解析

请教如何在 linux 下启动 amd 开源的显卡驱动
0
2021-07-13 08:35:15
idczone
现在使用的环境是debian 8 gnome 的桌面。多次尝试在gnome环境下安装amd私有驱动,但是均崩溃,或者自动回滚。以前就知道amd拥有开源驱动,并且我一直认为是默认开启的,直到同群的人说我的电脑默认采用的是intel的集成显卡。便上网查找如何开启,但是由于网上多为以前的帖子,均需修改/etc/x11 这个文件夹。但是我并未在我的电脑中发现 x11 这个文件夹。特来寻求解决方法...
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 />1:DIS: :DynOff:0000:01:00.0

没x11估计是没安装开源驱动
https://wiki.archlinux.org/index.php/ATI_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)/>先卸载闭源驱动,再安装开源驱动
sudo apt-get install xorg

我没有安装过任何闭源驱动,并且我不能够查看显卡当前启动状态...原因是没有/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]


dpkg -l | grep video-ati
看看有没有安装xserver-xorg-video-ati或者xf86-video-ati

忘了说,内核要 kernels >= 3.12 才有vgaswitcheroo这个模块

看错了,archlinux的wiki是说内核大于等于3.12,用开源驱动是会自动切换的
2.6.38以上的内核开始支持双显卡的切换,3.06下切换显卡的模块仍然处于debug状态
sudo mount -t debugfs debugfs /sys/kernel/debug #加载模块

谢谢,现在我的内核是linux 3.16 也就是说,我的独立显卡会自动切换?在开源的驱动情况下?


应该是的

能否指出是Arhc Wiki的哪一段?大概浏览了一下,没看见类似的。

https://wiki.archlinux.org/index.php/hybrid_graphics#ATI_Dynamic_Switchable_Graphics

前一阵子配置ubuntu装成功了一次, 不知道有没有参考价值
http://yadam.sinaapp.com/article/26

哦 闭源的..

https://help.ubuntu.com/community/HybridGraphicsvga_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//>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/>恕我英语不好,“This is not needed for kernels version >= 3.12 with radeon DPM enabled; the open source graphics driver manages the card automatically.”的意思到底是radeon DPM能够搞定双显卡自动切换还是会检测到双显卡就自动关闭独显?

另外,“同群的人”是怎么知道的……glxinfo?

好吧,看上去是前者
http://kernelnewbies.org/Linux_3.12#head-13ec2e4a5ce97feff73f1bc419f224fbcad74d82

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服