-
Notifications
You must be signed in to change notification settings - Fork 111
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
Multi-second delay opening nearly any new window (new app/process?) in cosmic #1196
Comments
Probably relevant information, this is an ASUS G14 2022. It's running in "Hybrid" mux mode, not "Discrete". It's an AMD/AMD system:
|
Some delay in opening windows is a known issue (#827), but this sounds a bit worse. And that issue won't cause dmesg errors. You get those lines every time a window is opened? And nothing else? Seems rather verbose given only the last line "Cannot find any crtc or sizes" reports something error-like, unless DRM debugging is explicitly enabled (https://github.com/swaywm/wlroots/wiki/DRM-Debugging). |
Those drm debug instructions look non-persistent. While I have used them before, it has been ages, and I definitely didn't permanently enable it. Per the description, that dmesg spew and delay happens every time I launch a new instance of If I open a second Firefox window when it's already open, the spew and lag does not occur. I got my phone out and timed it, it's at least 2.5 seconds. Seemingly closer to 3secs. |
See, something weird is going on. If I open windows in rapid-succession, it's fine. If I wait like 5-10 seconds and then open another COSMIC Terminal instance, I get the spew+delay. I'm like 90% if I put the MUX Switch into Discrete mode (aka, keep the dGPU on and engaged), this issue goes away. |
Note to self/others, when I brought this up previously, this is what @Drakulix suggested. https://chat.pop-os.org/pop-os/pl/wutekoaetbfpmcyqa9t1d7ddna I will try to do this tomorrow. Thanks all! <3. |
Yeah... comp is definitely activating my dGPU. I get a notification from It very much seems like comp is forcibly using my dGPU to do compositing animations. |
I think it is the other way around. We Since this is an amdgpu+amdgpu system, our nvidia hack we applied for this reason can't fix it. I would consider this a mesa bug. (And if you want to see this fixed, I would recommend opening a bug with them.) |
@Drakulix thanks for looking at this again and advising again. Can you help me with one last bit of confusion? This was not an issue in Sway, even with |
Because something (most likely sway?) is keeping the gpu active. Not necessarily using it, so it might still be in a very low power state, but any open handle (which cosmic carefully avoid to keep) should keep it active enough for quick enumeration. |
How can I prove this to myself further? This just doesn't really match with my experience as far as I can tell. I ran sway for years, and have always used Furthermore, when my dGPU is fired up in Cosmic, the battery widget tells me it's cosmic-comp responsible. |
Well, if you want to debug this, attach a debugger and benchmark which function call is taking the majority of the time. I bet it is either |
so, no idea what's going on but this dmesg spew accompanies the slow openings:
The text was updated successfully, but these errors were encountered: