Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fullscreen global: black screen after update to 1.10 #8419

Open
532910 opened this issue Oct 31, 2024 · 16 comments
Open

fullscreen global: black screen after update to 1.10 #8419

532910 opened this issue Oct 31, 2024 · 16 comments
Labels
bug Not working as intended
Milestone

Comments

@532910
Copy link
Contributor

532910 commented Oct 31, 2024

after update to 1.10 (debian-experimental) fullscreen global just shows black screen, even with only one monitor

@532910 532910 added the bug Not working as intended label Oct 31, 2024
@rod-stuchi
Copy link

In my case (running on Arch, 6.11.5-arch1-1), Sway 1.10

when I try to put some application on fullscreen $mod+f the mouse cursor locks and nothing else happens

@532910
Copy link
Contributor Author

532910 commented Oct 31, 2024

simple fullscreen works fine for me:

bindsym --to-code $mod+a fullscreen global
bindsym --to-code $mod+Shift+a fullscreen

@rod-stuchi
Copy link

global fullscreen is working for me, only problem with simple fullscreen

bindsym --to-code $mod+f fullscreen global
bindsym --to-code $mod+Shift+f fullscreen

@532910
Copy link
Contributor Author

532910 commented Oct 31, 2024

when I try to put some application on fullscreen $mod+f the mouse cursor locks and nothing else happens

bindsym --to-code $mod+f fullscreen global

so mod+f is a fullscreen global in your case

@rod-stuchi
Copy link

when I try to put some application on fullscreen $mod+f the mouse cursor locks and nothing else happens

bindsym --to-code $mod+f fullscreen global

so mod+f is a fullscreen global in your case

Nope, I just copied your keybindings and changed to f instead of a to test.

tried with swaymsg 'fullscreen enable' in a terminal (wezterm), same issue

@egnappahz
Copy link

egnappahz commented Oct 31, 2024

I have the same problem. I got 3 screens so global full screen is not a valid workaround for me. I fullscreen per monitor(workspace).
I got more additional confusing info!
On some specific screens when applications go fullscreen by accident (when it spans accross the entire screenarea), that application freezes aswel. These weird freezes happens on 2 of my 3 screens, not my "main" one, although I dont think wayland even has the concept "main screen" (EDIT: must be a workspace1 thing then I guess?). When I am able to resize/move the application so they dont span across the entire area of the screen, the freezing of the app stops.
But I must admit, I have different GPUs driving different monitors, so I have too many moving parts here to give a clear assesment.

EDIT:
This isnt because of the new "tearing-control-v1" right? I'm just guessing here.

Graphics APIs like EGL or Vulkan, that manage the buffer queue and commits of a wl_surface themselves,
are likely to be using this extension internally.
If a client is using such an API for a wl_surface,
it should not directly use this extension on that surface,
to avoid raising a tearing_control_exists protocol error.

@benjamineeckh
Copy link

Same problem over here (black background), nothing changed just upgraded to v1.10. It also does not respect my window layout anymore, they are suddenly swapped (ie. 1|2 became 2|1).
I am also using "fullscreen" for the fullscreen toggle. (bindsym $mod+f fullscreen)

Also locks up graphically when fullscreening a window. But only graphically, my system is still responsive, just the display where the pdf was openened does not update anymore.
I can also just focus the display and close the pdf/un-fullscreen it, after which the glitch is gone.

Running on 6.11.5-arch1-1

@emersion emersion added this to the 1.10.1 milestone Nov 3, 2024
@Nefsen402
Copy link
Member

Could anyone affected by this collect logs? (run sway with -d and post the output of stdout) It seems there is an issue with direct scanout not bailing correctly.

@egnappahz
Copy link

Here are my repeating relevant errors when a freeze occurs:

00:00:13.454 [ERROR] [wlr] [backend/drm/renderer.c:88] Failed to import source buffer into multi-GPU renderer
00:00:13.454 [ERROR] [sway/desktop/output.c:317] Page-flip failed on output HDMI-A-2
00:00:13.454 [ERROR] [wlr] [backend/drm/renderer.c:88] Failed to import source buffer into multi-GPU renderer
00:00:13.454 [ERROR] [sway/desktop/output.c:317] Page-flip failed on output HDMI-A-2
00:00:13.455 [ERROR] [wlr] [backend/drm/renderer.c:88] Failed to import source buffer into multi-GPU renderer
00:00:13.455 [ERROR] [sway/desktop/output.c:317] Page-flip failed on output HDMI-A-2
00:00:13.455 [ERROR] [wlr] [backend/drm/renderer.c:88] Failed to import source buffer into multi-GPU renderer
00:00:13.455 [ERROR] [sway/desktop/output.c:317] Page-flip failed on output HDMI-A-2
...

@532910
Copy link
Contributor Author

532910 commented Nov 5, 2024

00:00:24.628 [DEBUG] [sway/commands/bind.c:618] running command for binding: fullscreen global
00:00:24.628 [INFO] [sway/commands.c:261] Handling command 'fullscreen global'
00:00:24.628 [DEBUG] [sway/desktop/transaction.c:798] Transaction 0x55b8f136ef10 committing with 1 instructions
00:00:24.728 [DEBUG] [sway/desktop/transaction.c:884] Transaction 0x55b8f136ef10 is ready
00:00:24.728 [DEBUG] [sway/desktop/transaction.c:694] Applying transaction 0x55b8f136ef10
00:00:24.729 [DEBUG] [sway/input/cursor.c:888] denying request to set cursor from unfocused client

@532910
Copy link
Contributor Author

532910 commented Nov 5, 2024

this issue is about fullscreen global not about fullscreen
please open another issues for fullscreen without global

@egnappahz
Copy link

I seriously doubt that.

@egnappahz
Copy link

For me adding the variable

WLR_SCENE_DISABLE_DIRECT_SCANOUT=1

was a good enough workaround, I see what you mean now @Nefsen402

@532910
Copy link
Contributor Author

532910 commented Nov 5, 2024

  1. WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 changes nothing
  2. fullscreen without global works as expected
  3. I have no errors in the debug log

Please stop mixing different issues into a single one.

@egnappahz
Copy link

You are right, you have another problem.
But freezes were mentioned here. Left it out there for people with a similar problem so they can have a better understanding what is what, because maybe everything is crystal clear to you, it was not to me.

@emersion
Copy link
Member

Can you post a full debug log please? Not just a snippet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

6 participants