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

Gnome 46 exension breaks vrr #304

Open
4 of 9 tasks
lorenzo0932 opened this issue Jun 28, 2024 · 5 comments
Open
4 of 9 tasks

Gnome 46 exension breaks vrr #304

lorenzo0932 opened this issue Jun 28, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@lorenzo0932
Copy link

Description

What is the bug?

  • When the extension in enabled, vrr doesn't work

Problem Explanation

The bug appens when Gnome 46 Vrr is enabled and the extension is enabled. If i'm in fullscreen with a vrr supported program, vrr doesn't work. If i disable Pano then everything works as aspected

Expected Behavior

  • Pano shouldn't cause VRR to "malfuncion"
  • It shouldn't interefere with VRR

Reprodution

How one can find the bug?

Steps To Reproduce

Steps to reproduce, if applicable:

  1. Enable Pano extention in Gnome 46
  2. Use a VRR supported app in full screen (for exemple VRRTest)

Details

Mark with [ ] all that applies:

It happens with any application?

  • Yes, it applies to any application
  • No. Only with the following applications:
    • VSCode
  • It works with the following applications that I have tried:
    • Fill in a list with any application that applies

It happens only on one computer?

  • I don't know.
  • No. I have tried it on more than one computer.

It happens only with some specific gnome configuration?

  • I don't think that the configuration matters.
  • Yes. Only if the following config is set up:
    • Fill in a list with any configuration tha applies.

It happens only with some specific extension installed?

  • I don't think that the installed extensions affect the bug/behavior.
  • Yes. Only if the following gnome extension is installed:
    • Fill in a list with any extension tha applies.
    • Fill in also any detail about the extensions that applies.

Diagnostics

Under what conditions does it happen?

Fill in all information that applies:

Environment

  • GNOME Shell version: 46.2
  • Distro: Fedora
  • Distro version: 40

Application Details

Application Version

Pano Version: 1001

Output and Logs

Gnome

Command: journalctl --since=now --follow /usr/bin/gnome-shell

When the extension in enabled

$ journalctl --since=now --follow /usr/bin/gnome-shell
giu 28 21:15:00 ryzen-di-lorenzo gnome-shell[18823]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0xa00009 specified for 0xa00007.
giu 28 21:15:02 ryzen-di-lorenzo gnome-shell[18823]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW mess
...

When the extension in disabled

$ journalctl --since=now --follow /usr/bin/gnome-shell
giu 28 21:15:00 ryzen-di-lorenzo gnome-shell[18823]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0xa00009 specified for 0xa00007.
giu 28 21:15:02 ryzen-di-lorenzo gnome-shell[18823]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW mess
...

Pano Configuration

Command: dconf dump /org/gnome/shell/extensions/pano/

$ dconf dump /org/gnome/shell/extensions/pano/
[/]
exclusion-list=['Bitwarden', '1Password', 'KeePassXC', 'secrets', 'org.gnome.World.Secrets', 'org.keepassxc.KeePassXC']
global-shortcut=['<Super>v']
history-length=500
is-in-incognito=false
open-links-in-browser=false
play-audio-on-copy=false
send-notification-on-copy=false
show-indicator=false
sync-primary=false
wiggle-indicator=false
...

Enabled Extensions

Command: dconf read /org/gnome/shell/enabled-extensions | tr ' ' '\n'

$ dconf read /org/gnome/shell/enabled-extensions | tr ' ' '\n'
['[email protected]',
'[email protected]',
'[email protected]',
'suspend-button@laserb',
'[email protected]',
'[email protected]',
'audio-output-switcher@anduchs',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'freq-boost-switch@metal03326',
'custom-accent-colors@demiskp',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'quick-settings-tweaks@qwreey',
'[email protected]',
'[email protected]',
'rounded-window-corners@yilozt',
'blur-my-shell@aunetx',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'just-perfection-desktop@just-perfection',
'tiling-assistant@leleat-on-github',
'[email protected]',
'[email protected]']
...

Other Notes

I tried even with all extension disabled without any success

@lorenzo0932 lorenzo0932 added the bug Something isn't working label Jun 28, 2024
@lorenzo0932 lorenzo0932 changed the title Gnome 46 exension brakes vrr Gnome 46 exension breaks vrr Jun 28, 2024
@Arcitec
Copy link

Arcitec commented Jul 2, 2024

Just commenting to say that this sounds like an impossible bug. This extension just captures clipboard contents, and provides one hotkey to display a list of clipboard contents. It has nothing to do with VRR. I don't even think that extensions can do ANYTHING about the VRR code (can't inject into it at all), because VRR is handled by Mutter, which is the compositor ABOVE GNOME Shell in the hierarchy. Extensions can only modify GNOME Shell.

@Totto16
Copy link
Collaborator

Totto16 commented Jul 2, 2024

It could be, that this causes the problem: #277 🤔

@lorenzo0932
Copy link
Author

lorenzo0932 commented Jul 2, 2024

Just commenting to say that this sounds like an impossible bug. This extension just captures clipboard contents, and provides one hotkey to display a list of clipboard contents. It has nothing to do with VRR. I don't even think that extensions can do ANYTHING about the VRR code (can't inject into it at all), because VRR is handled by Mutter, which is the compositor ABOVE GNOME Shell in the hierarchy. Extensions can only modify GNOME Shell.

Look initially I thought like you, but with all the tests I did and under all conditions the vrr stops working only and only if this extension is active on Gnome 46. The test is safely reproducible and I have already verified that I am not the only one with this problem as you can see here:
#271 (comment)

Also thinking about it, the way the vrr is activated on gnome and then mutter depends on the "exclusive" full screen, so if there is any app that interferes with the "exclusive" full screen the vrr will never be activated.

It could be, that this causes the problem: #277 🤔

I also think it is related to this issue.
I haven't read what they did to fix the problem but maybe the workaroud they found breaks compatibility with vrr

PS. if anything I wrote is wrong I apologize in advance

@Totto16
Copy link
Collaborator

Totto16 commented Jul 2, 2024

No worries about things being wrong, we are all investigating, so nothing is for granted... 😓

That said, #277 was done, because of another issue with full-screen Wayland and mutter, so I'll have to look into this 🤔

But fixing one bug and causing another is a bad situation, if we revert this fix, the original bug #263 comes back 🤦🏼‍♂️

So we have to wait for a fix of both bugs, or at least one, so that we can apply the fix or not 😂

Edit: the PR that would fix #263, and we could revert #277 would be #mutter/2660

But it's still open and not merged 😓

@lorenzo0932
Copy link
Author

lorenzo0932 commented Jul 2, 2024

oh that's a bummer.
In any case, I wanted to know if it has already been verified that the vrr worked before #277 . To see if it was that modification that caused problems or not.

If it is necessary I can test the old version myself, but I don't know how to refer to the codebase before this merge but I would be willing to do it with the correct instructions.

PS. Also would anyone be able to explain why this problem only happens with the version of mutter that comes with gnome 46?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants