pop-os / cosmic-epoch

Next generation Cosmic desktop environment
3.21k stars 86 forks source link

Disabling Laptop Display Renders Black Screen on and Eventually Disables External Display #468

Open p134c0d3 opened 3 months ago

p134c0d3 commented 3 months ago

Hello, I'm running cosmic-epoch (cosmic-session-git) on an arch-based distro installed from the chaotic-aur (which is built off of the AUR). I have an external display plugged into the integrated GPU (Intel Xe) via USB-C. I am using nouveau drivers instead of the proprietary drivers for my NVIDIA card (3060 mobile max-q), but do not have anything plugged directly into the NVIDIA GPU via the HDMI port.

Whenever I disabled my laptop screen, my external monitor immediately rendered a completely black screen with only a pixel or two of the top bar at the top showing. After about 10 seconds, that too, went away, and eventually, the display went into inactive mode meaning it was no longer receiving an input from my laptop. However, I waited for the countdown timer to revert back to using both displays, but that never happened. I'm not sure why disabling the laptop immediately caused the integrated GPU to stop rendering. Any thoughts as to why this issue was caused?

Feature Request: Implementing a countdown timer to revert to previous display settings if Confirm/Keep/etc is not clicked in case something like this happens.

p134c0d3 commented 3 months ago

Here is my cosmic-session-git packages and their versions:

local/cosmic-applets-git **r1048.1dbdba8-1**

local/cosmic-applibrary-git **r231.1963ce3-1**

local/cosmic-bg-git **r94.e5637fc-1**

local/cosmic-comp-git **r1179.a2f9340-1**

local/cosmic-files-git **r454.5f8d25e-1**

local/cosmic-greeter-git **r127.20b7a41-1**

local/cosmic-icons-git **r20.73be037-1**

local/cosmic-launcher-git **r227.75554d3-1**

local/cosmic-notifications-git **r77.2caf2fb-1**

local/cosmic-osd-git **r109.27fc5e5-1**

local/cosmic-panel-git **r444.cfee4b5-1**

local/cosmic-randr-git **r26.71fabbb-1**

local/cosmic-screenshot-git **r15.031eb66-1**

local/cosmic-session-git **r151.c3de3d2-1**

local/cosmic-settings-daemon-git **r68.54700df-1**

local/cosmic-settings-git **r450.359bb86-1**

local/cosmic-term-git **r367.0c057e5-1**

local/cosmic-workspaces-git **r226.ef0d7bb-1**

local/xdg-desktop-portal-cosmic-git **r163.ca5f5df-1**
Drakulix commented 3 months ago

Could you post the log output of cosmic-comp? journalctl --user _COMM=cosmic-comp

p134c0d3 commented 3 months ago

