首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu16.04:显卡被错误检测,电池耗尽

Ubuntu16.04:显卡被错误检测,电池耗尽
EN

Ask Ubuntu用户
提问于 2016-05-11 13:21:42
回答 1查看 543关注 0票数 0

我使用的是Inspiron 7548,它附带了AMD R7 M270显卡。然而,Ubuntu正在将其检测为R7 M265。

LSPCI:

代码语言:javascript
复制
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
07:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265]

此时,我需要帮助使Ubuntu正确地检测到它,或者禁用图形卡(我试图将radeon模块列入黑名单,但它没有生效(即使在重新启动两次之后)。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-05-24 15:12:29

目前还没有正式的AMD驱动/支持AMD卡。但我还是不知道为什么没被发现。如果没有检测到,这可能会导致禁用它的问题。

不管怎样,这就是我在我的Ubuntu 16.04上禁用它的方式;

1)编辑文件/etc/default/grub。将radeon.runpm=0添加到行的末尾,并在quiet splash之后加上GRUB_CMDLINE_LINUX_DEFAULT

2)保存文件并运行sudo update-grub。然后重新启动。

3)重新启动后,运行终端并输入sudo cat /sys/kernel/debug/vgaswitcheroo/switch。这应该会给你看两张这样的卡片:

代码语言:javascript
复制
0:IGD:+:Pwr:0000:01:05.0 
1:DIS: :Pwr:0000:02:00.1 

IGD是您的英特尔图形,DIS是您的离散图形(AMD)。如果您只看到这里列出的一张卡,那么在继续执行这些步骤之前,您需要解决更多的问题才能检测到该卡。如果您确实看到两个条目,那么继续。

4)现在类型为echo DIS > /sys/kernel/debug/vgaswitcheroo/switch

如果并且只有在输入上述命令时出错,然后键入这两行(用自己的用户名替换),然后再次尝试步骤4;

( 4a) sudo chown yourusername /sys/kernel/debug

4b) sudo chown yourusername /sys/kernel/debug/vgaswitcheroo/switch

4e)以上仅限于sudo chown xtoro /sys/kernel......的示例

如果您不确定您的用户名,请在终端中键入whoami

5)当步骤4成功且没有错误时,键入

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

(是的,你打了两次相同的东西。)

6)再次键入sudo cat /sys/kernel/debug/vgaswitcheroo/switch,您应该看到

代码语言:javascript
复制
0:IGD:+:Pwr:0000:01:05.0 
1:DIS: :Off:0000:02:00.1 

注意,综合安全分遣队之后,你现在应该去送行了。

现在编辑文件/etc/init.d/rc.local

exit 0之前,如果步骤4有权限错误,请添加以下2行:

chown USERNAME /sys/kernel/debug

chown USERNAME /sys/kernel/debug/vgaswitcheroo/switch

这将允许您每次禁用该卡。

您还可以在chown和exit 0行之间添加以下3行,以在每次引导后保持其禁用:

echo DIS > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

重新启动,然后运行

sudo cat /sys/kernel/debug/vgaswitcheroo/switch确认您的AMD卡在每次重新启动后仍然是禁用的。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/770814

复制
相关文章

相似问题

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