Mpv loves nvidia

I was reading the mpv.io website, and decided to check the FAQ…
I was searching for how to change the mpv cache directory out of the SSD…

Once there, as I have a Nvidia card, decided to read the NVIDIA links and noticed that mpv loves nvidia hahaha :heart_eyes:

https://github.com/mpv-player/mpv/wiki/FAQ#Nvidia
https://github.com/mpv-player/mpv/wiki/FAQ#NVIDIA_and_Wayland

5 Likes

Succinct. :rofl:

3 Likes

They are still the best GPUs on the market (and second biggest sellers after Intel). The problem, still is with Wayland specifically.
Which is kind of ironic, since MPV does not work on Wayland (hence why the developer of MPV and the Gnome devs had a bit of a tizzy a while back and MPV isn’t on Fedora’s software store (other than as Flatpak) anymore and why the Gnome devs have cut Celloid loose). It crashes on Wayland.

I have never had a problem with MPV and NVIDIA, but then I don’t do Wayland (because of NVIDIA).

1 Like

Hmm… I’ve been running it for a couple of days while trying out GNOME again. It has been working OK. :thinking:

Oh, this is because it’s not running in Wayland; I just tried running r and it restarted. :man_facepalming:

$ echo $XDG_SESSION_TYPE
x11

Now, why did it run under X when I didn’t select “GNOME on X” or whatever the session is called… ?

2 Likes

So Wayland is working for Nvidia cards for GNOME?

I thought that @Beardedgeek72 was correct about the wayland and nvidia issues…

@jonathon Are you using the proprietary drivers or nouveau ?

One thing that I never got it working is hardware acceleration (decode), in browsers…

Ops, so, it’s not working? I was about to install Gnome and give it a try

1 Like

The dev actually created a fake “breakage” in MPV that deliberately crash it if it runs on Gnome, since he hates the Gnome Devs.

That said there was big news for a while that it was not working on Wayland, but it might just have been Gnome.
Anyway, I have NEVER had problems with MPV on Xorg and NVIDIA. As in I started with Linux 2.5 years ago.

3 Likes

I know Fedora auto switches to Xorg if it detects NVIDIA drivers. Maybe Gnome 40 does that no matter the distro?

1 Like

Possibly, but I’m running with amdgpu:grin:

2 Likes

mpv runs under wayland:

gmw --list
[["[0x556627b6f300 MetaWindowActorX11]","Vivaldi-snapshot"],
 ["[0x5566244803d0 MetaWindowActorWayland]","org.gnome.Nautilus"],
 ["[0x556624480720 MetaWindowActorWayland]","mpv"],

gmw is an alias to gnome-magic-window

2 Likes

We should put inside a meeting room, Linus Torvalds, Nvidia CEO, Gnome MPV and Wayland devs and then throw the key away until they solve this problem…

What do you think would happen ? Maybe some violence ? kkkkkkk

2 Likes

Well that might be fixed now, I haven’t used Wayland since I tried Gnome 40 on Fedora when it first released.

Anyway, point being that MPV works very well with NVIDIA as long as you run Xorg.
(Also they ARE working on getting NVIDIA fully compatible with Wayland).

1 Like

Runs fine in KDE Wayland (AMDGPU).

My money is on the :penguin:

1 Like

Because I also use LightDM and was caught by this: https://wiki.archlinux.org/title/LightDM#Wayland_session_not_working_with_duplicate_GNOME_entries_in_greeter

Easy to resolve, sudo rm /usr/share/xsessions/gnome.desktop. Don’t need it, there’s a wayland session file and an xorg session file. Not even sure why this one is needed… :thinking:

$ echo $XDG_SESSION_TYPE
wayland
1 Like

Gnome + lightDM is supposed to have some security and lockscreen issues no?

1 Like

image

https://wiki.archlinux.org/title/Security

That is one of the reasons that my next video card will be AMD…

(runs Xorg as root)

powers

1 Like

Yes, but I normally run MATE, this is just for testing out whether I could live with GNOME or not.

Not sure - what sort of security issues?

The 2 ive heard of was running xorg as root and that you use to be able to just swap to another tty to bypass the lockscreen when using lightdm with gnome and an alternate locker.

It may be fixed idk or i may be confusing it with another DM

EDIT: I think it may be specific to using it with light locker which requires using light-locker-command -l to “lock” the screen but lets you just swap to a new tty instead and have your desktop. Still not sure about the state of it though as I havent tried it in a while.

2 Likes

So in other words it is irrelevant for home use.