From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-173809-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92B8C1384C0 for <garchives@archives.gentoo.org>; Thu, 20 Oct 2016 01:31:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B81FE09AA; Thu, 20 Oct 2016 01:31:35 +0000 (UTC) Received: from mail.web-xs.org (mail.web-xs.org [148.251.4.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC333E0979 for <gentoo-user@lists.gentoo.org>; Thu, 20 Oct 2016 01:31:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.web-xs.org (Postfix) with ESMTP id 2D0856EC5465 for <gentoo-user@lists.gentoo.org>; Thu, 20 Oct 2016 03:31:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.web-xs.org Received: from mail.web-xs.org ([127.0.0.1]) by localhost (mail.web-xs.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05lwnOh3gkTY for <gentoo-user@lists.gentoo.org>; Thu, 20 Oct 2016 03:31:30 +0200 (CEST) Received: from server-1.localdomain (p57A61F5B.dip0.t-ipconnect.de [87.166.31.91]) (Authenticated sender: lukas@der-erste-sinn.de) by mail.web-xs.org (Postfix) with ESMTPA id D37F76EC545D for <gentoo-user@lists.gentoo.org>; Thu, 20 Oct 2016 03:31:30 +0200 (CEST) Received: from hal9000.localdomain (hal.localdomain [192.168.0.2]) by server-1.localdomain (Postfix) with ESMTP id 27F3436B for <gentoo-user@lists.gentoo.org>; Thu, 20 Oct 2016 03:31:24 +0200 (CEST) Date: Thu, 20 Oct 2016 03:30:29 +0200 From: wabe <wabenbau@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] screen tearing with mpv but not mplayer Message-ID: <20161020033029.4c7ccfc4@hal9000.localdomain> In-Reply-To: <b8f82761-2c39-f5d7-e4f3-8c1af62f0bb5@gmail.com> References: <b8f82761-2c39-f5d7-e4f3-8c1af62f0bb5@gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/bsMscDhzBem..i0vcYB_ewk" X-Archives-Salt: ef58e5c5-affa-4d24-a35a-6a31f94beae3 X-Archives-Hash: 1e2334ccac04bfef7ccecc3137cfd06a --MP_/bsMscDhzBem..i0vcYB_ewk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Behrouz Khosravi <bz.khosravi@gmail.com> wrote: > Hello everyone. Mpv has horizontal screen tearing(not very serious > though) while playing video while > > mplayer does not. I have tried some configs which I found on the net > but nothing removes this issue. > > Mpv docs even says that tearing problems are probably not related to > software but driver and such, but My GPU is a Radeon R7 250E. Screen resolution is 3840x2160@60Hz 24bpp. I had tearing with every player before I used the "TearFree" option in my xorg.conf. It contains only a device section, nothing else: $ cat /etc/X11/xorg.conf Section "Device" Identifier "ATI-Card" Driver "radeon" Option "TearFree" "on" Option "ShadowPrimary" "off" EndSection If you also use a Radeon GPU you can try to enable the TearFree option. Since I've enabled this option I have no tearing problems anymore. If you don't use a Radeon GPU then you should find out if there is a similar option for your GPU. Attached is my Xorg logfile (some non important stuff removed). In the logfile you can see that I'm using a kernel parameter "radeon.dpm=1". Without this parameter I had performance problems with my GPU in the past. To be honest, I don't know if the performance problem I encountered still exist without this parameter. Maybe it has been fixed in the meantime. BTW: I'm using x11-base/xorg-server-1.18.4 and x11-drivers/xf86-video-ati-7.7.1. > it seems that this is mpv's problem. any idea about how to solve this > issue? Thanks. > > [I] media-video/mpv > Installed versions: 0.20.0(02:34:27 PM > 10/19/2016)(X alsa cli drm egl enca encode iconv jpeg lcms libass > libmpv lua luajit opengl pulseaudio rubberband uchardet vaapi vdpau > wayland xscreensaver xv -aqua -archive -bluray -cdda -coreaudio -doc > -dvb -dvd -gbm -jack -libav -libcaca -libguess -openal -oss > -raspberry-pi -samba -sdl -selinux -test -v4l -vf-dlopen -xinerama > -zsh-completion) I don't think that it is important but for the sake of completeness these are the USE flags for mpv (0.9.2-r1) on my system: X alsa bluray bs2b cli doc-pdf dvd enca encode iconv jack jpeg ladspa lcms libass libmpv lua luajit opengl oss sdl vaapi vdpau xscreensaver xv -- Regards wabe --MP_/bsMscDhzBem..i0vcYB_ewk Content-Type: text/x-log Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Xorg.0.log [ 27.726] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 27.726] X Protocol Version 11, Revision 0 [ 27.726] Build Operating System: Linux 4.4.2-hardened-v02 x86_64 Gentoo [ 27.726] Current Operating System: Linux hal9000 4.7.6-hardened-v01 #2 SMP Wed Oct 19 20:32:26 CEST 2016 x86_64 [ 27.726] Kernel command line: root=/dev/sda2 radeon.modeset=1 net.ifnames=0 radeon.dpm=1 [ 27.726] Build Date: 18 September 2016 12:05:58AM [ 27.726] [ 27.726] Current version of pixman: 0.34.0 [ 27.726] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 27.726] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 27.726] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct 19 20:34:15 2016 [ 27.732] (==) Using config file: "/etc/X11/xorg.conf" [ 27.732] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 27.732] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 27.733] (==) No Layout section. Using the first Screen section. [ 27.733] (==) No screen section available. Using defaults. [ 27.733] (**) |-->Screen "Default Screen Section" (0) [ 27.733] (**) | |-->Monitor "<default monitor>" [ 27.734] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 27.734] (**) | |-->Device "ATI-Card" [ 27.734] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 27.734] (==) Automatically adding devices [ 27.734] (==) Automatically enabling devices [ 27.734] (==) Automatically adding GPU devices [ 27.735] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 27.742] (==) FontPath set to: /usr/share/fonts/misc/, /usr/share/fonts/TTF/, /usr/share/fonts/OTF/, /usr/share/fonts/Type1/, /usr/share/fonts/100dpi/, /usr/share/fonts/75dpi/ [ 27.742] (==) ModulePath set to "/usr/lib64/xorg/modules" [ 27.742] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 27.742] (II) Loader magic: 0x7af99629c80 [ 27.742] (II) Module ABI versions: [ 27.742] X.Org ANSI C Emulation: 0.4 [ 27.742] X.Org Video Driver: 20.0 [ 27.742] X.Org XInput driver : 22.1 [ 27.742] X.Org Server Extension : 9.0 [ 27.743] (II) xfree86: Adding drm device (/dev/dri/card0) [ 27.744] (II) xfree86: Adding drm device (/dev/dri/card1) [ 27.747] (--) PCI:*(0:1:0:0) 1002:683f:174b:a001 rev 0, Mem @ 0xd0000000/268435456, 0xfdf80000/262144, I/O @ 0x0000ae00/256, BIOS @ 0x????????/131072 [ 27.748] (II) LoadModule: "glx" [ 27.748] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so [ 27.763] (II) Module glx: vendor="X.Org Foundation" [ 27.763] compiled for 1.18.4, module version = 1.0.0 [ 27.763] ABI class: X.Org Server Extension, version 9.0 [ 27.763] (==) AIGLX enabled [ 27.763] (II) LoadModule: "radeon" [ 27.764] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so [ 27.767] (II) Module radeon: vendor="X.Org Foundation" [ 27.767] compiled for 1.18.4, module version = 7.7.1 [ 27.767] Module class: X.Org Video Driver [ 27.767] ABI class: X.Org Video Driver, version 20.0 [ 27.767] (II) RADEON: Driver for ATI Radeon chipsets: ... SNIP ... [ 27.777] (--) using VT number 7 [ 27.865] (II) [KMS] Kernel modesetting enabled. [ 27.865] (II) RADEON(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 27.866] (==) RADEON(0): Depth 24, (--) framebuffer bpp 32 [ 27.866] (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps) [ 27.866] (==) RADEON(0): Default visual is TrueColor [ 27.866] (**) RADEON(0): Option "ShadowPrimary" "off" [ 27.866] (**) RADEON(0): Option "TearFree" "on" [ 27.866] (==) RADEON(0): RGB weight 888 [ 27.866] (II) RADEON(0): Using 8 bits per RGB (8 bit DAC) [ 27.866] (--) RADEON(0): Chipset: "VERDE" (ChipID = 0x683f) [ 27.866] (II) Loading sub module "fb" [ 27.866] (II) LoadModule: "fb" [ 27.867] (II) Loading /usr/lib64/xorg/modules/libfb.so [ 27.868] (II) Module fb: vendor="X.Org Foundation" [ 27.868] compiled for 1.18.4, module version = 1.0.0 [ 27.868] ABI class: X.Org ANSI C Emulation, version 0.4 [ 27.868] (II) Loading sub module "dri2" [ 27.868] (II) LoadModule: "dri2" [ 27.868] (II) Module "dri2" already built-in [ 27.868] (II) Loading sub module "glamoregl" [ 27.868] (II) LoadModule: "glamoregl" [ 27.868] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so [ 27.885] (II) Module glamoregl: vendor="X.Org Foundation" [ 27.885] compiled for 1.18.4, module version = 1.0.0 [ 27.885] ABI class: X.Org ANSI C Emulation, version 0.4 [ 27.885] (II) glamor: OpenGL accelerated X.org driver based. [ 28.320] (II) glamor: EGL version 1.4 (DRI2): [ 28.332] (II) RADEON(0): glamor detected, initialising EGL layer. [ 28.332] (II) RADEON(0): KMS Color Tiling: enabled [ 28.332] (II) RADEON(0): KMS Color Tiling 2D: enabled [ 28.332] (**) RADEON(0): TearFree enabled [ 28.332] (WW) RADEON(0): KMS Pageflipping: disabled because of ShadowPrimary/TearFree [ 28.332] (II) RADEON(0): SwapBuffers wait for vsync: enabled [ 28.350] (II) RADEON(0): Output DisplayPort-0 has no monitor section [ 28.351] (II) RADEON(0): Output HDMI-0 has no monitor section [ 28.360] (II) RADEON(0): Output DVI-0 has no monitor section [ 28.380] (II) RADEON(0): EDID for output DisplayPort-0 [ 28.380] (II) RADEON(0): Manufacturer: SAM Model: bde Serial#: 0 [ 28.380] (II) RADEON(0): Year: 2014 Week: 20 [ 28.380] (II) RADEON(0): EDID Version: 1.4 [ 28.380] (II) RADEON(0): Digital Display Input [ 28.380] (II) RADEON(0): 10 bits per channel [ 28.380] (II) RADEON(0): Digital interface is DisplayPort [ 28.380] (II) RADEON(0): Max Image Size [cm]: horiz.: 70 vert.: 39 [ 28.380] (II) RADEON(0): Gamma: 2.20 [ 28.380] (II) RADEON(0): DPMS capabilities: Off [ 28.380] (II) RADEON(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 YCrCb 4:2:2 ... SNIP ... [ 28.390] (II) RADEON(0): Output DisplayPort-0 connected [ 28.390] (II) RADEON(0): Output HDMI-0 disconnected [ 28.390] (II) RADEON(0): Output DVI-0 disconnected [ 28.390] (II) RADEON(0): Using exact sizes for initial modes [ 28.390] (II) RADEON(0): Output DisplayPort-0 using initial mode 3840x2160 +0+0 [ 28.390] (II) RADEON(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated. [ 28.390] (II) RADEON(0): mem size init: gart size :7fbce000 vram size: s:40000000 visible:3daf4000 [ 28.390] (++) RADEON(0): DPI set to (140, 140) [ 28.390] (II) Loading sub module "ramdac" [ 28.390] (II) LoadModule: "ramdac" [ 28.390] (II) Module "ramdac" already built-in [ 28.390] (--) Depth 24 pixmap format is 32 bpp [ 28.390] (II) RADEON(0): [DRI2] Setup complete [ 28.390] (II) RADEON(0): [DRI2] DRI driver: radeonsi [ 28.390] (II) RADEON(0): [DRI2] VDPAU driver: radeonsi [ 28.390] (II) RADEON(0): Front buffer size: 32640K [ 28.390] (II) RADEON(0): VRAM usage limit set to 880113K [ 28.392] (==) RADEON(0): DRI3 disabled [ 28.392] (==) RADEON(0): Backing store enabled [ 28.392] (II) RADEON(0): Direct rendering enabled [ 28.438] (II) RADEON(0): Use GLAMOR acceleration. [ 28.438] (II) RADEON(0): Acceleration enabled [ 28.438] (==) RADEON(0): DPMS enabled [ 28.438] (==) RADEON(0): Silken mouse enabled [ 28.439] (II) RADEON(0): Set up textured video (glamor) [ 28.439] (II) RADEON(0): [XvMC] Associated with GLAMOR Textured Video. [ 28.439] (II) RADEON(0): [XvMC] Extension initialized. [ 28.439] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message. [ 28.440] (--) RandR disabled [ 28.441] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer [ 28.441] (II) AIGLX: enabled GLX_ARB_create_context [ 28.441] (II) AIGLX: enabled GLX_ARB_create_context_profile [ 28.441] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile [ 28.441] (II) AIGLX: enabled GLX_INTEL_swap_event [ 28.441] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control [ 28.441] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB [ 28.441] (II) AIGLX: enabled GLX_ARB_fbconfig_float [ 28.441] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float [ 28.441] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects [ 28.441] (II) AIGLX: enabled GLX_ARB_create_context_robustness [ 28.442] (II) AIGLX: Loaded and initialized radeonsi [ 28.442] (II) GLX: Initialized DRI2 GL provider for screen 0 [ 28.443] (II) RADEON(0): Setting screen physical size to 696 x 391 ... SNIP ... --MP_/bsMscDhzBem..i0vcYB_ewk--