Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

Nvidia and mpv




I have i7 CPU and till recently was using builtin video card. Everything worked smoothly except some steam games. So I switched to Nvidia GeForce GTX 980. 

I have no problems (mostly) with games and everything is working fine.

Though I have problems with playing videos with mpv player. At some point movie starts to lag and i need to pause and unpause to sync audio and video.

I have TV connected thru HDMI (both audio and video) and DVI for monitor.

using nvidia blobs 370.23 (flags are: X acpi driver gtk3 kms multilib tools uvm)


xorg configs: 

$ cat /etc/X11/xorg.conf.d/20opengl.conf 
Section "Files"
        ModulePath "/usr/lib64/opengl/nvidia"
        ModulePath "/usr/lib64/xorg/modules"
$ cat /etc/X11/xorg.conf
#Section "Device"
#Identifier "Card0"
#Driver "intel"
#Option ?AccelMethod? ?sna?
Section "Device"
  Identifier "nVidia"
  Driver     "nvidia"
  Option     "NoLogo" "true"

Section "Extensions"
Option "Composite" "Disable"
in mpv.conf i tried different settings. current is :
also i have some alsa configs to be able to use both onboard plug for headphones and HDMI output as audio sources:
$ cat /etc/asound.conf
defaults.pcm.!card 1
defaults.pcm.!device 7 

$ cat ~/.asoundrc
#defaults.pcm.dmix.!rate 48000
#defaults.pcm.dmix.!format S16_LE
pcm.multi {
    type multi
    slaves.a.pcm "dmix:PCH,0"
    slaves.a.channels 2
    slaves.b.pcm "dmix:1,7"
    slaves.b.channels 2
    bindings.0 { slave a; channel 0; }
    bindings.1 { slave a; channel 1; }
    bindings.2 { slave b; channel 0; }
    bindings.3 { slave b; channel 1; }
pcm.both {
    type route
    slave.pcm "multi"
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
ctl.both {
        type hw
        card 1
        device 7
pcm.!default {
    type asym
    playback.pcm "plug:both"
    capture.pcm "hw:StudioTM,0"
ctl.!default {
        type hw
        card 1
        device 7
Can it be related to the alsa settings (i heard something related to the problem of audio and video sync) or any other direction/help will be appreciated.


Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...