I'm having a problem with screen tearing and Compton is the solution for it. Changed the window manager in Xfwm4 + Compton and everything works fine!
But every time I boot the problem reappears. Every boot I have to go to Settings > Desktop Settings and change the window manager to another one, then switch back to Xfwm4 + Compton. This makes Compton working fine without screen tearing. I have the same issue on two different PCs with different hardware.
Is there a way to avoid changing the window manager every time I boot? A command to run at startup? Setting the VSync method doesn't work and I don't know why (see first code below).
Thank you in advance for your help!
Code: Select all
mirko@A544 ~ $ compton --vsync opengl
Another composite manager is already running
Code: Select all
mirko@A544 ~ $ inxi -Fxz
System: Host: A544 Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28)
Distro: Linux Mint 18.3 Sylvia
Machine: System: FUJITSU (portable) product: LIFEBOOK A544
Mobo: FUJITSU model: FJNBB35 Bios: FUJITSU // Phoenix v: Version 1.18 date: 12/01/2014
CPU: Dual core Intel Core i3-4000M (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9578
clock speeds: max: 2400 MHz 1: 2400 MHz 2: 2399 MHz 3: 2400 MHz 4: 2400 MHz
Graphics: Card: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1366x768@60.00hz, 1280x1024@60.02hz
GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 17.0.7 Direct Rendering: Yes
Audio: Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
driver: snd_hda_intel bus-ID: 00:03.0
Sound: Advanced Linux Sound Architecture v: k4.10.0-38-generic
Network: Card-1: Intel Wireless 7260 driver: iwlwifi bus-ID: 03:00.0
IF: wlp3s0 state: down mac: <filter>
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 04:00.0
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 500.1GB (6.0% used) ID-1: /dev/sda model: TOSHIBA_MQ01ABF0 size: 500.1GB
Partition: ID-1: / size: 454G used: 25G (6%) fs: ext4 dev: /dev/sda2
ID-2: swap-1 size: 4.20GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 52.0C mobo: 27.8C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 224 Uptime: 1:01 Memory: 1377.9/3856.9MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35
SOLVED - IF YOU'RE LOOKING FOR THE SOLUTION
1. Set only Xfwm4 in Settings > Desktop Settings > Window manager
2. Run at startup (Settings > Session and Startup > Application Autostart) the command
compton --backend glx --vsync opengl-swc
Another solution is to create the file $HOME/.config/compton.conf with proper settings. Then you only have to set Xfwm4 + Compton as your Window manager.
WHY? Compton at boot runs as
compton
and when you switch back and fort to Xfwv4 + Compton, Compton is executed as compton --backend glx --vsync opengl-swc
.