Bug 477086 - MPV not able to enter fullscreen mode and FS apps don't trigger the compositor to suspend/undredir X11
Summary: MPV not able to enter fullscreen mode and FS apps don't trigger the composito...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: platform-x11-standalone (show other bugs)
Version: 5.27.80
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-16 11:17 UTC by kodatarule
Modified: 2024-03-06 19:58 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.2


Attachments
requested kwinrc (2.19 KB, text/plain)
2023-11-23 04:42 UTC, kodatarule
Details
Video Showcasing the bug (598.05 KB, video/mp4)
2023-11-23 04:46 UTC, kodatarule
Details
script install failure (95.86 KB, image/png)
2023-11-23 16:38 UTC, kodatarule
Details
theme install failure (159.38 KB, image/png)
2023-11-23 16:39 UTC, kodatarule
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kodatarule 2023-11-16 11:17:28 UTC
SUMMARY
MPV to be able to enter fullscreen mode and to suspend compositor successfully(without manual intervention with alt+shift+f12). FS games also do not suspend/unredir compositor.


Operating System: EndeavourOS 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.6.1-x64v3-xanmod1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
Comment 1 Vlad Zahorodnii 2023-11-22 09:18:39 UTC
I can't reproduce it. Please attach your ~/.config/kwinrc file to the bug report
Comment 2 kodatarule 2023-11-23 04:42:35 UTC
Created attachment 163384 [details]
requested kwinrc

The requested kwinrc to the bug report.
Comment 3 kodatarule 2023-11-23 04:46:36 UTC
Created attachment 163385 [details]
Video Showcasing the bug

Video which showcases the bug, I noticed that some stuff can actually get in FS, but not everything(as for the games they require a script which currently not sure if it's Arch Linux - KDE unstable bug or KDE plasma 6 bug, but I cannot install scripts, the script is autocomposer and on multi monitor setup it properly allows for the compositor to be suspended).
Comment 4 Vlad Zahorodnii 2023-11-23 09:45:26 UTC
kwinrc contains nothing suspicious. do you have custom window rules? (~/.config/kwinrulesrc)
Comment 5 Vlad Zahorodnii 2023-11-23 09:46:46 UTC
> but I cannot install scripts, the script is autocomposer

what if you disable it? or is the bug reproducible in a new user account?
Comment 6 kodatarule 2023-11-23 10:07:22 UTC
Hi, the only custom window script which I had was "autocomposer" to trigger the suspend compositor when FS is triggered correctly on multi monitor setup(which for some reason doesn't always work on proton games).
That being said when I updated to KDE Unstable for Plasma 6 alpha, that window script fails to be recognized(including previously installed themes) - with some error message about /tmp/ file not being able to be accessed, I will be able to provide exact error when I have access to my PC later.
This issue wasn't present on Plasma 5, what is interesting is MPV bug happens only on x11 on wayland it works, but nvidia due to explicit sync at times forces me to use x11 mostly.
Will be able to update on installing scripts and themes later(message is very similar if not the same), maybe bug in KDE Unstable(Arch repo) or plasma 6 alpha.
Comment 7 kodatarule 2023-11-23 16:38:42 UTC
Created attachment 163401 [details]
script install failure

Same thing happens on a new user, also attaching 2 screenshots which show the bug of installing themes and scripts
Comment 8 kodatarule 2023-11-23 16:39:05 UTC
Created attachment 163402 [details]
theme install failure

Additionally the previously installed themes, do not show up at all
Comment 9 Nate Graham 2023-11-29 19:41:11 UTC
Let's not use this bug report for the KWin script/theme installation failure.

When you're not using that KWin script, does the problem stop happening?
Comment 10 kodatarule 2023-11-30 05:59:05 UTC
The issue still happens even when I don't use that script. You can just open MPV without any file to play and try to enter fullscreen, at least to my testing that does reproduce it.

P.S. : updated to plasma 6 beta 1 and the issue is still present.
Comment 11 Tom 2024-01-15 21:29:35 UTC
I ran into this problem as well, this was also not present on Plasma 5 for me. Try running mpv with the `--no-config` flag to see if the problem still occurs. For me it stopped occurring if I removed the line `autofit-larger='75%x75%'` from my personal mpv config file, I have no idea why this was causing a problem it never did previously.

I am currently using Plasma 6.0 RC1
Comment 12 Nate Graham 2024-01-16 20:44:39 UTC
Very interested in finding out if kodatarule@yahoo.com was also experiencing that.
Comment 13 Bug Janitor Service 2024-01-31 03:45:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2024-02-15 03:45:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 15 kodatarule 2024-02-29 17:34:28 UTC
Can confirm this issue is still present in plasma 6 and that the fix suggested by Tom doesn't resolve the issue.
Comment 16 Vlad Zahorodnii 2024-02-29 17:53:18 UTC
It's likely the same as https://bugs.kde.org/show_bug.cgi?id=481456. Reopen this bug report if the issue is still present in 6.0.1
Comment 17 Riku 2024-03-06 16:37:37 UTC
I'm still experiencing this on kwin 6.0.1. Looks like mpv can't go fullscreen if the video aspect ratio is not the same as the monitor.
Comment 18 Vlad Zahorodnii 2024-03-06 18:42:47 UTC
(In reply to Riku from comment #17)
> I'm still experiencing this on kwin 6.0.1. Looks like mpv can't go
> fullscreen if the video aspect ratio is not the same as the monitor.

Can you add a window rule "obey geometry restrictions" that forces "No" for mpv?

- right click the titlebar of mpv
- more actions
- configure special window settings...
- add property
- search for "obey geometry restrictions"
- select "Force" and "No"
- restart mpv
Comment 19 Riku 2024-03-06 19:24:53 UTC
(In reply to Vlad Zahorodnii from comment #18)
> Can you add a window rule "obey geometry restrictions" that forces "No" for mpv?

Having set the rule mpv now behaves as expected.
Comment 20 Vlad Zahorodnii 2024-03-06 19:33:02 UTC
Hmm so it looks like it's worth backporting https://invent.kde.org/plasma/kwin/-/commit/083318dddd53564cfa34d642f483e7b388bcd840 to 6.0 after all
Comment 21 Bug Janitor Service 2024-03-06 19:33:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5371