cosmic-epoch icon indicating copy to clipboard operation
cosmic-epoch copied to clipboard

Turning off a display(only one on the system) causes cosmic to lock the system up.

Open Vixea opened this issue 2 years ago • 8 comments

Steps to reproduction: Use cosmic with a single monitor turn off the monitor if your listening to anything you should here it stop.(I don't have a second monitor right now so I can test if just turning off one will also cause the issue) Turn back on the monitor. Results In a black screen where your only option is to force reboot as you can't switch ttys or kill anything.

Expectations: Audio/Session to continue as normal when monitor is off and when turning it back on cosmic continues where it left off+any input changes when the monitor was off.

Thanks for taking your time to respond to this and I understand that cosmic is pre-alpha.

Vixea avatar Mar 04 '23 18:03 Vixea

Duplicate of https://github.com/pop-os/cosmic-comp/issues/57

(Thanks for reporting anyway, tracking issues over various components isn't exactly straight forward.)

Drakulix avatar Mar 06 '23 11:03 Drakulix

Thanks for letting me know. Would you like me to close this, or no as this is the first thing people are likely to see?

Vixea avatar Mar 07 '23 02:03 Vixea

You can leave the issue open, the two are now linked, so I won't forget to close them both once this is eventually resolved and it increases discoverability.

Drakulix avatar Mar 07 '23 11:03 Drakulix

Also if cosmic shutdown shouldn't that make it go to the session manager(sddm in this case or gdm)when I turn on the display again if thats the case it doesn't happen on sddm.

Vixea avatar Mar 07 '23 22:03 Vixea

I should probably retest but I'm pretty sure its been resolved

Vixea avatar Sep 16 '24 22:09 Vixea

I don't seem to be able to use cosmic-randr disable ... to accomplish this

How are you turning off your last/only output?

jokeyrhyme avatar Sep 16 '24 23:09 jokeyrhyme

Power button or if you wanna unplug it

Vixea avatar Sep 16 '24 23:09 Vixea

Oh, I've been locking the screen and then turning off the last/only output using its power button (which I guess makes it go into standby, not literally zero-power-consumption) for a while now

I even raised an issue about the tiny nuisance that happens when I turn it back on: https://github.com/pop-os/cosmic-comp/issues/679

jokeyrhyme avatar Sep 17 '24 00:09 jokeyrhyme

Hmmm, I've noticed in both tagged alphas so far that turning my output back on doesn't seem to work anymore, it can't find a DisplayPort signal

However, I can press my system power button triggering a proper shutdown, and this does wake the output back up for a few seconds during that shutdown process, so (for me) the whole system isn't locked up or frozen

jokeyrhyme avatar Sep 28 '24 06:09 jokeyrhyme

I'm running alpha 3 now, and I've turned my screen off and then back on again

cosmic-comp seems to recover, but the apps that were open are all gone

There's this log entry:

cosmic-comp[2832]: thread 'main' panicked at 'called `Option::unwrap()` on a `None` value': src/shell/mod.rs:974

I think this corresponds to https://github.com/pop-os/cosmic-comp/blob/epoch-1.0.0-alpha.3/src/shell/mod.rs#L974

And there's

cosmic-comp[2832]: thread 'surface-DP-2' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }': src/backend/kms/surface/mod.rs:1124

I think this corresponds to https://github.com/pop-os/cosmic-comp/blob/epoch-1.0.0-alpha.3/src/backend/kms/surface/mod.rs#L1124

This might still be a bug in the latest commit: https://github.com/pop-os/cosmic-comp/commit/90883c6ab12533da08a31da338881c38aa773634

I haven't recompiled to double-check this yet

jokeyrhyme avatar Nov 06 '24 09:11 jokeyrhyme

There are too many open issues related to monitor connections, so I’ll add a bit of information to the one that seems closest to my situation.

I am using a single monitor, and it is connected via a DP cable. When the set time passes and cosmic-idle turns off the display, a panic occurs in cosmic-comp. This happens because, with a DP cable, the connection is lost when the display is turned off.

When cosmic-comp shuts down, the cosmic desktop environment restarts, so the computer does not lock. And when cosmic-idle activates again, this situation continues to repeat, meaning the computer never locks, no matter how much time passes.

hayandev avatar Dec 13 '24 16:12 hayandev

There are too many open issues related to monitor connections, so I’ll add a bit of information to the one that seems closest to my situation.

I am using a single monitor, and it is connected via a DP cable. When the set time passes and cosmic-idle turns off the display, a panic occurs in cosmic-comp. This happens because, with a DP cable, the connection is lost when the display is turned off.

When cosmic-comp shuts down, the cosmic desktop environment restarts, so the computer does not lock. And when cosmic-idle activates again, this situation continues to repeat, meaning the computer never locks, no matter how much time passes.

Probably a duplicate of https://github.com/pop-os/cosmic-comp/issues/906

Drakulix avatar Dec 13 '24 16:12 Drakulix

I'd argue its the duplicate but its posted in the probably better location My report is like 2 years old lol compared to a few months

Vixea avatar Dec 13 '24 18:12 Vixea

Has this been fixed yet?

iamkartiknayak avatar Aug 22 '25 06:08 iamkartiknayak

I believe this is ready to be closed now

leviport avatar Sep 30 '25 18:09 leviport