08:53lanodan: Using `mpv -hwdec=vdpau` in Xorg and Wayland (but not directly in the TTY with `-vo drm`) seems to be able to hang my NVidia GPU (GT218M [GeForce G 105M] (rev a2)), kernel is 5.3.11, mesa is 19.2.5. I alos had issues with playing videos in gstreamer but didn't know how to debug it.
08:55lanodan: I'll file a bug report on the bug tracker but not really sure what to put other than at least the command on a redistribuable file and kernel dmesg.
15:54imirkin_: lanodan: make sure you use -vo vdpau
15:54imirkin_: with -vo gl, it's expected you'll have issues
16:11lanodan: You mean `-vo gpu` (which it tries first) ? I don't seem to have `-vo gl`.
16:12imirkin_: i mean -vo vdpau
16:12imirkin_: maybe mpv changed their options around
16:12imirkin_: anyways, all i can really say is that it works ok in mplayer
16:13imirkin_: (-vo vdpau isn't an option in wayland though -- not sure how the integration is done there)
16:13lanodan: yeah but I think this might be specific to my GPU, I don't remember having it on my GTX 650 Ti.
16:13lanodan: s/this/this issue/
16:13imirkin_: now that i'm looking a bit closer at your gpu model...
16:13imirkin_: can you pastebin the output of vdpauinfo?
16:14imirkin_: iirc some of those GT218M's actually didn't have vdec hw in them
16:14imirkin_: maybe it was G86M's though. my memory resembles a caulander...
16:15imirkin_: hm no. it claims to support decoding.
16:16imirkin_: and can i assume you have the firmware installed, including the user firmware?
16:16imirkin_: (the latter of which you wouldn't have needed for the GTX 650)
16:16imirkin_: although iirc if you don't have that, we don't expose the hwdec capabilities
16:16lanodan: I have it installed via gentoo's sys-firmware/nvidia-firmware
16:16imirkin_: yeah ok. i made that package, so unless someone's messed with it, should be fine.
16:17imirkin_: try it with mplayer. see instructions at the bottom of this page: https://nouveau.freedesktop.org/wiki/VideoAcceleration/
16:18imirkin_: (wow, i landed the VP2 stuff into 3.11? that was so long ago...)
16:19lanodan: Well, will try with `-vo vdpau`, hopefully it won't hang, otherwise I will install mplayer. Also any idea for gstreamer (which is where I actually have the most hangs)?
16:20imirkin_: well, same idea -- you want to use vdpau output, not GL output
16:20imirkin_: basically if vdpau and GL run in separate threads of a process, then *boom*
16:20imirkin_: there may be other boom's for all i know
16:21imirkin_: i forget if i really tested on GT21x myself, or just sent patches to others to test with
16:21lanodan: Makes sense, -vo help says that -vo gpu is "Shader-based GPU Renderer" so probably something I should avoid on this GPU for now :D
16:21imirkin_: i do have a GT215 which i got for different purposes, but i don't remember if i played with video decoding on it
16:22lanodan: Seems to be doing fine \o/
16:22imirkin_: note that there may also be general decoding issues with H.264
16:22imirkin_: but those are the same as you would have seen on your GTX 650
16:23imirkin_: (the issues manifest themselves as blocky artifacts in the final image)
16:23imirkin_: happens a lot with some videos, completely fine in other videos. never tracked it down.
16:26lanodan: Well, I don't think I'll use -hwdec much with mpv as I would prefer to avoid hangs as much as possible, just wanted to try it and IIRC it hangs with gstreamer on H.264 too.
16:29imirkin_: shouldn't hang (unless you use GL)
16:29imirkin_: just blocky artifacts.
16:29imirkin_: in some but not other videos
16:29imirkin_: IME a lot of trailer videos had issues, few "real" ones
16:29lanodan: Eh, switched to wayland to try it there as well (-vo vdpau -hwdec=vdpau on H.264) and it hanged when I went back one minute.
16:29imirkin_: i suspect it depends on the software used to create them
16:29imirkin_: i don't think -vo vdpau can work on wayland
16:29imirkin_: it only has X bindings defined
16:30lanodan: Ah no it just froze for a serious long time oh wow.
16:31lanodan: Well, maybe it's playing via XWayland *shrug*
16:31imirkin_: ah, could be
16:31imirkin_: xwayland uses GL though
16:31imirkin_: although in a separate process, should be fine
16:31lanodan: Ah no, I seem to only have the sound being unblocked, framebuffer is frozed.
16:34lanodan: Got some lines in the dmesg: https://hacktivis.me/tmp/dmesg_2019-11-22T16%3A32Z.txt
16:35lanodan: But well eadedCompositor is WebKitGTK so probably unrelated.
16:36imirkin_: that's a generic problem on tesla's
16:36imirkin_: i think we don't process fifo switches quite right, esp in the presence of a sw method
16:36imirkin_: moving more and more things to render in GL will greatly exacerbate such issues
16:40lanodan: Maybe switching GTK to use Software GL would help?
16:52imirkin_: switching GTK to not use GL at all in the first place would help
16:52imirkin_: but that doesn't seem to be the way the world is going
16:52imirkin_: you can stick LIBGL_ALWAYS_SOFTWARE=1 into your /etc/environment or something
16:52imirkin_: and then unset it for just the applications that you actually want to be using GL
17:03lanodan: Okay, variable set and rebooted to get a laptop with a framebuffer again. And I guess I'll stick it to Xorg as it's not really GPU-based.
17:04imirkin_: it is - just doesn't force all of its clients to also use GL
17:04imirkin_: (technically neither does wayland, but that's the end result)
23:24Lyude: codedmart: ok, just finished up with the dpcd backlight stuff so you're up next. in the mean time while I look at your issue, do you think you could give https://patchwork.freedesktop.org/series/69914/ a shot on your laptop just to see if it breaks anything? I have a feeling not all of the X1 Extreme 2nd gens actually have an AMOLED screen or use DPCD backlight controls
23:24Lyude: since from what I recall you told me that your backlight seems to work fine