mpv-player / mpv-player/mpv

The screen option: value and display do not match after using sleep mode.

Open
#11,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

mpv version: 0.35.0-407-g959ef843
Windows 10 Pro 22H2 19045.2965
Source of the mpv binary: https://sourceforge.net/projects/mpv-player-windows/?path=/64bit

Reproduction steps

Requires configuration with three monitors (maybe possible with two).

  1. Start or restart the PC.
  2. set "screen=2" in mpv.conf
  3. run mpv: the mpv window will be displayed on the first monitor
  4. close mpv
  5. enter sleep mode
  6. exit sleep mode
  7. run mpv: the mpv window will be displayed on the third monitor

Subsequent sleep modes do not change the monitor, it will always third monitor.

Expected behavior

The mpv window should be displayed on the same monitor with the same "screen" option before and after the sleep mode usage.

Actual behavior

The mpv window with the same "screen" option is displayed on one monitor after the PC start and on another monitor after sleep mode.

Log file

output.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Windows 10 with three monitors, mpv.conf set to screen=2, and the supplied output.txt log. Trace the screen option's monitor selection before and after sleep mode; done means mpv opens on the same monitor before and after sleep while retaining the configured screen value.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.