# Mpv loves nvidia

**URL:** <https://forum.endeavouros.com/t/mpv-loves-nvidia/17736>\
**Category:** Linux lounge\
**Created:** [September 17, 2021, 5:59pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736 "2021-09-17T17:59:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon49550872](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon49550872](https://forum.endeavouros.com/u/anon49550872)\
**Post date:** [September 17, 2021, 5:59pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/1 "2021-09-17T17:59:28Z")

</div>

I was reading the [mpv.io](http://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 😍

[https://github.com/mpv-player/mpv/wiki/FAQ#Nvidia](https://github.com/mpv-player/mpv/wiki/FAQ#Nvidia)  
[https://github.com/mpv-player/mpv/wiki/FAQ#NVIDIA\_and\_Wayland](https://github.com/mpv-player/mpv/wiki/FAQ#NVIDIA_and_Wayland)

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [September 17, 2021, 6:52pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/2 "2021-09-17T18:52:03Z")

</div>

> [@](#):
>
> No.

Succinct. 🤣

---

<div class="post-metadata">

**Author:** ![Beardedgeek72](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beardedgeek72/32/846_2.png) [@Beardedgeek72](https://forum.endeavouros.com/u/Beardedgeek72)\
**Post date:** [September 17, 2021, 6:58pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/3 "2021-09-17T18:58:42Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [September 17, 2021, 7:02pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/4 "2021-09-17T19:02:08Z")

</div>

> [@Beardedgeek72](#):
>
> MPV does not work on Wayland

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

Oh, this is because it’s not running in Wayland; I just tried running `r` and it restarted. 🤦‍♂️

```auto
$ 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… ?

---

<div class="post-metadata">

**Author:** ![anon49550872](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon49550872](https://forum.endeavouros.com/u/anon49550872)\
**Post date:** [September 17, 2021, 7:08pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/5 "2021-09-17T19:08:29Z")

</div>

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…

> [@jonathon](#):
>
> Oh, this is because it’s not running in Wayland; I just tried running `r` and it restarted. 🤦‍♂️ Now, why did it run under X when I didn’t select “GNOME on X” or whatever the session is called… ?

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

---

<div class="post-metadata">

**Author:** ![Beardedgeek72](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beardedgeek72/32/846_2.png) [@Beardedgeek72](https://forum.endeavouros.com/u/Beardedgeek72)\
**Post date:** [September 17, 2021, 7:09pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/6 "2021-09-17T19:09:05Z")

</div>

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

> **[Mpv drops GNOME support](https://linuxreviews.org/Mpv_drops_GNOME_support)**

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.

---

<div class="post-metadata">

**Author:** ![Beardedgeek72](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beardedgeek72/32/846_2.png) [@Beardedgeek72](https://forum.endeavouros.com/u/Beardedgeek72)\
**Post date:** [September 17, 2021, 7:10pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/7 "2021-09-17T19:10:40Z")

</div>

> [@jonathon](#):
>
> Oh, this is because it’s not running in Wayland; I just tried running `r` and it restarted. 🤦‍♂️ Now, why did it run under X when I didn’t select “GNOME on X” or whatever the session is called… ?

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

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [September 17, 2021, 7:11pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/8 "2021-09-17T19:11:16Z")

</div>

Possibly, but I’m running with `amdgpu`… 😁

---

<div class="post-metadata">

**Author:** ![xircon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/xircon/32/9124_2.png) [@xircon](https://forum.endeavouros.com/u/xircon)\
**Post date:** [September 17, 2021, 7:11pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/9 "2021-09-17T19:11:36Z")

</div>

mpv runs under wayland:

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

```

gmw is an alias to gnome-magic-window

---

<div class="post-metadata">

**Author:** ![anon49550872](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon49550872](https://forum.endeavouros.com/u/anon49550872)\
**Post date:** [September 17, 2021, 7:15pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/10 "2021-09-17T19:15:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Beardedgeek72](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beardedgeek72/32/846_2.png) [@Beardedgeek72](https://forum.endeavouros.com/u/Beardedgeek72)\
**Post date:** [September 17, 2021, 7:16pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/11 "2021-09-17T19:16:43Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Schlaefer](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/schlaefer/32/11917_2.png) [@Schlaefer](https://forum.endeavouros.com/u/Schlaefer)\
**Post date:** [September 17, 2021, 7:17pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/12 "2021-09-17T19:17:44Z")

</div>

> [@Beardedgeek72](#):
>
> Which is kind of ironic, since MPV does not work on Wayland … It crashes on Wayland.

Runs fine in KDE Wayland (AMDGPU).

---

<div class="post-metadata">

**Author:** ![anon52797891](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@anon52797891](https://forum.endeavouros.com/u/anon52797891)\
**Post date:** [September 17, 2021, 7:24pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/13 "2021-09-17T19:24:51Z")

</div>

> [@anon49550872](#):
>
> 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

My money is on the 🐧

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [September 17, 2021, 8:48pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/14 "2021-09-17T20:48:15Z")

</div>

> [@jonathon](#):
>
> Now, why did it run under X when I didn’t select “GNOME on X” or whatever the session is called… ?

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](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… 🤔

```auto
$ echo $XDG_SESSION_TYPE
wayland

```

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [September 17, 2021, 9:52pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/15 "2021-09-17T21:52:59Z")

</div>

> [@jonathon](#):
>
> Because I also use LightDM

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

---

<div class="post-metadata">

**Author:** ![anon49550872](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@anon49550872](https://forum.endeavouros.com/u/anon49550872)\
**Post date:** [September 17, 2021, 10:02pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/16 "2021-09-17T22:02:41Z")

</div>

![image](https://forum.endeavouros.com/uploads/default/original/3X/9/0/90167e5cae42aca8942afb97198c6644e476a432.png)

[https://wiki.archlinux.org/title/Security](https://wiki.archlinux.org/title/Security)

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

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [September 17, 2021, 10:12pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/17 "2021-09-17T22:12:46Z")

</div>

(runs Xorg as root)

![powers](https://forum.endeavouros.com/uploads/default/original/3X/8/8/8834a3387ea2aff489e8b9e566dcf018fc9f7580.jpeg)

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [September 17, 2021, 10:45pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/18 "2021-09-17T22:45:26Z")

</div>

> [@Echoa](#):
>
> lockscreen

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

> [@Echoa](#):
>
> security

Not sure - what sort of security issues?

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [September 17, 2021, 11:18pm UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/19 "2021-09-17T23:18:19Z")

</div>

> [@jonathon](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![Beardedgeek72](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/beardedgeek72/32/846_2.png) [@Beardedgeek72](https://forum.endeavouros.com/u/Beardedgeek72)\
**Post date:** [September 18, 2021, 11:40am UTC](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736/20 "2021-09-18T11:40:17Z")

</div>

So in other words it is irrelevant for home use.

[Next page](https://forum.endeavouros.com/t/mpv-loves-nvidia/17736.md?page=2)
