如何重新配置​​Intel集成到Intel / ATI可切换的图形?

最低目标:无需重新安装驱动程序即可在图形卡之间切换。 在此过程中重新启动计算机很好。

有很多“如何获得可切换的图形工作”指南,但我没有发现如何从头开始在Ubuntu上配置可切换图形操作的系统,也没有解释特定计算机模型的当前驱动程序情况(集成+离散组合) )。

示例: https : //help.ubuntu.com/community/HybridGraphics http://www.thinkwiki.org/wiki/Switchable_Graphics

我的系统成熟并且在英特尔集成卡上也使事情变得复杂。

系统信息:
Ubuntu 12.04 amd64,安装干净,系统配置为仅使用集成的Intel Thinkpad T500卡
英特尔GMA 4500MHD / ATI Mobility Radeon HD 3650

现在的情况:
成熟且最新的系统,没有对上面给出的配置进行任何更改。
我已经制作了系统的备份图像(Clonezilla),所以不管下面写的是什么, 我们都假设它是我们的起点。 如果我已经尝试过的内容不清楚,你也可以直截了当。

我已经尝试过:
配置BIOS以切换图形和:

  1. 安装其他硬件驱动程序 – 返回错误。
  2. 自动安装专有的amd-driver-installer-12.6-legacy-x86.x86_64.run – 系统开始“低图形模式”。
  3. 根据https://help.ubuntu.com/community/BinaryDriverHowto/ATI#Manually_installing_Catalyst_12.6.2C_special_case_for_Intel.2BAC8-ATI_hybrid_graphics尝试修复
  4. 迷路了,放弃了。

BIOS设置:
请注意,虽然仅为集成图形配置BIOS非常简单,但是可切换图形的配置却不是。 尽管如此,如果你知道驱动程序安装部分,我愿意自己测试所有的BIOS设置组合。

我在google搜索时找到了解决方案。 您必须在rc.local放置一个脚本,指定要使用的VGA。

这个链接解释了一切。

我将在这里发布重要说明:

  1. 首先从git安装所需的驱动程序和脚本

     sudo apt-get install git && cd ~/ git clone https://github.com/mkottman/acpi_call.git cd acpi_call && make sudo insmod acpi_call.ko chmod a+x test_off.sh 
  2. 取消激活ATI VGA

     sh test_off.sh 
  3. 现在,您可以检查lspci -vnnn | grep VGA是否已禁用您的ATI VGA lspci -vnnn | grep VGA
    它将显示以下输出:

    00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 3650M] [1002:6760] (rev ff) (prog-if ff)

  4. 如果它工作,要使其在启动时运行,请编辑/etc/rc.local

     sudo insmod /acpi_call/acpi_call.ko sudo sh /acpi_call/test_off.sh 
  5. 另外,通过编辑/etc/modprobe.d/blacklist.conf删除radeon黑名单:

     #blacklist radeon 

    您应该像这样使用xorg.conf来使VGA可检测:

      Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Module" Load "glx" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Device" Identifier "aticonfig-Device[0]-0" # Driver "fglrx" BusID "PCI:1:0:0" EndSection # Section "Screen" # Identifier "Default Screen" # DefaultDepth 24 # EndSection Section "Screen" Identifier "aticonfig-Screen[0]-0" Device "aticonfig-Device[0]-0" Monitor "aticonfig-Monitor[0]-0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection 

注意:要再次激活ATI / AMD radeon VGA: 只需评论我们添加到rc.local的内容

解决方案2

我从askubuntu.com找到了这个解决方案,我可能更容易付诸实践:

这个问题假定使用vga_switcheroo。

将其添加到/etc/fstab

 none /sys/kernel/debug debugfs defaults 0 0 

目前,AMD / ATI专有驱动程序无法实现这一目标。 请参考从BIOS使用专有驱动程序切换离散和集成图形之间的任何方法?