Тиринг в xfce в Ubuntu и Linux Mint | Записки анонимуса

вторник, 18 августа 2015 г.

Тиринг в xfce в Ubuntu и Linux Mint

После установки закрытого драйвера Nvidia в системе с xfce может появиться тиринг т.е полосы при прокрутке в браузере, или в видео. Исправить это можно установив wm Compton.

Сначала нужно отключить стандартный wm xfce (Настройки xfce>Диспетчер окон (дополнительно)>Эффекты>Снять галочку с "включить эффекты")
Устанавливаем Compton
sudo apt-add-repository ppa:richardgv/compton
sudo apt-get update && sudo apt-get install compton
Создаём в домашней папке файл .compton.conf и открываем его в текстовом редакторе. Вставляем в него следующий код:
backend = "glx"; # Enables Opengl backend
paint-on-overlay = true; # These 3 can improve performance, work well in most cases
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl-swc"; # Enables one of the vsync methods.

# Shadow
shadow = true; # Enabled client-side shadows on windows.
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true; # Don't draw shadows on DND windows.
clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 7; # The blur radius for shadows. (default 12)
shadow-offset-x = -7; # The left offset for shadows. (default -15)
shadow-offset-y = -7; # The top offset for shadows. (default -15)
shadow-exclude = [
"! name~=''",
"n:e:Notification",
"n:e:Plank",
"n:e:Docky",
"g:e:Synapse",
"g:e:Kupfer",
"g:e:Conky",
"n:w:*Firefox*",
"n:w:*Chrome*",
"n:w:*Chromium*",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'"
];

# Due to how compton draws shadows, some apps will have "glitchy" shadows. I've added all problem apps I ran into here.
#"! name~=''" excludes shadows on "unkown" windows, which fixes a shadow glitch with XFWM's alt tab switcher.

# Fading
fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
#no-fading-openclose = true; # Fade windows in/out when opening/closing

detect-client-opacity = true; #Fixes opacity in some apps, such as xfce4-notifyd

# Window type settings
# Disables shadows on tooltips and enables fading on tooltips

wintypes:
{
tooltip = { fade = true; shadow = false; };
};
Сохраняем файл и закрываем текстовый редактор.
Теперь нужно добавить Compton в автозагрузку: открываем настройки xfce и находим там пункт "сеансы и запуск" (в linux mint, в ubuntu может отличаться) и добавляем в атозагрузку команду compton.
Перезагружаем компьютер.

P.S В xfce 4.12 можно включить вертикальную синхронизацию в настройках менеджера окон и тиринг пропадёт:

 

Комментариев нет:

Отправить комментарий