在Ubuntu 16.04中,这是我消除屏幕撕裂和闪烁所要做的事情:
sudo apt-get install xserver-xorg-video-intel libva-intel-vaapi-driver
创建和编辑~/.drirc
:
<device screen="0" driver="dri2">
<application name="Default">
<option name="vblank_mode" value="0"/>
</application>
</device>
创建和编辑/usr/share/X11/xorg.conf.d/20-intel.conf
:
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "DRI" "3"
EndSection
以上几乎可以解决问题。但是,在最新的内核版本(从4.0到最新的4.8)中存在一个持久的内核错误,其产生的闪烁与以下视频完全相同:https : //www.youtube.com/watch?v=TqAljJ0U5Pc。
但是,如果您使用的内核确实很旧,则闪烁会停止。
下载并安装旧的内核:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.11-trusty/linux-image-3.13.11-03131111-generic_3.13.11-03131111.201411111336_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.11-trusty/linux-headers-3.13.11-03131111_3.13.11-03131111.201411111336_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11.11-trusty/linux-headers-3.13.11-03131111-generic_3.13.11-03131111.201411111336_amd64.deb
sudo dpkg -i linux-headers-3.13.11-03131111_3.13.11-03131111.201411111336_all.deb linux-headers-3.13.11-03131111-generic_3.13.11-03131111.201411111336_amd64.deb linux-image-3.13.11-03131111-generic_3.13.11-03131111.201411111336_amd64.deb
最后要做的是将上述内核设置为默认内核。
编辑/etc/default/grub
并更改/添加以下行:
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.13.11-03131111-generic"
最后,更新grub:
sudo update-grub