@Drakulix sure thing. journalctl is listed below:

Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: shortcuts custom config error: GetKey("custom", Os { code: 2, kind: NotFound>
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to create sockets: Address already in use (os error 98)
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to remove X11 socket
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Unable to become drm master, assuming unprivileged mode
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Unable to become drm master, assuming unprivileged mode
Jul 29 06:02:30 glomardr460nized cosmic-comp[1628]: ignoring requested context priority, EGL_IMG_context_priority not supported
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:07:54 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:07:59 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:07:59 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:07 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:12 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:16 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:23:19 glomardr460nized cosmic-comp[1628]: Error reading from session socket
-- Boot 4e0a7d1c74424780b257d3788ff99171 --
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
lines 1-31...skipping...
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: shortcuts custom config error: GetKey("custom", Os { code: 2, kind: NotFound, message: "No such file or directory" })
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to create sockets: Address already in use (os error 98)
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Failed to remove X11 socket
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Unable to become drm master, assuming unprivileged mode
Jul 29 06:02:29 glomardr460nized cosmic-comp[1628]: Unable to become drm master, assuming unprivileged mode
Jul 29 06:02:30 glomardr460nized cosmic-comp[1628]: ignoring requested context priority, EGL_IMG_context_priority not supported
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:13 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 29 06:04:20 glomardr460nized cosmic-comp[1628]: Failed to read config 'workspaces'
Jul 29 06:07:54 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:07:59 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:07:59 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:07 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:12 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:08:16 glomardr460nized cosmic-comp[1628]: Client bug: Unable to re-configure repositioned popup.
Jul 29 06:23:19 glomardr460nized cosmic-comp[1628]: Error reading from session socket
-- Boot 4e0a7d1c74424780b257d3788ff99171 --
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Failed to create sockets: Address already in use (os error 98)
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Failed to remove X11 socket
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Unable to become drm master, assuming unprivileged mode
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: Unable to become drm master, assuming unprivileged mode
Jul 31 06:31:28 glomardr460nized cosmic-comp[1545]: ignoring requested context priority, EGL_IMG_context_priority not supported
Jul 31 06:42:12 glomardr460nized cosmic-comp[1545]: Failed to handle X11 event
Jul 31 06:51:34 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:51:34 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:51:34 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:51:34 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:51:34 glomardr460nized cosmic-comp[1545]: Failed to read config 'workspaces'
Jul 31 06:51:50 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:51:50 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:51:50 glomardr460nized cosmic-comp[1545]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 06:51:50 glomardr460nized cosmic-comp[1545]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 06:51:50 glomardr460nized cosmic-comp[1545]: Failed to read config 'workspaces'
Jul 31 07:02:38 glomardr460nized cosmic-comp[1545]: Error reading from session socket
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Failed to create sockets: Address already in use (os error 98)
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Failed to remove X11 socket
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Unable to become drm master, assuming unprivileged mode
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: ignoring requested context priority, EGL_IMG_context_priority not supported
Jul 31 07:13:15 glomardr460nized cosmic-comp[20697]: Unable to become drm master, assuming unprivileged mode
Jul 31 07:23:26 glomardr460nized cosmic-comp[20697]: Error reading from session socket
-- Boot 9b1ad299a5154b3ebe60d5df502dcd58 --
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Key-Binding 'Period' only matched case insensitive for "period"
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Key-Binding 'Comma' only matched case insensitive for "comma"
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Failed to create sockets: Address already in use (os error 98)
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Failed to remove X11 socket
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Unable to become drm master, assuming unprivileged mode
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: ignoring requested context priority, EGL_IMG_context_priority not supported
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Unable to become drm master, assuming unprivileged mode
Jul 31 19:40:58 glomardr460nized cosmic-comp[1668]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Jul 31 19:43:22 glomardr460nized cosmic-comp[1668]: Failed to destroy old mode property blob: No such file or directory (os error 2)
Jul 31 19:44:07 glomardr460nized cosmic-comp[1668]: Error reading from session socket
-- Boot f69de395b33845e999cf75a61d9fb21c --
Aug 01 13:09:43 glomardr460nized cosmic-comp[1732]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Aug 01 13:09:43 glomardr460nized cosmic-comp[1732]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 13:09:43 glomardr460nized cosmic-comp[1732]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 13:09:43 glomardr460nized cosmic-comp[1732]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 13:09:43 glomardr460nized cosmic-comp[1732]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 13:09:44 glomardr460nized cosmic-comp[1732]: Failed to create sockets: Address already in use (os error 98)
Aug 01 13:09:44 glomardr460nized cosmic-comp[1732]: Failed to remove X11 socket
Aug 01 13:09:44 glomardr460nized cosmic-comp[1732]: Unable to become drm master, assuming unprivileged mode
Aug 01 13:09:44 glomardr460nized cosmic-comp[1732]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 01 13:09:44 glomardr460nized cosmic-comp[1732]: Unable to become drm master, assuming unprivileged mode
p134c0d3 commented 3 months ago

I guess it also shows that I was unable to set shortcuts, but that's another issue.

To add context as well, I do have Plasma (both X11 and Wayland) installed as that was my primary desktop prior to COSMIC becoming available in the repos.

Drakulix commented 3 months ago

To add context as well, I do have Plasma (both X11 and Wayland) installed as that was my primary desktop prior to COSMIC becoming available in the repos.

That shouldn't matter.

@Drakulix sure thing. journalctl is listed below:

Unfortunately it doesn't show any interesting errors. Is your laptop display now disabled every time your try to launch cosmic? If so, could you try deleting .local/state/cosmic-comp/outputs.ron before attempting again? Also would you potentially feel comfortable compiling cosmic-comp from source as a debug build for testing to get some more log messages?

p134c0d3 commented 3 months ago

Is your laptop display now disabled every time your try to launch cosmic?

My laptop hasn't been hooked back up to the display as I had to travel for work. I will say the laptop display works fine when it's NOT hooked up. I will try again tonight and let you know. I'll try the fix you mentioned if it is as well.

Also would you potentially feel comfortable compiling cosmic-comp from source as a debug build for testing to get some more log messages?

Absolutely, do I need to uninstall the current cosmic-comp before compiling from source? I've compiled things like twice from source (and it's been a while), so tips to give you exactly what you need would be awesome and appreciated.

p134c0d3 commented 3 months ago

I retested, and the issue is reproducible. Each time I reboot, both laptop and external display are shown again, not having saved my previous display settings (of laptop screen disabled). Each time I try to disable the laptop screen, the bug happens again. I have to hard power off the laptop, and then power it back on, which then the laptop and external display are both showing again.

I did run another journalctl in case there was anything useful in the logs this time around. @Drakulix

Journalctl:

-- Boot e45888bb49894bf283853cd8f8f69132 --
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Failed to create sockets: Address already in use (os error 98)
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Failed to remove X11 socket
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 01 17:18:18 glomardr460nized cosmic-comp[1666]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:18:19 glomardr460nized cosmic-comp[1666]: Failed to destroy old mode property blob: No such file or directory (os error 2)
-- Boot d6cf99437a8845d1afaeee7e6fd02c39 --
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Failed to create sockets: Address already in use (os error 98)
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Failed to remove X11 socket
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:20:28 glomardr460nized cosmic-comp[1677]: ignoring requested context priority, EGL_IMG_context_priority not supported
-- Boot 6927950c580942e193cbd5192473441d --
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: failed to read local shortcuts config 'system_actions': NoConfigDirectory
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Key-Binding 'Period' only matched case insensitive for "period"
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Key-Binding 'Comma' only matched case insensitive for "comma"
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Failed to create sockets: Address already in use (os error 98)
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Failed to remove X11 socket
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: Unable to become drm master, assuming unprivileged mode
Aug 01 17:59:32 glomardr460nized cosmic-comp[4406]: ignoring requested context priority, EGL_IMG_context_priority not supported
Aug 01 17:59:58 glomardr460nized cosmic-comp[4406]: Error reading from session socket

Let me know if there's anything else I can do to help give the right info.