Hello
I have:
$ sysctl kern.version
kern.version=OpenBSD 6.0-current (GENERIC.MP) #2353: Sat Aug 13 11:34:33 MDT
2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
# sysctl hw.model
hw.model=Intel(R) Pentium(R) CPU B960 @ 2.20GHz
# lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation
Core Processor Family Integrated Graphics Controller [8086:0106] (rev 09)
It is Sandy Bridge CPU and GPU: HD 2000.
I used to watch movies on OpenBSD but now
(since a few days and upgrades) I have problems with performance
of multimedia/mpv. I suspect software problem with DRI2.
Infos about Audio/Video desynchronisation were present always,
but they don't disturbed, prevented from watching movies.
libEGL warning: DRI2: failed to authenticate
did it in past, so I needed to upgrade packages and base
to solve problem in past. Now it unfortunately didn't helped.
I chown-ed drm files:
# chown open /dev/drm[0-3]
#
But it didn't helped.
Part of Xorg.0.log:
[ 3005.601] (II) intel(0): SNA initialized with Sandybridge (gen6, gt1)
backend
[ 3005.601] (==) intel(0): Backing store enabled
[ 3005.601] (==) intel(0): Silken mouse disabled
[ 3005.601] (II) intel(0): HW Cursor enabled
[ 3005.601] (II) intel(0): RandR 1.2 enabled, ignore the following RandR
disabled message.
[ 3005.601] (==) intel(0): DPMS enabled
[ 3005.602] (WW) intel(0): [DRI2] Direct rendering is not supported when VGA
arb is necessary for the device
[ 3005.602] (II) intel(0): hardware support for Present enabled
[ 3005.602] (--) RandR disabled
[ 3005.602] (II) Found 2 VGA devices: arbiter wrapping enabled
[ 3005.620] (II) AIGLX: Screen 0 is not DRI2 capable
[ 3005.620] (EE) AIGLX: reverting to software rendering
[ 3005.631] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 3005.632] (II) AIGLX: Loaded and initialized swrast
[ 3005.632] (II) GLX: Initialized DRISWRAST GL provider for screen 0
What mpv is printing:
$ EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose MESA_DEBUG=1 mpv movie.avi
Playing: movie.avi
(+) Video --vid=1 (mpeg4)
(+) Audio --aid=1 (ac3)
(+) Subs --sid=1 'movie.srt' (subrip) (external)
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/swrast_dri.so
libEGL debug: Native platform type: x11 (autodetected)
libEGL debug: added egl_dri2 to module array
libEGL warning: DRI2: failed to authenticate
libEGL debug: DRI2: dlopen(/usr/X11R6/lib/modules/dri/swrast_dri.so)
libEGL debug: found extension `DRI_Core'
libEGL info: found extension DRI_Core version 1
libEGL debug: found extension `DRI_SWRast'
libEGL info: found extension DRI_SWRast version 4
libEGL debug: found extension `DRI_CopySubBuffer'
libEGL debug: found extension `DRI_ConfigOptions'
libEGL debug: found extension `DRI_TexBuffer'
libEGL info: found extension DRI_TexBuffer version 2
libEGL debug: found extension `DRI_RENDERER_QUERY'
libEGL debug: found extension `DRI_CONFIG_QUERY'
libEGL debug: the best driver is DRI2
[ffmpeg/audio] ac3: Channel layout '5.1(side)' with 6 channels does not match
specified number of channels 2: ignoring specified channel layout
AO: [sdl] 48000Hz stereo 2ch s32
VO: [opengl] 720x304 yuv420p
AV: 00:00:00 / 02:14:49 (0%) A-V: 0.211 Cache: 9s+16MB
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
AV: 00:00:08 / 02:14:49 (0%) A-V: 0.000 Dropped: 176 Cache: 9s+16MB
Exiting... (Quit)
pthread_mutex_destroy on mutex with waiters!
libEGL debug: Display 0x34f55a7000 is destroyed with resources
$
$ cat /var/log/Xorg.0.log
[ 3005.453] (--) checkDevMem: using aperture driver /dev/xf86
[ 3005.465] (--) Using wscons driver on /dev/ttyC4
[ 3005.484]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 3005.484] X Protocol Version 11, Revision 0
[ 3005.484] Build Operating System: OpenBSD 6.0 amd64
[ 3005.484] Current Operating System: OpenBSD r2d2 6.0 GENERIC.MP#2353 amd64
[ 3005.485] Build Date: 13 August 2016 11:57:16AM
[ 3005.485]
[ 3005.485] Current version of pixman: 0.32.8
[ 3005.485] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 3005.485] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3005.485] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 14 12:12:48
2016
[ 3005.485] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 3005.486] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[ 3005.486] (==) No Layout section. Using the first Screen section.
[ 3005.486] (==) No screen section available. Using defaults.
[ 3005.486] (**) |-->Screen "Default Screen Section" (0)
[ 3005.486] (**) | |-->Monitor "<default monitor>"
[ 3005.486] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3005.486] (==) Disabling SIGIO handlers for input devices
[ 3005.486] (==) Automatically adding devices
[ 3005.486] (==) Automatically enabling devices
[ 3005.486] (==) Not automatically adding GPU devices
[ 3005.486] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 3005.486] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[ 3005.486] (==) ModulePath set to "/usr/X11R6/lib/modules"
[ 3005.486] (II) The server relies on wscons to provide the list of input
devices.
If no devices become available, reconfigure wscons or disable
AutoAddDevices.
[ 3005.486] (II) Loader magic: 0xa343634020
[ 3005.486] (II) Module ABI versions:
[ 3005.486] X.Org ANSI C Emulation: 0.4
[ 3005.486] X.Org Video Driver: 20.0
[ 3005.486] X.Org XInput driver : 22.1
[ 3005.486] X.Org Server Extension : 9.0
[ 3005.487] (--) PCI:*(0:0:2:0) 8086:0106:1025:0649 rev 9, Mem @
0xb3000000/4194304, 0xc0000000/268435456, I/O @ 0x00003000/64
[ 3005.487] (--) PCI: (0:1:0:0) 10de:1140:1025:064a rev 161, Mem @
0xb2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @
0x00002000/128
[ 3005.487] (II) LoadModule: "glx"
[ 3005.488] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[ 3005.494] (II) Module glx: vendor="X.Org Foundation"
[ 3005.494] compiled for 1.18.4, module version = 1.0.0
[ 3005.494] ABI class: X.Org Server Extension, version 9.0
[ 3005.494] (==) AIGLX enabled
[ 3005.494] (==) Matched intel as autoconfigured driver 0
[ 3005.494] (==) Matched vesa as autoconfigured driver 1
[ 3005.494] (==) Assigned the driver to the xf86ConfigLayout
[ 3005.494] (II) LoadModule: "intel"
[ 3005.495] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so
[ 3005.495] (II) Module intel: vendor="X.Org Foundation"
[ 3005.495] compiled for 1.18.4, module version = 2.99.916
[ 3005.495] Module class: X.Org Video Driver
[ 3005.495] ABI class: X.Org Video Driver, version 20.0
[ 3005.495] (II) LoadModule: "vesa"
[ 3005.496] (II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.so
[ 3005.496] (II) Module vesa: vendor="X.Org Foundation"
[ 3005.496] compiled for 1.18.4, module version = 2.3.3
[ 3005.496] Module class: X.Org Video Driver
[ 3005.496] ABI class: X.Org Video Driver, version 20.0
[ 3005.496] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 3005.496] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 3005.496] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 3005.496] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200,
6200, P6300
[ 3005.496] (II) VESA: driver for VESA chipsets: vesa
[ 3005.498] (II) intel(0): Using Kernel Mode Setting driver: i915, version
1.6.0 20080730
[ 3005.498] (WW) Falling back to old probe method for vesa
[ 3005.499] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics
2000
[ 3005.499] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2
[ 3005.499] (II) intel(0): Creating default Display subsection in Screen
section
"Default Screen Section" for depth/fbbpp 24/32
[ 3005.499] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 3005.499] (==) intel(0): RGB weight 888
[ 3005.499] (==) intel(0): Default visual is TrueColor
[ 3005.499] (II) intel(0): Output LVDS1 has no monitor section
[ 3005.599] (--) intel(0): Found backlight control interface wscons (type
'platform') for output LVDS1
[ 3005.599] (II) intel(0): Enabled output LVDS1
[ 3005.599] (II) intel(0): Output VGA1 has no monitor section
[ 3005.599] (II) intel(0): Enabled output VGA1
[ 3005.600] (II) intel(0): Output HDMI1 has no monitor section
[ 3005.600] (II) intel(0): Enabled output HDMI1
[ 3005.600] (II) intel(0): Output DP1 has no monitor section
[ 3005.600] (II) intel(0): Enabled output DP1
[ 3005.600] (--) intel(0): Using a maximum size of 64x64 for hardware
cursors
[ 3005.600] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 3005.600] (II) intel(0): Enabled output VIRTUAL1
[ 3005.600] (--) intel(0): Output LVDS1 using initial mode 1366x768 on pipe
0
[ 3005.600] (==) intel(0): TearFree disabled
[ 3005.600] (==) intel(0): DPI set to (96, 96)
[ 3005.600] (II) Loading sub module "dri2"
[ 3005.600] (II) LoadModule: "dri2"
[ 3005.600] (II) Module "dri2" already built-in
[ 3005.600] (II) Loading sub module "present"
[ 3005.600] (II) LoadModule: "present"
[ 3005.600] (II) Module "present" already built-in
[ 3005.600] (II) UnloadModule: "vesa"
[ 3005.600] (II) Unloading vesa
[ 3005.600] (==) Depth 24 pixmap format is 32 bpp
[ 3005.601] (II) intel(0): SNA initialized with Sandybridge (gen6, gt1)
backend
[ 3005.601] (==) intel(0): Backing store enabled
[ 3005.601] (==) intel(0): Silken mouse disabled
[ 3005.601] (II) intel(0): HW Cursor enabled
[ 3005.601] (II) intel(0): RandR 1.2 enabled, ignore the following RandR
disabled message.
[ 3005.601] (==) intel(0): DPMS enabled
[ 3005.602] (WW) intel(0): [DRI2] Direct rendering is not supported when VGA
arb is necessary for the device
[ 3005.602] (II) intel(0): hardware support for Present enabled
[ 3005.602] (--) RandR disabled
[ 3005.602] (II) Found 2 VGA devices: arbiter wrapping enabled
[ 3005.620] (II) AIGLX: Screen 0 is not DRI2 capable
[ 3005.620] (EE) AIGLX: reverting to software rendering
[ 3005.631] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 3005.632] (II) AIGLX: Loaded and initialized swrast
[ 3005.632] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 3005.636] (II) intel(0): switch to mode [email protected] on LVDS1 using pipe
0, position (0, 0), rotation normal, reflection none
[ 3005.648] (II) intel(0): Setting screen physical size to 361 x 203
[ 3005.804] (II) config/wscons: checking input device /dev/wskbd
[ 3005.804] (II) wskbd: using layout pl
[ 3005.804] (II) wskbd: using variant fr
[ 3005.804] (**) /dev/wskbd: Applying InputClass "system-keyboard"
[ 3005.804] (II) LoadModule: "kbd"
[ 3005.806] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[ 3005.806] (II) Module kbd: vendor="X.Org Foundation"
[ 3005.806] compiled for 1.18.4, module version = 1.8.1
[ 3005.806] Module class: X.Org XInput Driver
[ 3005.806] ABI class: X.Org XInput driver, version 22.1
[ 3005.806] (II) Using input driver 'kbd' for '/dev/wskbd'
[ 3005.806] (**) /dev/wskbd: always reports core events
[ 3005.806] (**) /dev/wskbd: always reports core events
[ 3005.806] (**) Option "Protocol" "standard"
[ 3005.806] (**) Option "XkbRules" "base"
[ 3005.806] (**) Option "XkbModel" "pc105"
[ 3005.806] (**) Option "XkbLayout" "pl"
[ 3005.806] (**) Option "XkbVariant" "fr"
[ 3005.806] (**) Option "XkbOptions" "terminate:ctrl_alt_bksp"
[ 3005.806] (II) XINPUT: Adding extended input device "/dev/wskbd" (type:
KEYBOARD, id 6)
[ 3005.843] (EE) Error loading keymap /tmp/server-0.xkm
[ 3005.843] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[ 3006.460] (II) config/wscons: checking input device /dev/wsmouse0
[ 3006.460] (**) /dev/wsmouse0: Applying InputClass "touchpad catchall"
[ 3006.460] (**) /dev/wsmouse0: Applying InputClass "Default clickpad
buttons"
[ 3006.460] (II) LoadModule: "synaptics"
[ 3006.462] (II) Loading /usr/X11R6/lib/modules/input/synaptics_drv.so
[ 3006.462] (II) Module synaptics: vendor="X.Org Foundation"
[ 3006.462] compiled for 1.18.4, module version = 1.8.3
[ 3006.462] Module class: X.Org XInput Driver
[ 3006.462] ABI class: X.Org XInput driver, version 22.1
[ 3006.462] (II) Using input driver 'synaptics' for '/dev/wsmouse0'
[ 3006.462] (**) /dev/wsmouse0: always reports core events
[ 3006.462] (**) Option "Device" "/dev/wsmouse0"
[ 3007.561] (--) synaptics: /dev/wsmouse0: x-axis range 0 - 2508 resolution
0
[ 3007.561] (--) synaptics: /dev/wsmouse0: y-axis range 0 - 1056 resolution
0
[ 3007.561] (**) /dev/wsmouse0: always reports core events
[ 3007.569] (II) XINPUT: Adding extended input device "/dev/wsmouse0" (type:
TOUCHPAD, id 7)
[ 3007.570] (**) synaptics: /dev/wsmouse0: (accel) MinSpeed is now constant
deceleration 2.5
[ 3007.570] (**) synaptics: /dev/wsmouse0: (accel) MaxSpeed is now 1.75
[ 3007.570] (**) synaptics: /dev/wsmouse0: (accel) AccelFactor is now 0.074
[ 3007.570] (**) /dev/wsmouse0: (accel) keeping acceleration scheme 1
[ 3007.570] (**) /dev/wsmouse0: (accel) acceleration profile 1
[ 3007.570] (**) /dev/wsmouse0: (accel) acceleration factor: 2.000
[ 3007.570] (**) /dev/wsmouse0: (accel) acceleration threshold: 4
[ 3008.119] (II) config/wscons: checking input device /dev/wsmouse
[ 3008.119] (II) LoadModule: "ws"
[ 3008.121] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[ 3008.121] (II) Module ws: vendor="X.Org Foundation"
[ 3008.121] compiled for 1.18.4, module version = 1.3.0
[ 3008.121] Module class: X.Org XInput Driver
[ 3008.121] ABI class: X.Org XInput driver, version 22.1
[ 3008.121] (II) Using input driver 'ws' for '/dev/wsmouse'
[ 3008.121] (**) /dev/wsmouse: always reports core events
[ 3008.121] (II) ws: /dev/wsmouse: debuglevel 0
[ 3008.121] (**) Option "Device" "/dev/wsmouse"
[ 3008.121] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[ 3008.121] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[ 3008.121] (**) ws: /dev/wsmouse: associated screen: 0
[ 3008.122] (II) ws: /dev/wsmouse: minimum x position: 0
[ 3008.122] (II) ws: /dev/wsmouse: maximum x position: 1365
[ 3008.122] (II) ws: /dev/wsmouse: minimum y position: 0
[ 3008.122] (II) ws: /dev/wsmouse: maximum y position: 767
[ 3008.122] (==) ws: /dev/wsmouse: Buttons: 7
[ 3008.122] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[ 3008.122] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type:
MOUSE, id 8)
[ 3008.123] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[ 3008.123] (**) /dev/wsmouse: (accel) acceleration profile 0
[ 3008.123] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[ 3008.123] (**) /dev/wsmouse: (accel) acceleration threshold: 4