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

2015-03-13 16:15:57 +08:00
 Solitudechn
现在使用的环境是debian 8 gnome 的桌面。多次尝试在gnome环境下安装amd私有驱动,但是均崩溃,或者自动回滚。以前就知道amd拥有开源驱动,并且我一直认为是默认开启的,直到同群的人说我的电脑默认采用的是intel的集成显卡。便上网查找如何开启,但是由于网上多为以前的帖子,均需修改/etc/x11 这个文件夹。但是我并未在我的电脑中发现 x11 这个文件夹。特来寻求解决方法...
9860 次点击
所在节点    Linux
15 条回复
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
2015-03-13 17:36:36 +08:00
没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
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
2015-03-14 01:16:01 +08:00
@Solitudechn
dpkg -l | grep video-ati
看看有没有安装xserver-xorg-video-ati或者xf86-video-ati
chaucerling
2015-03-14 01:19:16 +08:00
忘了说,内核要 kernels >= 3.12 才有vgaswitcheroo这个模块
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
2015-03-14 08:45:03 +08:00
@chaucerling 谢谢,现在我的内核是linux 3.16 也就是说,我的独立显卡会自动切换?在开源的驱动情况下?
chaucerling
2015-03-14 10:09:11 +08:00
@Solitudechn
应该是的
ujmxyd
2015-03-14 10:24:27 +08:00
@chaucerling 能否指出是Arhc Wiki的哪一段?大概浏览了一下,没看见类似的。
chaucerling
2015-03-14 10:45:51 +08:00
yadam
2015-03-14 13:07:13 +08:00
前一阵子配置ubuntu装成功了一次, 不知道有没有参考价值
http://yadam.sinaapp.com/article/26
yadam
2015-03-14 13:09:21 +08:00
哦 闭源的..
ujmxyd
2015-03-14 14:30:13 +08:00
@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
2015-03-14 15:57:20 +08:00
另外,“同群的人”是怎么知道的……glxinfo?
ujmxyd
2015-03-14 16:12:11 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/176652

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX