elementary / greeter

Login and Lock Screen greeter for elementary OS and Pantheon, using LightDM
GNU General Public License v3.0
153 stars 39 forks source link

After waking up, the desktop is visible for a short period before OS locks #397

Open cshaa opened 4 years ago

cshaa commented 4 years ago

Prerequisites

Describe the bug

Occasionally, it takes some time before greeter shows up after waking up the computer. Before that, it is possible to control the desktop.

This doesn't happen every time – I tried to reproduce it to take a video right now, and I couldn't. However, it happened to me cca. five times over the last week.

To Reproduce

Steps to reproduce the behavior:

  1. Put the computer to sleep mode
  2. Wake it up
  3. Sometimes, the desktop shows up, with all the applications that are opened
  4. If you're lucky, you can do an action (eg. close an window) without unlocking
  5. After a short period (≈1 sec), the greeter shows up, requesting the password

Expected behavior

After waking up from sleep, no action should be possible without knowing the password.

Screenshots or screen recordings

Not yet, sadly.

Platform Information

image

janxkoci commented 4 years ago

I experience this for a long time, possibly since Loki..

GPhMorin commented 4 years ago

I experience the same behavior on my Dell XPS 13 9360.

Information from screenfetch: OS: elementary OS 5.1.7 hera Kernel: x86_64 Linux 5.4.0-47-generic Uptime: 4d 5h 10m Packages: 1944 Shell: bash 4.4.20 Resolution: 1920x1080 DE: GNOME WM: Mutter(Gala) WM Theme: elementary GTK Theme: elementary [GTK2/3] Icon Theme: elementary Font: Open Sans 9 CPU: Intel Core i5-7200U @ 4x 3.1GHz GPU: i915drmfb RAM: 1331MiB / 7689MiB

GPhMorin commented 4 years ago

Here is an (admittedly bad) video of the issue: https://www.youtube.com/watch?v=vDaCoecu7Gc

vjr commented 3 years ago

This issue occurs for me on the latest odin daily on an intel laptop with 1135g7 cpu and iris xe igpu.

o-alquimista commented 3 years ago

Upstream bug: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1532508

This has been open for a very long time.

@cassidyjames and @danirabbit, Is there anything elementary can do about this security issue? It's still reproducible on Odin.

janxkoci commented 3 years ago

Is elementary OS still using LightDM? I think there was a switch to different tech so the bug report probably doesn't apply any more. Although people there also mention Ubuntu GNOME and Xubuntu...

Edit: I've personally never had this issue with Unity, GNOME, nor Xubuntu. Only on elementary since around Loki.

janxkoci commented 3 years ago

BTW this is an odd issue I experience on two older laptops, but almost never on a new Slimbook that I bought with elementary OS preinstalled. I say almost because it happened once after I accidentally closed the laptop lid with earphones cable inside - that was the only time I've seen my desktop before the greeter kicked in.

All machines are with Intel chips and GPUs.

o-alquimista commented 3 years ago

Is elementary OS still using LightDM? I think there was a switch to different tech so the bug report probably doesn't apply any more. Although people there also mention Ubuntu GNOME and Xubuntu...

Yes, you can see it in the description of this repository:

Login and Lock Screen greeter for elementary OS and Pantheon, using LightDM

Akryum commented 3 years ago

I can reproduce this every time I suspend the computer and then wake it up. The desktop is visible for one second or two before the greeter is displayed.

image

Akryum commented 3 years ago

Here is a video of what happens every time I wake the computer: https://photos.app.goo.gl/dcgj1Z27X6uXYury7

kmandarin-orange commented 3 years ago

This persists on my hardware on Odin. For me it shows the desktop for up to 2 seconds, usually 1, before it flips back to the lock screen. Perhaps it's a specs/optimization issue according to what @janxkoci said, as my hardware is aggressively middle-of-the-road :) My specs are: settings2 settings1 Anyone know a good place to look for logs related to sleep/wake processes?

Akryum commented 3 years ago

Perhaps it's a specs/optimization issue according to what @janxkoci said, as my hardware is aggressively middle-of-the-road :)

An AMD Ryzen 9 3900XT with 64GB of RAM wouldn't be what I call middle-of-the-road and I still have the issue :sweat_smile:

pridumkuvatyj commented 2 years ago

Same behavior in EOS 6.1 stable on Lenovo Y580 single-screen setup with Intel+Nvidia GPU. Not critical, but annoying.

o-alquimista commented 1 year ago

Still reproducible on elementary 7 Horus. @danirabbit help please

o-alquimista commented 10 months ago

Xfce is fixing this on their xfce4-screensaver:

https://gitlab.xfce.org/apps/xfce4-screensaver/-/issues/53#note_83265

EDIT Oct 23 2024: yeah, the issue remains open and it seems it wasn't fixed.

lenemter commented 10 months ago

@o-alquimista AFAIK this bug is present in all x11 DEs because it's 20 years old X server bug. I doubt xfce developers can fix it in their screensaver alone, but I'll keep an eye on the issue you linked.

janxkoci commented 10 months ago

AFAIK this bug is present in all x11 DEs

I only see it in elementary OS, and only in the last few versions (I'd say after Loki or maybe after Juno/Hera). My other laptop with Ubuntu MATE definitely doesn't suffer from this issue, and neither did all the other DEs I've tried over the years.

Edit: apparently I've already said most of that in older comments above, sorry.

janxkoci commented 2 weeks ago

Forgot to say last time that the issue now also appears on the Slimbook I mentioned above. It started happening after upgrading to newer release (6.1 I think). Perhaps some preinstalled Slimbook config was preventing the issue or something.

Is there another greeter / lock screen that could be used instead of this one? The elementary greeter is quite annoying (e.g. it takes 5-10s before I can type a password, every time), but I don't have time now to look for different distro and make a switch. Different greeter could hopefully alleviate some of the worst pain points...

o-alquimista commented 2 weeks ago

Is there another greeter / lock screen that could be used instead of this one? The elementary greeter is quite annoying (e.g. it takes 5-10s before I can type a password, every time), but I don't have time now to look for different distro and make a switch. Different greeter could hopefully alleviate some of the worst pain points...

I haven't tried it myself, but GDM (GNOME) display manager is what I would try first.

janxkoci commented 1 week ago

@o-alquimista Thanks, but that seems to pull the whole gnome-shell with it. Maybe that's not such a bad thing, but I suspect something will go wrong and I will spend days debugging, which is time I don't really have. I thought something more modular, like what MATE or XFCE have...

PS: actually maybe I could just get a different lightdm-greeter - apparently there is more than one, and it's the tech used by the elementary greeter too..