Метка: linux

Решения проблем с тирингом в Linux

Создаем файл /etc/X11/xorg.conf
И вставляем эти параметры в зависимости от видеокарты:

1. Для AMD Mobile\Desktop

Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
EndSection

2. Для Intel Desktop

Section "Device"
Identifier  "Intel Graphics"
Driver      "intel"
Option "TearFree" "true"
EndSection

3. Для Intel Desktop 2

Section "Device"
Identifier  "Intel Graphics"
Driver      "intel"
Option      "AccelMethod"  "sna"
Option      "TearFree"     "true"
EndSection

4. Для Intel Mobile

Section "Device"
Identifier  "Device0"
Driver      "intel"
BusID       "PCI:0:2:0"
Option      "AccelMethod" "sna"
Option      "DRI"    "true"
Option      "TearFree"    "true"
EndSection

5. Для Nvidia Mobile

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
SubSection "Display"
Depth 24
EndSubSection

6. Для Nvidia Destop

Section "Screen"
Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "Stereo" "0"
Option         "nvidiaXineramaInfoOrder" "DFP-0"
Option         "metamodes" "DVI-D-0: 1920x1080_60 +1920+0 {ForceFullCompositionPipeline=On}, DVI-I-1: 1920x1080_60 +0+5 {ForceFullCompositionPipeline=On}"
Option         "SLI" "Off"

Установка Visual Studio Core в Ubuntu 16.04

Устанавливаем зависимости

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

Обновляем репозиторий и устанавливаем Visual Studio Core

sudo apt-get update
sudo apt-get install code # or code-insiders