mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Window shift to left side if I watch video in fullscreen on a vertical monitor.

Open laichiaheng opened this issue 7 months ago • 2 comments

mpv Information

mpv v0.40.0-119-g1d1535ff9 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.351.0 (v7.351.0)
FFmpeg version: N-119712-g43a69886b2
FFmpeg library versions:
   libavcodec      62.3.101
   libavdevice     62.0.100
   libavfilter     11.0.100
   libavformat     62.0.102
   libavutil       60.3.100
   libswresample   6.0.100
   libswscale      9.0.100

Other Information

- Linux version:Arch Linux
- Kernel Version:Linux laichiaheng 6.14.7-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 22 May 2025 05:37:13 +0000 x86_64 GNU/Linux
- GPU Model:0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c0)
- Mesa/GPU Driver Version:OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.1.1-arch1.1
- Window Manager and Version:6.3.90-2
- Source of mpv:AUR
- Latest known working version:I don't know.
- Issue started after the following happened:I rotate my monitor, the video in fullscreen shift to left side.

Reproduction Steps

If I rotate my monitor, and play the video in fullscreen, it shifts to left side, when I'm moving my mouse, it becomes normal. It only happens to vo=gpu and vo=gpu-next, it doesn't happen to vo=dmabuf-wayland, it doesn't happen to VLC either.

  1. Rotate the screen in System Setting.
  2. Play videos with --vo=gpu or --vo=gpu-next in fullscreen.
  3. Don't move your mouse. Image

Expected Behavior

Playing like before or --vo=dmabuf-wayland

Image

Actual Behavior

Image

Log File

fullscreen.txt

Sample Files

https://drive.google.com/file/d/1Ns3pO0wKt61sgf-XfhBPQ6BPChQX8qvt/view?usp=sharing

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

  • [x] I tested with the latest mpv version to validate that the issue is not already fixed.
  • [x] I provided all required information including system and mpv version.
  • [x] 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.
  • [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • [x] I attached the full, untruncated log file.
  • [x] I attached the backtrace in the case of a crash.

laichiaheng avatar May 26 '25 11:05 laichiaheng

It doesn't happen in Plasma6.3.91. Was it a Plasma bug?

laichiaheng avatar May 31 '25 03:05 laichiaheng

I had the same issue occur today when I plugged in an external display on hyprland, it's not vertical. Whenever I tried to play a video on it with mpv it'd shift to the right side (rather than left)

Unplugging the monitor and plugging it back in seemed to fix it tho. So this is probably not just for plasma and not just for vertical displays either.

My decoder settings

gpu-api=vulkan
gpu-context=auto 
vo=gpu-next
hwdec=auto

I also noticed that the display was acting weird with other apps too (waybar looked normal, but I had freetube running as welll and it too was like mpv, running on the right side of the screen only) this could be a deeper wayland bug or a driver bug of some kind.

Edit: Happened again:

Rabcor avatar Jun 05 '25 19:06 Rabcor