Skip to content

v0.40 engages dGPU #16157

Closed
Closed
@Chris-1101

Description

@Chris-1101

mpv Information

mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Mar 25 2025 17:58:20
libplacebo version: v7.349.0
FFmpeg version: n7.1
FFmpeg library versions:
   libavcodec      61.19.100
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

- Linux version: Arch Linux
- Kernel Version: 6.13.8-arch1-1
- GPU Model: AMD Phoenix3 (integrated), NVIDIA AD106M GeForce RTX 4070 Max-Q (discrete)
- Mesa/GPU Driver Version: 4.6 (Compatibility Profile) Mesa 25.0.2-arch1.2
- Window Manager and Version: Hyprland v0.48.1
- Source of mpv: Arch official repos (extra)
- Latest known working version: 0.39
- Issue started after the following happened: after updating to 0.40

Reproduction Steps

Launch mpv via CLI or .desktop file.

Expected Behavior

Launching mpv with default options does not engage the discrete GPU.

Actual Behavior

Launching mpv after updating to 0.40, anyhow I've tried, will immediately engage the dGPU, even just via the .desktop file in standby mode without any decoding. I've also tried passing --no-config, --drm-device, and --vaapi-device (pointing these last two to the iGPU) to no avail.

After downgrading to 0.39, mpv doesn't engage the dGPU.

PS: I'm inspecting the state of the dGPU via the power_state file, located at /sys/bus/pci/devices/<dGPU_ID>/power_state on my distro. Using nvidia-smi also shows the mpv process registered with the nvidia GPU as both a compute and graphics process (Type C+G). Both of these have proven accurate in tracking dGPU usage in the past.

Log File

gpu_log.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions